mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-20 10:15:11 -04:00
💖 spinner
This commit is contained in:
parent
4bdae71c99
commit
780ce83c4d
1 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
import { renderCursors } from "shared";
|
||||
import { renderCursors, spinner } from "shared";
|
||||
|
||||
import { generateConfigs } from "./helpers/schema";
|
||||
import { colorSchemes } from "./color";
|
||||
|
@ -9,11 +9,17 @@ import { colorSchemes } from "./color";
|
|||
|
||||
try {
|
||||
for (let [schema] of Object.entries(configs)) {
|
||||
spinner.text = `Generating ${prefix}-${schema} bitmaps`;
|
||||
spinner.start();
|
||||
|
||||
await renderCursors(configs[schema]);
|
||||
|
||||
spinner.succeed();
|
||||
}
|
||||
|
||||
console.log("\n🎉 Render Done.");
|
||||
} catch (error) {
|
||||
spinner.fail();
|
||||
console.error(error);
|
||||
} finally {
|
||||
process.exit(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue