elm-create-spa
Advanced tools
Comparing version 1.0.6 to 1.0.7
10
index.js
@@ -20,10 +20,3 @@ #!/usr/bin/env node | ||
const skeleton = path.resolve(__dirname, "skeleton"); | ||
const excludes = fs.readFileSync(path.join(skeleton, "gitignore"), "utf8") | ||
.split("\n") | ||
.filter(line => line.trim() !== ""); | ||
function exclude(path) { | ||
return !excludes.some(exclude => path.includes(exclude)); | ||
} | ||
function installed(target) { | ||
@@ -52,4 +45,3 @@ console.log(""); | ||
} | ||
copySync(skeleton, target, { filter: exclude }); | ||
// Rename gitignore to gitignore. your read that well. | ||
copySync(skeleton, target); | ||
moveSync(`${target}/gitignore`, `${target}/.gitignore`); | ||
@@ -56,0 +48,0 @@ installed(target); |
{ | ||
"name": "elm-create-spa", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "An utility to generate an Elm SPA skeleton.", | ||
@@ -5,0 +5,0 @@ "bin": { |
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
21244
49