typescript-node-boilerplate
This is a boilerplate for nodejs project with typescript.
The followings are details of this boilerplate.
blog post for this
npm-script
The commands are ordered alphabetically.
yarn clean
This command will clean up dist folder that is for build files(.js files)
"clean": "rimraf dist/*",
yarn dev:watch
This commands allows run index.ts file without compile and monitor the changes on the file
"dev:watch": "ts-node-dev --respwn src/index.ts",
yarn dev
This commands allows run index.ts file without compile
"dev": "ts-node src/index.ts",
yarn format
This commands will format all files with the rules that are based on .eslintrc.js
"format": "prettier --write 'src/**/*.{js,ts,json}'",
yarn lint:all
This command will lint all ts files and run tsc
without generating any .js files
"lint:all": "yarn lint && yarn tscCheck
ā¦