3.0.0 • Published 3 years ago

npm-publish-boilerplate v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Commitizen friendly semantic-release Coverage Status

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

https://github.com/semantic-release/semantic-release/blob/master/docs/usage/ci-configuration.md#authentication

License

MIT

3.0.0

3 years ago

2.0.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago