Simple node child process wrapper for typescript
Executes a process async redirecting all output to the default stdout/stderr.
export const simpleProcess = async (executable: string, args: string[] ): Promise<boolean>executablee.g. 'gulp'argse.g.['clean']- returns
trueif successfull otherwisefalse
import { simpleProcess } from '@mauriora/simpleprocess';
const runServe = async (): Promise<boolean> => simpleProcess('gulp', ['serve', '--nobrowser']);
if( await runServe()) {
exit(0);
} else {
exit(1);
}