Skip to content

madhums/browserify-example

Repository files navigation

Browserify example

A CRUD application using browserify using ES6.

Modules used

Installation

  1. Fork and clone the repo
  2. Run
$ npm install

Usage

$ gulp
  • Will watch changes to app.js using browserify and watchify
  • It will start serving ./index.html using browser-sync
  • It will create the compiled files in ./dist.
  • The compiled file contain sourcemaps (app-dev.js and app-dev.js.map)
  • If any files are changed, they are reloaded using browser-sync.

Tasks

$ gulp build
  • This will create the compiled files and put it under ./dist.
  • It includes the sourcemaps (app.js and app.js.map)
  • Does the same as what watch does
$ gulp minify
  • Will minify the files and put it in ./dist. Also includes sourcemaps.
$ gulp psi

Todo

  • Add LESS/SASS support and minification
  • Add S3 deploy
  • Improve asset management
  • Support for different environments

About

browserify example for building client side apps using ES6

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published