- Install gulp-cli:
$ npm install gulp-cli --global
- Clone this package:
$ git clone https://github.com/doowb/handlebars-helpers-browserify-example.git $ cd handlebars-helpers-browserify-example.git
- Install npm dependencies:
$ npm install
- Run gulp to build and open the project in the browser:
$ gulp dev
This is a simple example showing how to use browserify to bundle up an app using handlebars-helpers.
The app
can be found in src/app.js and is used in src/index.html.
To build the app
run the following command:
$ gulp
This will browserify app.js
and create a distribution file in _gh_pages/app.js
.
Load _gh_pages/index.html
in a browser and open up the console to see sample output.
Use the following command to run a browser-sync server and have live-reloads. Making changes to src
files will rebuild and reload the example.
$ gulp dev
Brian Woodward
Copyright © 2018, Brian Woodward. Released under the MIT License.
This file was generated by verb-generate-readme, v0.6.0, on March 20, 2018.