0.1.2 • Published 10 years ago

aster-dest v0.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

aster-dest

NPM version Build Status

File writer for aster.

Usage

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

You use it in build scripts whenever you want to generate and write out processed files into folder:

var aster = require('aster');

aster.src([
  '**/*.js',
  '!node_modules/**'
])
.map(plugin1(optionsForPlugin1))
.map(plugin2(optionsForPlugin2))
// ...
.map(aster.dest('dist', {sourceMap: true}))
.subscribe(aster.runner);

API

dest(path, options)

Type: Rx.Observable<{path: string, contents: string}>

path

Type: String

Destination folder.

options

Type: Object

aster-generate/escodegen code generation options.

License

MIT License

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago