Skip to content

Commit

Permalink
chore: add output
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Mar 2, 2024
1 parent 3826619 commit b4212b2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,15 @@ function run() {
async (serverReportOption, isFirstCallback, during) => {
if (isFirstCallback) {
// 第一次启动把端口等信息打印出来
console.log('');
output(
`${colors.green('Node.js server')} ${colors.dim(
'started in'
)} ${during} ms\n`
)} ${during} ms ${
hasPaths
? colors.dim('and enable compile with ') + 'tsc-alias'
: ''
}\n`
);
if (serverReportOption && serverReportOption.port) {
const protocol = serverReportOption.ssl ? 'https' : 'http';
Expand Down

0 comments on commit b4212b2

Please sign in to comment.