Non-opinionated typescript starter pack for new projects ⚙
- Clone this repository
- Run
yarn install
ornpm install
- Run
yarn run dev
ornpm run dev
- You are free to do whatever you want
This sample comes with many configuration file targetted for NodeJS:
- Typescript :
tsconfig.json
- Jest:
jest.config.json
This sample provides unit testing with Jest
This sample comes with many script to work faster:
Script | Description | Command |
---|---|---|
dev | Run concurrently the typescript watcher and nodemon | concurrently -k -n "Typescript,Node" -p "[{name}]" -c "blue,green" "tsc --watch" "nodemon dist/index.js" |
start | Run the compiler then run the compiled file | tsc && node dist/index.js |
build | Build files | tsc |
test | Run jest tests | jest --verbose |
test-watch | Run jest tests using watcher | jest --verbose --watchAll |