Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fis-command-release

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fis-command-release - npm Package Compare versions

Comparing version 0.3.6 to 0.3.7

2

package.json
{
"name" : "fis-command-release",
"description" : "fis release command.",
"version" : "0.3.6",
"version" : "0.3.7",
"author" : "FIS Team <fis@baidu.com>",

@@ -6,0 +6,0 @@ "homepage" : "http://fis.baidu.com/",

@@ -14,14 +14,2 @@ /*

var root = fis.project.getProjectPath();
var isWin = fis.util.isWin();
var ignored = [];
[ 'output', fis.project.conf.substring(root.length + 1) ].forEach(function(pattern){
pattern = isWin ? pattern.replace(/\//g, '\\') : pattern;
ignored.push('^' + fis.util.escapeReg(pattern) + '\b');
});
if(isWin){
ignored.push(fis.util.escapeReg('\\.'));
} else {
ignored.push(fis.util.escapeReg('/.'));
}
ignored = new RegExp(ignored.join('|'), 'i');
var timer = -1;

@@ -110,3 +98,3 @@ var safePathReg = /^[:\\\/ _\-.\w]+$/i;

var cwd = fis.util.realpath(process.cwd()),
filename = fis.config.get('system.conf', fis.project.DEFAULT_CONF_FILE),
filename = fis.project.conf,
pos = cwd.length, conf;

@@ -117,30 +105,29 @@ do {

if(fis.util.exists(conf)){
//init project
fis.project.setProjectRoot(cwd);
//merge standard conf
fis.config.merge(fis.util.readJSON(__dirname + '/standard.json'));
//init project
fis.project.init(cwd, conf, function(){
//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);
}
//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;

@@ -147,0 +134,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc