Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: added ui/ux improvements in start commands #1524

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/core/models/Studio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import chokidar from 'chokidar';
import open from 'open';
import path from 'path';
import { version as studioVersion } from '@asyncapi/studio/package.json';
import { gray } from 'picocolors';
import { gray, blue } from 'picocolors';

const { readFile, writeFile } = fPromises;

Expand Down Expand Up @@ -100,9 +100,10 @@ export function start(filePath: string, port: number = DEFAULT_PORT): void {

server.listen(port, () => {
const url = `http://localhost:${port}?liveServer=${port}&studio-version=${studioVersion}`;
console.log(`Studio is now running at ${url}.`);
console.log(`You can open this URL in your web browser, and if needed, press ${gray('Ctrl + C')} to stop the process.`);
console.log(`Watching changes on file ${filePath}`);
console.log(`🎉🎉 Connected to Live Server running at ${blue(url)}.`);
console.log(`🌐 Open this URL in your web browser: ${blue(url)}`);
console.log(`🛑 If needed, press ${gray('Ctrl + C')} to stop the process.`);
console.log(`Watching changes on file ${blue(filePath)}`);
open(url);
});
}
Expand Down
Loading