es6-kameita
v0.3.0
Published
ES6 project template for Browser and Node ====================
Downloads
4
Readme
ES6 project template for Browser and Node
亀板 ( Kameita ) は陶芸、ろくろの道具です。粘土をのせたりします。
Getting Started
git clone https://github.com/ahomu/es6-Kameita.git ./your-project
cd ./your-project
rm -rf .git
npm install
ES6 Compatibility
This template is dependent on 6to5/6to5. Please see 6to5's document site.
Optional Runtime and Polyfill are already supported.
Convert the es6 files into es5 compat files, and browserifying
npm run build
Build & bump version in package.json
npm run patch
npm run minor
npm run major
Start watching src files (auto build when file changed)
npm run watch
Run tests by testem (auto re-run when file changed)
npm run testem
Run tests for ci
npm test
# or npm run test
for Node modules
Initial setting is for browser, please following steps if you want to use in the Node module.
- Remove the comment in Gulpfile.js, to set for node setting.
testem.node.json
rename totestem.json
- Add
import * as assert from 'power-assert';
into test code.
Using libraries
- babel/babel
- substack/node-browserify
- gulpjs/gulp
- airportyh/testem
- mochajs/mocha
- twada/power-assert
- cjohansen/Sinon.JS
ToDo
- register Gemnasium
- add CI service configuration (Travis, Circle, etc)
- add coverage reporter
- add code quality reporter
- replace jshint with eslint