Hi there,
I'm trying to spawn ghostface using child_process.spawn().
It's strange because none of the output is getting piped to the console, nor do any exit events trigger.
My guess is that the main ghostface isn't the process actually producing the output, nor the exit codes. Is there some other sub-process generating the output?
var spawn = require('child_process').spawn;
var spawned_process;
spawned_process = spawn('./node_modules/.bin/ghostface', ['test/browser_test_compiled.js']);
spawned_process.stdout.pipe(process.stdout);
spawned_process.stderr.pipe(process.stderr);
spawned_process.on('exit', function(code, signal){
console.log("EXITED with code", code);
});
spawned_process.on('error', function(err){
console.log("ERROR", err);
});
The same setup works for things like browserify, for example if I do:
spawned_process = spawn('./node_modules/.bin/browserify', ['test/browser_tes.js']);
It outputs the stdout and exits with a 0.
Any thoughts?