ahomu / es6-Kameita

ES6 project template with 6to5, browserify, mocha, power-assert

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ES6 project template for Browser and Node

Licence Version

亀板 ( 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 babel/babel. Please see babel's document site.

Transpile the es6 files into es5 compat files, and browserifying

npm run build

Bump version in package.json

npm run patch
npm run minor
npm run major

Start watching src files & launch static localhost:3000

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.

  1. Remove the comment in Gulpfile.js, to set for node setting.
  2. testem.node.json rename to testem.json
  3. Add import assert from 'power-assert'; into test code.

Using libraries

ToDo

  • register Gemnasium
  • add CI service configuration (Travis, Circle, etc)

About

ES6 project template with 6to5, browserify, mocha, power-assert

License:MIT License


Languages

Language:JavaScript 90.0%Language:HTML 10.0%