https://github.com/danielnaab/mercury-gulp-boilerplate
Starter project for mercury.js using gulp, es6ify, and mercury-jsxify
https://github.com/danielnaab/mercury-gulp-boilerplate
Last synced: about 1 year ago
JSON representation
Starter project for mercury.js using gulp, es6ify, and mercury-jsxify
- Host: GitHub
- URL: https://github.com/danielnaab/mercury-gulp-boilerplate
- Owner: danielnaab
- Created: 2014-08-05T18:50:37.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-16T19:23:19.000Z (almost 12 years ago)
- Last Synced: 2025-01-20T13:19:47.854Z (over 1 year ago)
- Language: JavaScript
- Size: 176 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mercury-gulp-boilerplate
This is a starter project for [mercury][1] using [gulp.js][2], [browserify][3],
[es6-browserify][4], [mercury-jsxify][5], and [sass][6]. I worked on this as a
learning exercise, so would appreciate any suggestions or pull requests.
## Install
```shell
npm install
```
This will install all dependencies into a local `node_modules` directory. Then,
use the `watch` task to start a local dev server on port 9000:
```shell
gulp watch
```
To build a minified distributable, use the `dist` task:
```shell
gulp dist
```
## Features
This gulp project includes the following features:
- browserify bundling
- live reload
- jsx compilation
- es6 support (limited)
- sass/scss compilation
## Opinions/Assumptions
- I tried to build a class-based component system. In this boilerplate, there
is no distinction between controllers and views - the view is simply a `render`
method on the component class.
[1]: https://github.com/Raynos/mercury
[2]: http://gulpjs.com/
[3]: http://browserify.org/
[4]: https://github.com/reissbaker/es6-browserify
[5]: https://github.com/Raynos/mercury-jsxify
[6]: http://sass-lang.com/