Babel compiler based Javascript application starter kit, with build process for Node.js and browser environments.
Starter kit using based on yarn
, babel-presets-env
, webpack
and browserify
.
- Install
yarn
- Run
yarn
in repository directory. - Edit
package.json
default values like : name and version. - Change
README.md
. - Add and edit content in
src/
andresources/
directories. - Write tests in
test/
directory.
npm test
- Inspect name and version in
package.json
, edit if necessary. - Run
npm run build
- Output will be placed in
dist/
directory, which can be published as NPM module.
Build can be done using browserify
or webpack
:
npm run build
npm run browserify-build
TODO Tune to be equal to webpack build process.