fis-command-release
Advanced tools
Comparing version 0.3.8 to 0.3.9
{ | ||
"name" : "fis-command-release", | ||
"description" : "fis release command.", | ||
"version" : "0.3.8", | ||
"version" : "0.3.9", | ||
"author" : "FIS Team <fis@baidu.com>", | ||
@@ -6,0 +6,0 @@ "homepage" : "http://fis.baidu.com/", |
@@ -96,3 +96,5 @@ /* | ||
.action(function(options){ | ||
var cwd = fis.util.realpath(process.cwd()), | ||
//try to find fis-conf.js | ||
var root = fis.util.realpath(process.cwd()), | ||
cwd = root, | ||
filename = fis.project.conf, | ||
@@ -104,34 +106,43 @@ pos = cwd.length, conf; | ||
if(fis.util.exists(conf)){ | ||
//init project | ||
fis.project.setProjectRoot(cwd); | ||
//merge standard conf | ||
fis.config.merge(fis.util.readJSON(__dirname + '/standard.json')); | ||
//merge user conf | ||
fis.config.merge(fis.util.readJSON(conf)); | ||
//configure log | ||
fis.log.level = options.debug ? fis.log.L_ALL : fis.log.level; | ||
fis.log.throw = true; | ||
//compile setup | ||
var tmp = fis.compile.setup({ | ||
debug : options.debug, | ||
optimize : options.optimize, | ||
lint : options.lint, | ||
hash : options.md5 > 0, | ||
domain : options.domain | ||
}); | ||
if(options.clean){ | ||
fis.cache.clean(tmp); | ||
} | ||
if(options.watch){ | ||
watch(options); | ||
} else { | ||
release(options); | ||
} | ||
return; | ||
root = cwd; | ||
break; | ||
} else { | ||
conf = false; | ||
} | ||
} while(pos > 0); | ||
fis.log.error('unable to find fis-conf file [' + filename + ']'); | ||
//init project | ||
fis.project.setProjectRoot(root); | ||
//merge standard conf | ||
fis.config.merge(fis.util.readJSON(__dirname + '/standard.json')); | ||
if(conf){ | ||
//init user conf | ||
require(conf); | ||
} else { | ||
fis.log.warning('unable to find fis-conf file [' + filename + ']'); | ||
} | ||
//configure log | ||
fis.log.level = options.debug ? fis.log.L_ALL : fis.log.level; | ||
fis.log.throw = true; | ||
//compile setup | ||
var tmp = fis.compile.setup({ | ||
debug : options.debug, | ||
optimize : options.optimize, | ||
lint : options.lint, | ||
hash : options.md5 > 0, | ||
domain : options.domain | ||
}); | ||
if(options.clean){ | ||
fis.cache.clean(tmp); | ||
} | ||
if(options.watch){ | ||
watch(options); | ||
} else { | ||
release(options); | ||
} | ||
}); | ||
}; |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
10925
220
1