Skip to content

othree/aster-watch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aster-watch

NPM version Build Status

Continuous source files reader for aster.

Usage

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.

API

watch(options)

options

Type: Object

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

options.init

Type: Boolean Default: true

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

License

MIT License

About

Continuous source files reader for aster.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%