An open API service indexing awesome lists of open source software.

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.

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._