broccoli-babel-boilerplate
v0.2.0
Published
A boilerplate, using Broccoli, to author JavaScript libraries in ES6/ES7++ but transpile and distribute using Babel.js
Readme
broccoli-babel-boilerplate
A boilerplate, using Broccoli, to author JavaScript libraries in ES6/ES7++ but transpile and distribute using Babel.js
- The root module name is taken from the
package.jsonname property (so you'll want to change that first!) - Put your source files in
src/, your tests intest/unit/ - Files named
index.jswill take their parent directory's name as their AMD module name- e.g.
src/foo/index.js => project-name/foo
- e.g.
- You can optionally provide a
src/index.htmlthat'll be output todist/as well
npm run build;
# builds to dist/
npm start;
# builds to tmp/, starts a webserver, and watches files for changes to rebuild