npm-library-boilerplate
is a boilerplate for NPM libraries.
- Handy scripts: easily support multiple data sources in your infinity scroll.
- Commitizen powered releases: automatic CHANGELOG and semver generation.
- Babel, prettier, jest, eslint: built in tools to save you setting up time again and again.
I use this for my personal projects, so thought I'd share.
Whilst I'd like to develop a generator for this, the best way to get started is to fork or clone this repo.
- Babel
- Prettier
- Jest
- Commitizen
- Linting:
- JS via ESLint
- JSON via ESLint
- Markdown via Remark
- Prettier via ESLint
- Useful scripts
compile
- compile package todist
format
- run prettier on codebaselint
_ lint entire codebaselint:js
- lint all JS fileslint:json
- lint all JSON fileslint:md
- lint all MD fileslint:format
- lint all files with prettiertest
- run tests with jestrelease
- automatically create a release, and update CHANGELOG.md, using conventional commits in the Angular formatversion
- print out the next version based on conventional commits in the Angular format
MIT © Chris Villa