fis-command-release
Advanced tools
Comparing version 0.11.7 to 0.11.8
{ | ||
"name": "fis-command-release", | ||
"description": "fis release command.", | ||
"version": "0.11.7", | ||
"version": "0.11.8", | ||
"author": "FIS Team <fis@baidu.com>", | ||
@@ -6,0 +6,0 @@ "homepage": "http://fis.baidu.com/", |
@@ -11,3 +11,3 @@ /* | ||
exports.register = function(commander){ | ||
function watch(opt){ | ||
@@ -37,3 +37,3 @@ var root = fis.project.getProjectPath(); | ||
} | ||
}); | ||
}); | ||
} | ||
@@ -69,3 +69,3 @@ clearTimeout(timer); | ||
} | ||
function time(fn){ | ||
@@ -78,3 +78,3 @@ process.stdout.write('\n δ '.bold.yellow); | ||
} | ||
var LRServer, LRTimer; | ||
@@ -99,3 +99,3 @@ function reload(){ | ||
} | ||
var lastModified = {}; | ||
@@ -105,3 +105,3 @@ var collection = {}; | ||
var deploy = require('./lib/deploy.js'); | ||
deploy.done = function(){ | ||
@@ -111,3 +111,3 @@ clearTimeout(LRTimer); | ||
}; | ||
function release(opt){ | ||
@@ -140,3 +140,3 @@ var flag, cost, start = Date.now(); | ||
}; | ||
opt.beforeCompile = function(file){ | ||
@@ -146,3 +146,3 @@ collection[file.subpath] = file; | ||
}; | ||
try { | ||
@@ -186,3 +186,3 @@ //release | ||
} | ||
commander | ||
@@ -204,7 +204,7 @@ .option('-d, --dest <names>', 'release output destination', String, 'preview') | ||
.action(function(){ | ||
var options = arguments[arguments.length - 1]; | ||
fis.log.throw = true; | ||
//configure log | ||
@@ -250,8 +250,8 @@ if(options.verbose){ | ||
} | ||
//init project | ||
fis.project.setProjectRoot(root); | ||
process.title = 'fis ' + process.argv.splice(2).join(' ') + ' [ ' + root + ' ]'; | ||
if(conf){ | ||
@@ -264,6 +264,7 @@ var cache = fis.cache(conf, 'conf'); | ||
require(conf); | ||
fis.emitter.emit('fis-conf:loaded'); | ||
} else { | ||
fis.log.warning('missing config file [' + filename + ']'); | ||
} | ||
if(options.clean){ | ||
@@ -275,3 +276,3 @@ time(function(){ | ||
delete options.clean; | ||
//domain, fuck EventEmitter | ||
@@ -282,3 +283,3 @@ if(options.domains){ | ||
} | ||
if(options.live){ | ||
@@ -318,3 +319,3 @@ var LiveReloadServer = require('livereload-server-spec'); | ||
} | ||
switch (typeof options.md5){ | ||
@@ -332,3 +333,3 @@ case 'undefined': | ||
options.hash = options.md5 > 0; | ||
if(options.watch){ | ||
@@ -335,0 +336,0 @@ watch(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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
1546
58453
1