Opinionated template for creating Typescript-based Nodejs projects. Useful for TS-based scripts, web servers, lambda functions etc.
Includes configurations for:
- Language;
typescript
(includingts-node
) - Linting (pre-commit);
eslint
- Formatting (pre-commit);
prettier
,husky
- Unit testing;
mocha
,chai
,sinon
- Feature testing;
cucumber-js
- Dependency maintenance;
npm-check
,npm audit
- NPM script tools;
npm-run-all
- Bundling;
webpack
,ts-loader
Recommended NodeJS 12+
git clone git://github.com/sbracegirdle/ts-template.git my-project
cd my-project
rm -rf ./git
npm install
npm run start
npm run test
npm run lint
npm run build
Checks for vulnerabilities (npm audit
) and out of date packages (npm-check
).
npm run check
npm run upgrade
MIT License