beyond
Version:
The Full Stack Universal Typescript Framework
27 lines (22 loc) • 730 B
JavaScript
const {fork} = require('child_process');
module.exports = class {
get process() {
return this.
}
/**
* BeyondJS local engine constructor
*
* @param dirname {string} The root folder of the instance
* @param specs {{inspect: number}} The engine specification, actually the inspection port
*/
constructor(dirname, specs) {
const {inspect} = specs;
this.
require('path').join(__dirname, 'process', 'index.js'),
[],
{cwd: process.cwd()});
const {ipc} = global.utils;
ipc.register('engine', this.
}
}