A RetroSearch Logo

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

Search Query:

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

asterjs/aster-src: Source files reader for aster.

Source files reader for aster.

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

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

var aster = require('aster');

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

aster.src returns Rx.Observable which, in order, emits single inner observable collection of file ASTs wrapped with custom {type: 'File', program: ..., loc: {source: 'fileName.js'}} node.

Type: String|String[]

List of patterns as array of strings or one comma-separated string.

Type: Object

glob module options (see https://github.com/isaacs/node-glob#options for details).

Type: Boolean Default: false

Set to true if you want patterns to be used as explicit list of files instead of globbing patterns (used by aster-watch).

Type: Function|Boolean|Object Default: true

src.registerParser(extension, parser)

Method for registering custom parsers associated with extension, see asterParse.registerParser for details.

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