Comparing version 0.1.4 to 0.1.5
const fs = require("fs") | ||
const ejs = require("ejs") | ||
const ncp = require("ncp") | ||
const path = require("path") | ||
const glob = require("glob") | ||
const eval = require("./eval.js") | ||
ncp.limit = 16 | ||
const eval = (filepath, newpath, values) => { | ||
const filename = path.basename(filepath) | ||
if(filename[0] == "_"){ | ||
const content = fs.readFileSync(filepath) | ||
const eval_content = ejs.render(content.toString(), values) | ||
newpath = path.join(path.dirname(newpath), filename.substr(1)) | ||
fs.writeFile(newpath, eval_content, (err) => { | ||
if (err) throw err | ||
}) | ||
return false | ||
} | ||
return true | ||
} | ||
module.exports = (templateDir, outDir, values, cb) => { | ||
@@ -30,0 +10,0 @@ fs.mkdir(outDir, (err) => { |
{ | ||
"name": "scaffe", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "A Scaffolding Utility", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
@@ -10,0 +7,0 @@ "type": "git", |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
4291
6
50
1
1
50
2