update CLI

This commit is contained in:
Rich Harris
2018-09-03 17:17:45 -04:00
parent 3ffb396d87
commit 3ecc21c0d9

View File

@@ -15,13 +15,15 @@ prog.command('dev')
.option('--hot', 'Use hot module replacement (requires webpack)', true)
.option('--live', 'Reload on changes if not using --hot', true)
.option('--bundler', 'Specify a bundler (rollup or webpack)')
.option('--stream', 'Stream logs, inside of boxing them', false)
.action(async (opts: {
port: number,
open: boolean,
'dev-port': number,
live: boolean,
hot: boolean,
bundler?: string
bundler?: string,
stream: boolean
}) => {
const { dev } = await import('./cli/dev');
dev(opts);