3.0.0 • Published 3 years ago
npm-publish-boilerplate v3.0.0
About
A boilerplate for standalone lib published to npm.
Features
- semantic release versioning and automated changelog
- commitizen-friendly commits
- typescript eslint
- auto lint before build
- unit tests with jest
- coveralls test coverage report
- cjs, esm and umd builds
Before first commit
Update .git/hooks/prepare-commit-msg.sh
#!/bin/bash
exec < /dev/tty && node_modules/.bin/cz --hook || true
Coveralls
Enable the repo in coveralls.io
Add env variables to Travis CI
GH_TOKEN
NPM_TOKEN
COVERALLS_REPO_TOKEN (optional)
Change rollup namespace
edit rollup.config.js
and change name for the global namaespace in umd bundle from MYLIB to anything else
Useful links
License
MIT