gulp-harp
Successor of statica. Reloads with browser-sync.
Compass.rb is out of scope here, this being a Node.js module, though there is an example demonstrating seamless workflow.
Use
Best used with beverage though it works fine just with gulp
. In either case, here is an example gulpfile.js
:
var gulp = // options;
You will have to install gulp
, harp
, and gulp-harp
as dependencies (better devDependencies
) or will be reminded about it anyway.
Options
Here are some options for example:
"name": "serve" // the gulp task name "help": "Harp-serve src & browser-sync" "path": "src" // the site's root dir "port": 9000 "sync": // passed on to browser-sync "proxy": "localhost:9000" "open": false "notify": false "reload": // no default - must provide paths to reload "src/**/*" "stream": // don't reload the whole page for these ... "src/**/*.css"
If you look at the defaults in gulp-harp.json
, please note that the structure is slightly different, so don't get mislead to copy from it verbatim.
Examples
See this deployed astrolet.co site for demo / source code example.