Javascript Starter Library with common tasks setup for testing, linting, formatting, building, and minifying. This library is meant as a starter for building a reusable javascript library for use in the browser. The principles like testing and linting will remain but libraries may change over time.
- Continuous Integration with GitHub Actions
- build using Rollup.js
- Babel
- lint using eslint
- code formating using prettier
- husky for precommit
- Lint commit messages - CommitLint
- tests using jest
- code coverage with jest
- Coveralls for reporting code coverage from Jest
Notes:
If jest hangs:
brew reinstall watchman
Clone contents of repo and adjust.
For publishing to npm and GitHub package
The release flow would be tag code, v1.0 for example, create a release in GitHub. This would trigger the publish nodejs npm/GitHub pacakge workflow.
Tentative to do list
- Add npm publishing automation with GitHub Actions
- Typescript support
- Accessibility support through jest-axe