From 0196227fb227413b69df12016fdf5097cac164b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20H=C3=A1m?= Date: Tue, 10 Jan 2017 21:20:40 +0100 Subject: [PATCH] feat(new): show name of created project in output (#3795) --- packages/angular-cli/commands/init.run.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/angular-cli/commands/init.run.ts b/packages/angular-cli/commands/init.run.ts index 13fbdfc45c29..0707ccb4135c 100644 --- a/packages/angular-cli/commands/init.run.ts +++ b/packages/angular-cli/commands/init.run.ts @@ -1,3 +1,4 @@ +import * as chalk from 'chalk'; import LinkCli from '../tasks/link-cli'; import NpmInstall from '../tasks/npm-install'; @@ -91,7 +92,7 @@ export default function initRun(commandOptions: any, rawArgs: string[]) { if (commandOptions.skipGit === false) { return gitInit.run(commandOptions, rawArgs); } - }.bind(this)) + }) .then(function () { if (!commandOptions.skipNpm) { return npmInstall.run(); @@ -101,5 +102,8 @@ export default function initRun(commandOptions: any, rawArgs: string[]) { if (commandOptions.linkCli) { return linkCli.run(); } + }) + .then(() => { + this.ui.writeLine(chalk.green(`Project '${packageName}' successfully created.`)); }); }