gulp-harp

harp server and browser-sync for gulp webdev workflow

Showing:

Popularity

Downloads/wk

0

GitHub Stars

4

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

4

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial