aster-dest

2019-09-13 admin

aster-dest是什么

什么是aster-dest,File writer for aster.

aster-dest使用教程帮助文档

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

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-75037.html

文章标题:aster-dest

回到顶部