A Node.js project template using Typescript
Below is a list of all the scripts this template has available:
Npm Script | Description |
---|---|
build-ts |
Compiles all source .ts files to .js files in the dist folder |
build |
Full build. Runs ALL tasks (build-ts , lint ) |
dev |
Performs a full build and then serves the app in watch mode |
lint |
Runs ESLint on project files |
prettier:check |
Check if your files are formatted |
prettier:fix |
This rewrites all processed files in place |
lint |
Runs ESLint on project files |
serve-debug |
Runs the app with the --inspect flag |
start |
Runs node on dist/server.js which is the apps entry point |
watch-debug |
The same as watch but includes the --inspect flag so you can attach a debugger |
watch-ts |
Same as build-ts but continuously watches .ts files and re-compiles when needed |