A light, yet convenient, Yeoman generator for TypeScript + Node.JS projects
This generator will allows you to customize and scaffold your next TypeScript project in seconds.
Besides providing the basic files and packages needed for TypeScript + Node.js development, the generator will helps you to install and setup other usefull development tools such as Nodemon, or Jest.
β¨ NEW: You can now scaffold and customize a complete Express.JS project using yo tsproject:express
No more manual configuration required. π€―
Psst ! It can also generate development Docker files and workflow files for Github Actions.
npm install -g yo
npm install -g generator-tsproject
yo tsproject <project-name>
# Or for express projects :
yo tsproject:express <project-name>When all options are enabled, this is what a generated project looks like :
.
βββ Dockerfile
βββ docker-compose.yml
βββ jest.config.js
βββ node_modules/
β βββ ...
βββ nodemon.json
βββ package.json
βββ readme.md
βββ src
β βββ main.ts
βββ tests
β βββ main.test.ts
βββ tsconfig.json
βββ yarn.lock
With the express subgenerator, and all options enabled, this is what a generated project looks like :
.
βββ Dockerfile
βββ docker-compose.yml
βββ jest.config.js
βββ nodemon.json
βββ node_modules/
β βββ ...
βββ package.json
βββ readme.md
βββ src
β βββ errors
β β βββ http.error.ts
β βββ index.ts
β βββ middlewares
β β βββ demo.middleware.ts
β βββ routes
β β βββ api.router.ts
β β βββ base.router.ts
β β βββ main.router.ts
β βββ server.ts
β βββ static
β βββ views
β βββ home.handlebars
β βββ layouts
β βββ main.handlebars
βββ tests
β βββ express.test.ts
βββ tsconfig.json
βββ yarn.lock
