lightjs
A light boilerplate for building a universal (Node, web, UMD) ES6 npm package.
Features
- [x] Support gulp.
- [x] Support webpack.
- [ ] Support TypeScript.
- [ ] Support React.
- [ ] Support Angular.
Usage
- Clone this repo.
- Modify all relevant entries in
package.json
andREADME.md
. - Run
npm install
to install dev dependencies. - Write your ES6 code in
src
folder. - Write your ES6 tests in
test
folder. - Run
npm run build
to build for node. This will compile to ES5, minify, and output the result tolib
folder. - Run
npm run build-web
to build and pack the files for the web. This will output the result todist
folder. - Run
npm publish
to pulish to the world.