A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/node-base/base-watch below:

base-repos/base-watch: Watch plugin for base applications.

Watch plugin for base applications.

Install with npm:

$ npm install base-watch --save

Heads up this plugin requires the [base-tasks][] plugin to be registered first.

var watch = require('base-watch');

var Base = require('base');
var base = new Base();

base.use(watch());

If you're using assemble or assemble-core you can add the plugin like this:

assemble

var watch = require('base-watch');

var assemble = require('assemble');
var app = assemble();

app.use(watch());

assemble-core

var watch = require('base-watch');

var assemble = require('assemble-core');
var app = assemble();

app.use(watch());

If no task(s) or function is specified, only the instance of FSWatcher is returned and can be used directly. See chokidar.watch for more information.

Example

Watch a file, directory, or glob pattern for changes and build a task or list of tasks when changes are made. Watch is powered by [chokidar][] so arguments can be anything supported by chokidar.watch.

Params

Example

var watcher = app.watch('templates/pages/*.hbs', ['site']);

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Generate readme and API documentation with [verb][]:

$ npm install verb && npm run docs

Or, if [verb][] is installed globally:

Install dev dependencies:

$ npm install -d && npm test

Brian Woodward

verb © 2016, Brian Woodward. Released under the MIT license.

This file was generated by verb, v0.9.0, on April 06, 2016.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4