Generate a git repository with Node and Typescript.
First, install Yeoman and generator-ts-repo using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-ts-repo
Then generate your new project:
yo ts-repo
- Yeoman has a heart of gold.
- Yeoman is a person with feelings and opinions, but is very easy to work with.
- Yeoman can be too opinionated at times but is easily convinced not to be.
- Feel free to learn more about Yeoman.
Scaffolds out a complete Nodejs repository structure for you:
└─ repo
├─ .editorconfig
├─ .eslintignore
├─ .eslintrc.js
├─ .git
├─ .gitattributes
├─ .gitignore
├─ .prettierrc
├─ .travis.yml
├─ .vscode
│ └─ settings.json
├─ LICENSE
├─ README.md
├─ commitlint.config.js
├─ jest.config.js
├─ package.json
├─ src
│ ├─ example.spec.ts
│ └─ example.ts
└─ tsconfig.json
Build with:
- Typescript
- eslint
- prettier
- jest
- husky
- lint-staged
- commitizen
MIT © caikaijie