Skip to content

Commit a346b7f

Browse files
Show spinner during print
1 parent fd2f8fe commit a346b7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ function update() {
124124
}
125125

126126
function print(flags) {
127+
const spinner = ora('Printing ...').start();
127128
const {input, output} = flags;
128129

129130
liveServer.start({
@@ -149,6 +150,7 @@ function print(flags) {
149150
});
150151
await browser.close();
151152
liveServer.shutdown();
153+
spinner.succeed(`File ${chalk.underline(output)} has been successfully created.`);
152154
})();
153155
}
154156

0 commit comments

Comments
 (0)