From aa71d8e16fc1b3949a5f35605dc8a4138985cd5b Mon Sep 17 00:00:00 2001 From: Thomas Shafer Date: Mon, 24 Oct 2016 14:52:33 -0700 Subject: [PATCH] Log the port the demo app is running on --- tools/gulp/task_helpers.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/gulp/task_helpers.ts b/tools/gulp/task_helpers.ts index 9d42388bb859..54d7436d4018 100644 --- a/tools/gulp/task_helpers.ts +++ b/tools/gulp/task_helpers.ts @@ -188,15 +188,19 @@ export function vendorTask() { export function serverTask(liveReload: boolean = true, streamCallback: (stream: NodeJS.ReadWriteStream) => void = null) { return () => { + const port = 4200; + const stream = gulp.src('dist').pipe(gulpServer({ livereload: liveReload, fallback: 'index.html', - port: 4200 + port })); if (streamCallback) { streamCallback(stream); } + + console.log(`Running app at http://localhost:${port}.`); return stream; } }