Cross Module Generator
Rapidly create modules that can be used both on Node.js & Browser.
- CommonJS & AMD support
- ES6 support via Babel
- Gulpfile with tasks to watch, test & build.
- Ready to publish Bower & package.json
- Testing environment: Jasmine + Istanbul
- Travis CI & Coveralls integration
Getting Started
Install Yeoman and Cross Module Generator:
npm install -g yo
npm install -g generator-cross-module
Initialize the generator:
yo cross-module
Usage
- Run
gulp watch
, work on /src - Execute
gulp autotest
, write your tests - Finally, create distribution files with
gulp build
- Publish!