Typescript NPM Starter is a solid foundation to create node package with Typescript and Jest for unit testing
Open the terminal and use Git to clone the repo.
git clone git@github.com:mrpharderwijk/typescript-npm-starter.git
Use the src
directory as the source folder for the node package.
npm run build
The .prettierrc
file determines how the Typescript code should be formatted. To run prettier use the following command:
npm run format
Lint the appliction with tslint
. See tslint.json
for configuration.
npm run lint
Unit test are written with Jest.
npm run test
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.