copy-template-dir
Advanced tools
Comparing version 1.0.1 to 1.0.2
16
index.js
@@ -52,11 +52,17 @@ const minstache = require('minstache-stream') | ||
return function (done) { | ||
const fileName = file.name | ||
const fileName = file.path | ||
const inFile = file.fullPath | ||
const parentDir = file.parentDir | ||
const outFile = path.join(outDir, reDot(fileName)) | ||
const rs = fs.createReadStream(inFile) | ||
const ts = minstache(vars) | ||
const ws = fs.createWriteStream(outFile) | ||
mkdirp(path.join(outDir, parentDir), function (err) { | ||
if (err) return done(err) | ||
console.log('outfile', outFile) | ||
return pump(rs, ts, ws, done) | ||
const rs = fs.createReadStream(inFile) | ||
const ts = minstache(vars) | ||
const ws = fs.createWriteStream(outFile) | ||
pump(rs, ts, ws, done) | ||
}) | ||
} | ||
@@ -63,0 +69,0 @@ } |
{ | ||
"name": "copy-template-dir", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "High throughput template dir writes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
6139
62