-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
24 lines (18 loc) · 899 Bytes
/
index.js
File metadata and controls
24 lines (18 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
var inject = require("./console-inject");
var jasmine = require("./jasmine-reporter");
var jshint = require("./jshint-reporter");
var server = require("./server");
var path = require("path");
module.exports = function (params) {
var options = params || {};
options.port = options.port || 45600;
options.reports = options.reports || {};
options.reports.jasmine = path.resolve(options.reports.jasmine || "report/jasmine.json");
options.reports.jshint = path.resolve(options.reports.jshint || "report/jshint.json");
server({ "port" : options.port, "watch": options.reports });
return {
"consoleInjector": function () { return inject({ "port": options.port }); },
"jasmineReporter": function () { return jasmine({ "out": options.reports.jasmine }); },
"jshintReporter": function () { return jshint({ "out": options.reports.jshint }); }
};
};