1.0.1 • Published 8 years ago
es6-browser-boilerplate v1.0.1
ES6 SDK browser boilerplate
This boilerplate is intended for the development of third-party SDK's and browser applications using modern ES6 JavaScript. This is a simplified and enhanced version of babel-library-boilerplate
Features
- ES6 syntax using Babel compiler.
- Code linting with eslint and jscs.
- Builds for browser using browserify and babelify.
- Code minification and optimization using UglifyJS2.
- Unit tests with mocha, chai and sinon.
- Code coverage reports for unit tests using istanbul and isparta.
- Integration tests with karma.
- Gulp task runner.
Installation Prerequisites
Installation
$ git clone git@github.com:DavidKlassen/es6-browser-boilerplate.git
$ cd es6-browser-boilerplate
$ npm run setup
Available gulp tasks
gulp lint
- runs eslint and jscsgulp test:unit
- runs mocha unit testsgulp coverage
- runs unit tests and generates coverage reportgulp test:integration
- runs karma testsgulp test
- runs unit and integration tests and generates code coverage reportgulp browserify
- builds the script for browsergulp compile
- runs uglify and generates minified scriptgulp build
- runs browserify and compilegulp
- default task, runs lint, test, build and compile tasks