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()
})
}