Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.5 KB

File metadata and controls

59 lines (41 loc) · 1.5 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

Author

Brian Woodward

License

Copyright © 2018, Brian Woodward. Released under the MIT License.


This file was generated by verb-generate-readme, v0.6.0, on March 20, 2018.