Includes gulp, babel (es2015, stage-1, runtime, react), browserify (commonjs-style require), react, postcss and css-modules (precss, autoprefixer) .. and more!
All build artifacts goes into ./build/
directory.
Inside your javascripts the global var DEBUG=(true||false)
is defined.
Babel config is inside package.json
npm install
predefined gulp
tasks are ..
gulp build
→ buildindex.html
, one big javascript bundleapp.js
and copy favicon fromsrc/
tobuild/
gulp release
→ same as build but withDEBUG=false
gulp
→ build and watch (watches only forsrc/**/*.js
changes but ignoressrc/index.html
orsrc/favicon.ico
)gulp serve
→ to run a http server and serve the app at localhost
other sub tasks are ..
gulp html
gulp favicon
gulp bundle
gulp bundle:watch
gulp clean
.. and have fun 😃