Skip to content

Commit

Permalink
Show spinner during print
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoscalco committed Mar 18, 2020
1 parent fd2f8fe commit a346b7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ function update() {
}

function print(flags) {
const spinner = ora('Printing ...').start();
const {input, output} = flags;

liveServer.start({
Expand All @@ -149,6 +150,7 @@ function print(flags) {
});
await browser.close();
liveServer.shutdown();
spinner.succeed(`File ${chalk.underline(output)} has been successfully created.`);
})();
}

Expand Down

0 comments on commit a346b7f

Please sign in to comment.