Awesome
ES6 Starterkit
The future is today!
Usage
- Fork or clone this repository.
- (Optional) Edit
package.json
if you intent to publish your package onnpm
. npm install
to install all the required dependencies fromnpm
.- Hack
src/index.js
. - Build/rebuild using
gulp
. - Don't forget to edit this
README.md
file.
Features
- Sanely configured
gulpfile.js
,package.json
,.gitignore
,.editorconfig
and.jshintrc
. - ES6 code from the
src
folder is transpiled into ES5 code in thedist
folder via6to5
. - Both CommonJS and ES6 modules are supported.
- Several modules and variables are automatically injected in each module at transpile time. Check (and edit)
__prelude.js
. __DEV__
and__PROD__
are boolean constants reflectingprocess.env.NODE_ENV
. Best friends withenvify
anduglify
.__BROWSER__
and__NODE__
are boolean constants trying hard to reflect whether the code runs in the browser (via browserify/webpack) or in a NodeJS env.bluebird
implementation ofPromise
is injected into global scope, since its is so neat and it outperforms nativePromise
.should
is injected into each module, so you can do development-time assertions that are skipped in production, eg.if(__DEV__) { n.should.be.a.Number; }
._
(lodash
) is also injected into each module.