Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 1.03 KB

File metadata and controls

43 lines (32 loc) · 1.03 KB

Quick start

  • 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

What is this?

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.

Dev

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