Minimal boilerplate for browser-based JavaScript projects.
- Bundle modules with Rollup and generate a build for each of CJS, ESM, and UMD
- Code linting courtesy of ESLint
- Unit testing with Mocha, Chai, and Sinon using the Karma test runner inside Headless Chrome
- Code minification via terser
- Includes support for continuous integration testing via GitHub Actions
- Automatically includes a (configurable) banner to the distributed builds
- Run
npm install
to install the developmental dependencies - Open
package.json
and change the relevant fields:name
,description
,homepage
, etc. - Open
rollup.config.js
and make the necessary changes to reflect your preferences
npm test
- Run unit testsnpm run lint
- Lint source files and test specsnpm run build
- Bundle, transpile, and minify the source into the distributed builds
This project is dedicated to the public domain as described by the Unlicense.