Boilerplate repo for personal Typescript projects
Component/Framework | Purpose | Comments |
---|---|---|
Jest | Test Framework | Using ts-jest for JIT compilation |
Prettier/ESLint | Code style & linting | |
CircleCI | Continuous Integration | Supports publishing to NPM |
Codecov | Code coverage tracking |
# Compile typescript to dist/
npm run compile
# Compile in watch mode
npm run watch
# Check for style issues
npm run prettier
# Automatically fix style issues
npm run prettier:fix
# Run test suite
npm test
# Generate a coverage report
npm run test:coverage
To set up CircleCI integration, set the following env vars on the CircleCI project:
NPM_TOKEN
: auth token granting publish accessCODECOV_TOKEN
: token for Codecov
To publish a new version to npm:
npm version patch # or minor, or major
git push
git push --tags