Using rollup.js to build, a re-usable NPM module for run in nodejs and browser.
查看中文文档
branch:esm
- 最初的 rollup + babel + es6 模板
- Use next javascript development.
- Run in nodejs and browser.
- Built-in bundle analyzer report, document generation, lint, unit testing && code coverage
You will need [Node.js][nodejs] version 10+.
After cloning the repo, run:
# Installation dependency
$ npm install
# build for production with minification
$ npm run build
# build for production and generate the bundle analyzer report
$ npm run analyse
# Generate document.
$ npm run ts-doc
There are some other scripts available in the scripts section of the package.json file.
# Bump package version, include linting
$ npm version <newversion|major|minor|patch>
# Publish package, include build
$ npm publish
See npm for more help.
See CHANGELOG.md
See CONTRIBUTING.md