This commit is contained in:
Rich Harris
2018-05-26 12:39:44 -04:00
parent 58d2f605fc
commit 8ba57969c2
2 changed files with 19 additions and 7 deletions

View File

@@ -17,6 +17,16 @@ export function dev(opts: { port: number, open: boolean }) {
if (opts.open) child_process.exec(`open http://localhost:${event.port}`);
first = false;
}
// TODO clear screen?
event.process.stdout.on('data', data => {
process.stdout.write(data);
});
event.process.stderr.on('data', data => {
process.stderr.write(data);
});
});
watcher.on('invalid', (event: events.InvalidEvent) => {