js-lib-starter
July 24, 2019 · View on GitHub
A boilerplate for creating a JavaScript library, using Rollup.
Getting started
git clone https://github.com/senntyou/js-lib-starter.git --depth=1
cd js-lib-starter
npm install # install dependencies
npm run build # build distribution files
Features
To build a library only for Node.js
If you want to build a library only for Node.js, you can make it as follows:
- Remove existed
rollup.config.jsfile, and renamerollup.node.config.jstorollup.config.js. - Remove
module, umd:mainfields ofpackage.json.
Notes
- This repo is only for pure JavaScript library.