Skip to content

Commit

Permalink
re-enable composer start up message (#2702)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
  • Loading branch information
a-b-r-o-w-n and cwhitten authored Apr 17, 2020
1 parent 4f4e26a commit 7af6272
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Composer/packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
},
"dependencies": {
"@azure/ms-rest-js": "^1.8.7",
"@bfc/indexers": "*",
"@bfc/client": "*",
"@bfc/indexers": "*",
"@bfc/lg-languageserver": "*",
"@bfc/lu-languageserver": "*",
"@bfc/shared": "*",
Expand All @@ -66,6 +66,7 @@
"axios": "^0.18.0",
"azure-storage": "^2.10.3",
"body-parser": "^1.18.3",
"chalk": "^4.0.0",
"compression": "^1.7.4",
"cookie-parser": "^1.4.4",
"debug": "^4.1.1",
Expand Down
5 changes: 4 additions & 1 deletion Composer/packages/server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import * as rpc from 'vscode-ws-jsonrpc';
import { IConnection, createConnection } from 'vscode-languageserver';
import { LGServer } from '@bfc/lg-languageserver';
import { LUServer } from '@bfc/lu-languageserver';
import chalk from 'chalk';

import { BotProjectService } from './services/project';
import { getAuthProvider } from './router/auth';
Expand Down Expand Up @@ -115,7 +116,9 @@ export async function start(pluginDir?: string) {
await new Promise(resolve => {
server = app.listen(port, () => {
if (process.env.NODE_ENV === 'production') {
log(`\n\nComposer now running at:\n\nhttp://localhost:${port}\n`);
// We don't use the debug logger here because we always want it to be shown.
// eslint-disable-next-line no-console
console.log(`\n\n${chalk.green('Composer now running at:')}\n\n${chalk.blue(`http://localhost:${port}`)}\n`);
}
resolve();
});
Expand Down
8 changes: 8 additions & 0 deletions Composer/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5976,6 +5976,14 @@ chalk@^3.0.0:
ansi-styles "^4.1.0"
supports-color "^7.1.0"

chalk@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.0.0.tgz#6e98081ed2d17faab615eb52ac66ec1fe6209e72"
integrity sha512-N9oWFcegS0sFr9oh1oz2d7Npos6vNoWW9HvtCg5N1KRFpUhaAhvTv5Y58g880fZaEYSNm3qDz8SU1UrGvp+n7A==
dependencies:
ansi-styles "^4.1.0"
supports-color "^7.1.0"

chardet@^0.7.0:
version "0.7.0"
resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e"
Expand Down

0 comments on commit 7af6272

Please sign in to comment.