22 lines
2.2 KiB
JavaScript
22 lines
2.2 KiB
JavaScript
"use strict";
|
|
var path = require("path");
|
|
var childProcess = require("child_process");
|
|
var earlyChild;
|
|
// exports
|
|
exports.start = function (moduleNameArg, loaderLengthArg) {
|
|
if (moduleNameArg === void 0) { moduleNameArg = ""; }
|
|
if (loaderLengthArg === void 0) { loaderLengthArg = "10"; }
|
|
earlyChild = childProcess.fork(path.join(__dirname, "early.child.js"), [], {
|
|
env: {
|
|
moduleNameArg: moduleNameArg,
|
|
loaderLengthArg: loaderLengthArg,
|
|
CI: process.env.CI
|
|
}
|
|
});
|
|
};
|
|
exports.stop = function () {
|
|
earlyChild.kill();
|
|
};
|
|
|
|
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFFQSxJQUFPLElBQUksV0FBVyxNQUFNLENBQUMsQ0FBQztBQUU5QixJQUFPLFlBQVksV0FBVyxlQUFlLENBQUMsQ0FBQztBQUMvQyxJQUFJLFVBQVUsQ0FBQztBQUNmLFVBQVU7QUFDQyxhQUFLLEdBQUcsVUFBUyxhQUF5QixFQUFDLGVBQTZCO0lBQXZELDZCQUF5QixHQUF6QixrQkFBeUI7SUFBQywrQkFBNkIsR0FBN0Isc0JBQTZCO0lBQy9FLFVBQVUsR0FBRyxZQUFZLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxFQUFDLGdCQUFnQixDQUFDLEVBQUMsRUFBRSxFQUFDO1FBQ3BFLEdBQUcsRUFBRTtZQUNELGFBQWEsRUFBQyxhQUFhO1lBQzNCLGVBQWUsRUFBQyxlQUFlO1lBQy9CLEVBQUUsRUFBRSxPQUFPLENBQUMsR0FBRyxDQUFDLEVBQUU7U0FDckI7S0FDSixDQUFDLENBQUM7QUFDUCxDQUFDLENBQUM7QUFFUyxZQUFJLEdBQUc7SUFDZCxV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