Skip to content

harp server and browser-sync for gulp webdev workflow

License

Notifications You must be signed in to change notification settings

gulpsome/gulp-harp

Repository files navigation

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

NPM

Best used with beverage though it works fine just with gulp. In either case, here is an example gulpfile.js:

var gulp = require('beverage')(require('gulp'), {
  "harp": {
    // 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.

Develop Dependency Status devDependency Status

js-standard-style

License

MIT

About

harp server and browser-sync for gulp webdev workflow

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published