A boilerplate for vanilla JavaScript libraries.
- Convenient. Scaffold a project by running 1 command in your terminal.
- Customized. The library name you choose is used to pre-populate the template.
- Modern. Write ES6/7 syntax, and let users consume it how they want to (AMD, CommonJS, or script tag).
- Lean. Distribution files support users with tree-shaking bundlers (and the
package.json
is setup correctly).
Using NPM, install outset-lib globally.
$ npm install outset-lib -g
To create a new project:
# make a directory for it
$ mkdir project && cd project
# run outset-lib, passing the project name
$ outset-lib project
# install dependencies, and start coding
$ npm i && npm run dev
MIT. © 2017 Michael Cavalea