If you need typescript starter pack for node.js development. You are on right place. Repository contains only must have (for our point of view) dependencies to build. The repository solves 4 main parts
- Run in development mode - we use
ts-nodeas a typescript execution environment,dot-envlibrary for setting up environment variables - Run tests there is a predefined way how to run tests with
jest - Build application - for build is used classic way of
tsc - Run in production mode - run compiled code
jestfor testing and code coverageprettier,tslintfor code style checkingts-node-devfor running project in development mode (automatic restart on change)pino-prettyfor nice console output
yarninstall dependenciesyarn buildbuild applicationyarn devstart development modeyarn testrun testsyarn eslint:fixapply prettier rules for projectyarn startstart compiled application
yarn test:covercheck code coverage in projectyarn eslint:checkchecking code style policies by prettier and eslint
Where can env variables can be set?
- For setting of env variables is used dotenv package, there are .env files in
./configfolder