cute-localize
Advanced tools
Comparing version 0.1.15 to 0.1.16
@@ -26,2 +26,3 @@ #!/usr/bin/env node | ||
.option("-G, --no-use-gitignore", "Do not use 'git check-ignore' to exclude files/directories") | ||
.option("-X, --excluded-paths", "Exclude files/directories whose paths contain the patterns specified") | ||
.option("-v, --verbose", "Print error messages") | ||
@@ -44,2 +45,4 @@ .parse(process.argv); | ||
var excludedPatterns = excludedPaths || []; | ||
var defaultString = program.defaultString || {}; //NODE: To use with 'typeof defaultString == "object"' | ||
@@ -158,2 +161,8 @@ | ||
} | ||
var shouldExclude = excludedPaths.some(function(ep) { | ||
return (dirName + "/" + fileName).indexOf(ep) >= 0; | ||
}); | ||
if (shouldExclude) { | ||
return; | ||
} | ||
var stats = FS.statSync(dirName + "/" + fileName); | ||
@@ -160,0 +169,0 @@ if (stats.isDirectory()) |
{ | ||
"name": "cute-localize", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -176,2 +176,3 @@ Simple and powerful i18n module for Node.js | ||
-G, --no-use-gitignore Do not use 'git check-ignore' to exclude files/directories | ||
-X, --excluded-paths Exclude files/directories whose paths contain the patterns specified | ||
-v, --verbose Print error messages | ||
@@ -178,0 +179,0 @@ ``` |
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
18317
325
198