This commit is contained in:
Philipp Kunz 2016-05-23 04:51:45 +02:00
parent 102d384de5
commit 6db7cc0e14
2 changed files with 6 additions and 8 deletions

8
dist/index.js vendored
View File

@ -1,14 +1,12 @@
"use strict"; "use strict";
/// <reference path="./typings/index.d.ts" /> var path = require("path");
var colors = require("colors");
var readline = require("readline");
var childProcess = require("child_process"); var childProcess = require("child_process");
var earlyChild; var earlyChild;
// exports // exports
exports.start = function (moduleNameArg, loaderLengthArg) { exports.start = function (moduleNameArg, loaderLengthArg) {
if (moduleNameArg === void 0) { moduleNameArg = ""; } if (moduleNameArg === void 0) { moduleNameArg = ""; }
if (loaderLengthArg === void 0) { loaderLengthArg = "10"; } if (loaderLengthArg === void 0) { loaderLengthArg = "10"; }
earlyChild = childProcess.fork("./dist/early.child.js", [], { earlyChild = childProcess.fork(path.join(__dirname, "early.child.js"), [], {
env: { env: {
moduleNameArg: moduleNameArg, moduleNameArg: moduleNameArg,
loaderLengthArg: loaderLengthArg loaderLengthArg: loaderLengthArg
@ -19,4 +17,4 @@ exports.stop = function () {
earlyChild.kill(); earlyChild.kill();
}; };
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSw2Q0FBNkM7QUFDN0MsSUFBSSxNQUFNLEdBQUcsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFDO0FBQy9CLElBQUksUUFBUSxHQUFHLE9BQU8sQ0FBQyxVQUFVLENBQUMsQ0FBQztBQUVuQyxJQUFPLFlBQVksV0FBVyxlQUFlLENBQUMsQ0FBQztBQUMvQyxJQUFJLFVBQVUsQ0FBQztBQUNmLFVBQVU7QUFDQyxhQUFLLEdBQUcsVUFBUyxhQUF5QixFQUFDLGVBQTZCO0lBQXZELDZCQUF5QixHQUF6QixrQkFBeUI7SUFBQywrQkFBNkIsR0FBN0Isc0JBQTZCO0lBQy9FLFVBQVU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gZXhwb3J0c1xyXG5leHBvcnQgbGV0IHN0YXJ0ID0gZnVuY3Rpb24obW9kdWxlTmFtZUFyZzpzdHJpbmcgPSBcIlwiLGxvYWRlckxlbmd0aEFyZzpzdHJpbmcgPSBcIjEwXCIpe1xyXG4gICAgZWFybHlDaGlsZCA9IGNoaWxkUHJvY2Vzcy5mb3JrKHBhdGguam9pbihfX2Rpcm5hbWUsXCJlYXJseS5jaGlsZC5qc1wiKSxbXSx7XHJcbiAgICAgICAgZW52OiB7XHJcbiAgICAgICAgICAgIG1vZHVsZU5hbWVBcmc6bW9kdWxlTmFtZUFyZyxcclxuICAgICAgICAgICAgbG9hZGVyTGVuZ3RoQXJnOmxvYWRlckxlbmd0aEFyZ1xyXG4gICAgICAgIH1cclxuICAgIH0pO1xyXG59O1xyXG5cclxuZXhwb3J0IGxldCBzdG9wID0gZnVuY3Rpb24oKXtcclxuICAgIGVhcmx5Q2hpbGQua2lsbCgpO1xyXG59O1xyXG5cclxuIl19

View File

@ -1,12 +1,12 @@
/// <reference path="./typings/index.d.ts" /> /// <reference path="./typings/index.d.ts" />
let colors = require("colors"); import colors = require("colors");
let readline = require("readline"); import path = require("path");
import childProcess = require("child_process"); import childProcess = require("child_process");
let earlyChild; let earlyChild;
// exports // exports
export let start = function(moduleNameArg:string = "",loaderLengthArg:string = "10"){ export let start = function(moduleNameArg:string = "",loaderLengthArg:string = "10"){
earlyChild = childProcess.fork("./dist/early.child.js",[],{ earlyChild = childProcess.fork(path.join(__dirname,"early.child.js"),[],{
env: { env: {
moduleNameArg:moduleNameArg, moduleNameArg:moduleNameArg,
loaderLengthArg:loaderLengthArg loaderLengthArg:loaderLengthArg