All Projects → doowb → handlebars-helpers-browserify-example

doowb / handlebars-helpers-browserify-example

Licence: MIT license
Example using handlebars-helpers in a web browser with browserify.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].