create-izi-noir 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +10 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2636,6 +2636,15 @@ Error: Directory "${projectOptions.projectName}" already exists and is not empty
|
|
|
2636
2636
|
}
|
|
2637
2637
|
}
|
|
2638
2638
|
if (!projectOptions.skipInstall) {
|
|
2639
|
+
process.stdout.write("\x1B[?25l");
|
|
2640
|
+
const frames = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
|
|
2641
|
+
let i = 0;
|
|
2642
|
+
const startSpinner = setInterval(() => {
|
|
2643
|
+
process.stdout.write(`\r${pc3.cyan(frames[i++ % frames.length])} ${pc3.dim("Preparing npm install...")}`);
|
|
2644
|
+
}, 80);
|
|
2645
|
+
await new Promise((r) => setTimeout(r, 600));
|
|
2646
|
+
clearInterval(startSpinner);
|
|
2647
|
+
process.stdout.write("\r\x1B[K");
|
|
2639
2648
|
const installProgress = createInstallProgress();
|
|
2640
2649
|
installProgress.start();
|
|
2641
2650
|
try {
|
|
@@ -2646,6 +2655,7 @@ Error: Directory "${projectOptions.projectName}" already exists and is not empty
|
|
|
2646
2655
|
console.log(pc3.yellow(' Run "npm install" manually.'));
|
|
2647
2656
|
}
|
|
2648
2657
|
}
|
|
2658
|
+
process.stdout.write("\x1B[?25h");
|
|
2649
2659
|
printSuccessMessage(projectOptions);
|
|
2650
2660
|
}
|
|
2651
2661
|
async function createProjectStructure(projectDir, options, progress) {
|