fis-command-release
Advanced tools
Comparing version 0.9.5 to 0.9.6
@@ -7,4 +7,5 @@ /* | ||
'use strict'; | ||
var port = fis.config.get('livereload.port', 8132); | ||
var hostname = fis.config.get('livereload.hostname', (function(){ | ||
var port; | ||
var hostname; | ||
var defaultHostname = (function(){ | ||
var net = require('os').networkInterfaces(); | ||
@@ -25,3 +26,3 @@ for(var key in net){ | ||
return '127.0.0.1'; | ||
})()); | ||
})(); | ||
@@ -113,2 +114,4 @@ function upload(receiver, to, release, content, subpath, callback){ | ||
if(dest.opt.live && file.isHtmlLike){ | ||
hostname = hostname || fis.config.get('livereload.hostname', defaultHostname); | ||
port = port || fis.config.get('livereload.port', 8132); | ||
var code = '<script type="text/javascript" charset="utf-8" src="http://' + hostname + ':' + port + '/livereload.js"></script>'; | ||
@@ -242,2 +245,2 @@ content = content.replace(/"(?:[^\\"\r\n\f]|\\[\s\S])*"|'(?:[^\\'\n\r\f]|\\[\s\S])*'|(<\/body>)/ig, function(m, $1){ | ||
exports.done = function(){}; | ||
exports.MAX_TASK_SIZE = 5; | ||
exports.MAX_TASK_SIZE = 5; |
{ | ||
"name" : "fis-command-release", | ||
"description" : "fis release command.", | ||
"version" : "0.9.5", | ||
"version" : "0.9.6", | ||
"author" : "FIS Team <fis@baidu.com>", | ||
@@ -6,0 +6,0 @@ "homepage" : "http://fis.baidu.com/", |
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
54922
1473