A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/asterjs/aster-watch below:

asterjs/aster-watch: Continuous source files reader for aster.

Continuous source files reader for aster.

This module is part of aster and is available via aster.watch.

You use it in build scripts whenever you want to get list of files for executing build pipeline:

var aster = require('aster');

aster.watch([
  '**/*.js',
  '!node_modules/**'
])
.throttle(500)
.map(plugin1(optionsForPlugin1))
.map(plugin2(optionsForPlugin2))
// ...
.subscribe(aster.runner);

aster.watch returns Rx.Observable which, in order, emits inner observable collection of file ASTs every time something changes in watched folder.

Type: Object

Any options that can be passed into aster.src can be used in aster.watch as well.

Type: Boolean Default: true

When set, emits initial collection of files before any change happens.

MIT License


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