add replace()

This commit is contained in:
2018-02-16 00:46:55 +01:00
parent 867aa98155
commit 69c2cb0606
10 changed files with 293 additions and 107 deletions

View File

@ -21,6 +21,15 @@ export let src = (minimatchPathArrayArg: string[]): Transform => {
return gulpStream.stream
}
export let dest = () => {
export let dest = (dirArg: string) => {
}
export let replace = () => {
return plugins.through2.obj(async (file: Smartfile, enc, cb) => {
await file.write()
cb(file)
}, (cb) => {
cb()
})
}

View File

@ -2,10 +2,12 @@ import * as smartevent from 'smartevent'
import * as smartfile from 'smartfile'
import * as smartstream from 'smartstream'
import * as lodash from 'lodash'
import * as through2 from 'through2'
export {
lodash,
smartevent,
smartfile,
smartstream
smartstream,
through2
}