index.js
1 class CoreProcess { 2 constructor(embark) { 3 this.embark = embark; 4 this.events = embark.events; 5 6 this.registerProcess(); 7 } 8 9 // Register 'embark' as a process 10 registerProcess() { 11 this.events.request('processes:register', 'embark', (setRunning) => { 12 // on 'outputDone', set 'embark' process to 'running' 13 this.events.on('outputDone', setRunning); 14 }); 15 // set 'embark' process to 'starting' 16 this.events.request('processes:launch', 'embark', () => {}); 17 } 18 } 19 20 module.exports = CoreProcess;