https://github.com/doowb/handlebars-helpers-browserify-example
Example using handlebars-helpers in a web browser with browserify.
https://github.com/doowb/handlebars-helpers-browserify-example
Last synced: over 1 year ago
JSON representation
Example using handlebars-helpers in a web browser with browserify.
- Host: GitHub
- URL: https://github.com/doowb/handlebars-helpers-browserify-example
- Owner: doowb
- License: mit
- Created: 2016-05-18T16:29:59.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-20T17:22:27.000Z (over 8 years ago)
- Last Synced: 2024-10-03T13:42:43.320Z (almost 2 years ago)
- Language: JavaScript
- Homepage: https://doowb.github.io/handlebars-helpers-browserify-example
- Size: 2.3 MB
- Stars: 16
- Watchers: 4
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Quick start
* Install gulp-cli:
```bash
$ npm install gulp-cli --global
```
* Clone this package:
```bash
$ git clone https://github.com/doowb/handlebars-helpers-browserify-example.git
$ cd handlebars-helpers-browserify-example.git
```
* Install npm dependencies:
```bash
$ npm install
```
* Run gulp to build and open the project in the browser:
```bash
$ gulp dev
```
## What is this?
This is a simple example showing how to use [browserify](https://github.com/browserify/browserify) to bundle up an app using [handlebars-helpers](https://github.com/helpers/handlebars-helpers).
The `app` can be found in [src/app.js](./src/app.js) and is used in [src/index.html](./src/index.html).
To build the `app` run the following command:
```sh
$ 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](https://browsersync.io/) server and have live-reloads. Making changes to `src` files will rebuild and reload the example.
```sh
$ gulp dev
```
## Author
**Brian Woodward**
* [github/doowb](https://github.com/doowb)
* [twitter/doowb](https://twitter.com/doowb)
## License
Copyright © 2018, [Brian Woodward](https://github.com/doowb).
Released under the [MIT License](LICENSE).
***
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on March 20, 2018._