Comparing version 0.0.6 to 0.0.7
10
app.js
@@ -37,7 +37,9 @@ var fileServer = require("./index"); | ||
var weinreConf = { | ||
open: true, | ||
port: 9001 | ||
var toolsConf = { | ||
weinre: { | ||
open: true, | ||
port: 9001 | ||
} | ||
}; | ||
fileServer.start(serverSettings, transRules, weinreConf); | ||
fileServer.start(serverSettings, transRules, toolsConf); |
10
index.js
@@ -10,4 +10,4 @@ var http = require("http"); | ||
var dummyjson = require('dummy-json'); | ||
var injectWeinre = require('./weinre/injectWeinre.js'); | ||
var starWeinre = require('./weinre/startWeinre.js'); | ||
var injectWeinre = require('./tools/injectWeinre.js'); | ||
var starWeinre = require('./tools/startWeinre.js'); | ||
@@ -39,3 +39,3 @@ var dummyHelpers = { | ||
module.exports = { | ||
start: function (params, rules, weinreConf) { | ||
start: function (params, rules, toolsConf) { | ||
var servers = params || {}; | ||
@@ -183,3 +183,3 @@ var serverList = []; | ||
*/ | ||
injectWeinre(realPath, ext, weinreConf) | ||
toolsConf && toolsConf.weinre && injectWeinre(realPath, ext, toolsConf.weinre) | ||
} | ||
@@ -202,3 +202,3 @@ } | ||
*/ | ||
starWeinre(weinreConf); | ||
toolsConf && toolsConf.weinre && starWeinre(toolsConf.weinre); | ||
} | ||
@@ -205,0 +205,0 @@ }; |
@@ -35,3 +35,3 @@ { | ||
"scripts": {}, | ||
"version": "0.0.6" | ||
"version": "0.0.7" | ||
} |
@@ -89,8 +89,10 @@ # gulp-bird | ||
var weinre = { | ||
open: true, | ||
port: 8080 | ||
} | ||
var toolsConf = { | ||
weinre: { | ||
open: true, | ||
port: 9001 | ||
} | ||
}; | ||
bird.start(server, transpondRules, weinre); | ||
bird.start(server, transpondRules, toolsConf); | ||
@@ -97,0 +99,0 @@ ``` |
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
104
26290
11
528