this generator generates an npm module (UMD, CJS, ES6) boilerplate
this boilerplate
- is optimized for Webpack 2, Rollup bundling (module, jsnext:main)
- creates an UMD build in the /dist folder (for use in a browser and/or via the https://unpkg.com CDN)
yarn global add yo
yarn global add generator-module-boilerplate
Initiate the generator:
yo module-boilerplate
npm run build
- build:(es|cjs|umd|umd:min)
npm run test
npm run lint
MIT