This repository is a template for JavaScript npm library.
- Fully automated release to:
- GitHub Packages
- GitHub Releases
- Add support for:
- semantic-release
- semantic-version
- conventional-commits
- To host your code in a GitHub Repository
- Use the GitHub Actions as a Continuous Integration Service
- Node.js v12 ot higher installed
- Git CLI 2.7.1 or higher installed
- Use the GitHub Packages as a npm registry
- Use the GitHub Releases as a changelog
To add a registry for npm-lib-tmpl:
.npmrc
@rising3:registry=https://npm.pkg.github.com
To add a dependency on npm-lib-tmpl using npm, use the following:
$ npm install @rising3/npm-lib-tmpl@{latest}
To add a dependency on npm-lib-tmpl using yarn, use the following:
$ yarn add @rising3/npm-lib-tmpl@{latest}
index.js
const it = require('@rising3/npm-lib-tmpl')
console.log(it.sum(1, 2))