A basic boilerplate to write JavaScript NPM modules in TypeScript. The TypeScript code is compiled to JavaScript and published to NPM using CircleCI v2 Workflows and GitHub Releases.
More details at: https://sbstjn.com/deploy-typescript-npm-with-circleci-workflows.html
- TypeScript with linting
- Unit testing with Jest
- Coverage reports with Coveralls
- Test and PR checks with CircleCI
- Publish with GitHub Releases
Fork this repository, download it, or clone it and add your custom files and configurations.
test
- Run jesttest:cover
- Run jest and create coverage reportcoveralls
- Publish coverage report to Coverallslint
- Run tslintbuild
- Build JavaScript files
You need to configure two environment variables in CircleCI, one for publishing to NPM and one for Coveralls coverage reports.
NPM_TOKEN
COVERALLS_REPO_TOKEN
Feel free to use the code, it's released using the MIT license.
You are welcome to contribute to this project! 😘
To make sure you have a pleasant experience, please read the code of conduct. It outlines core values and beliefs and will make working together a happier experience.