es6-module-boilerplate
v0.0.2
Published
boilerplate for es6 -> es5 module
Downloads
7
Readme
es6-module-boilerplate
use this as a starting point for creating es6 modules that have a build script to make an es5 version that gets used by default.
Notice package.json has these lines
"main": "src/es5/index.js",
"main-es6": "src/es6/index.js",
keep this format, including the dir structure so that it's easy to use with something like require-es6
The workflow would look something like this
git clone https://github.com/kolodny/es6-module-boilerplate
rm -rf .git
git init
npm install
npm init