aster-dest

2019-09-13

File writer for aster.

aster-dest

NPM versionBuild Status

File writer for aster.

Usage

This module is part of asterand 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/escodegencode generation options.

License

MIT License

Repository

asterjs/aster-dest


上一篇:aster-generate
下一篇:aster-watch
相关教程
关注微信

扫码加入 JavaScript 社区

相关文章

首次访问,需要验证
微信扫码,关注即可
(仅需验证一次)

欢迎加入 JavaScript 社区

号内回复关键字:

回到顶部