gulp-script-inject
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -12,2 +12,3 @@ var through = require("through2"); | ||
var varname = opts.varname || 'yamlPath'; | ||
var ext = opts.ext || '.json'; | ||
var snippet = "<script></script>"; | ||
@@ -32,6 +33,10 @@ | ||
for(var i =0; i< jsonfiles.length; i++){ | ||
var name = jsonfiles[i].replace(/^\d./, '').split('.')[0] | ||
snippet+="{name: \""+name+"\", path: \"json/" + jsonfiles[i]+ "\"}," | ||
if(path.extname(jsonfiles) == ext){ | ||
var name = jsonfiles[i].replace(/^\d./, '').split('.')[0] | ||
snippet+="{name: \""+name+"\", path: \"json/" + jsonfiles[i]+ "\"}," | ||
} | ||
} | ||
@@ -38,0 +43,0 @@ |
{ | ||
"name": "gulp-script-inject", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "A gulp plugin to inject JS variables after reading from a directory", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4861
51