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.8 to 0.3.9

2

package.json
{
"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);
}
});
};
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