ES6 project skeleton 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 skeleton 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 release
Run tests for development (auto re-run when file changed)
npm run devel
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 to testem.json
- Add
import * as assert from 'power-assert';
into test code.
Using libraries
ToDo
- register Gemnasium
- add CI service configuration (Travis, Circle, etc)