create-jilatax 0.1.4 → 0.1.5
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/bin.cjs +1 -1
- package/dist/bin.js +1 -1
- package/dist/{cli-DojQWkv-.js → cli-C4gsG0D1.js} +27 -36
- package/dist/{cli-vfCQ6omd.cjs → cli-DOnqF03F.cjs} +27 -36
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/bin.cjs
CHANGED
package/dist/bin.js
CHANGED
|
@@ -401,56 +401,47 @@ function pause(milliseconds) {
|
|
|
401
401
|
}
|
|
402
402
|
function startInstallProgress() {
|
|
403
403
|
const reset = "\x1B[0m";
|
|
404
|
-
const
|
|
404
|
+
const brightCyan = "\x1B[96m";
|
|
405
405
|
const dim = "\x1B[2m";
|
|
406
406
|
const green = "\x1B[32m";
|
|
407
|
+
const red = "\x1B[31m";
|
|
408
|
+
const bold = "\x1B[1m";
|
|
407
409
|
const frames = [
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
45
|
|
419
|
-
],
|
|
420
|
-
[
|
|
421
|
-
44,
|
|
422
|
-
46,
|
|
423
|
-
45,
|
|
424
|
-
105
|
|
425
|
-
],
|
|
426
|
-
[
|
|
427
|
-
46,
|
|
428
|
-
45,
|
|
429
|
-
105,
|
|
430
|
-
44
|
|
431
|
-
]
|
|
410
|
+
"⠋",
|
|
411
|
+
"⠙",
|
|
412
|
+
"⠹",
|
|
413
|
+
"⠸",
|
|
414
|
+
"⠼",
|
|
415
|
+
"⠴",
|
|
416
|
+
"⠦",
|
|
417
|
+
"⠧",
|
|
418
|
+
"⠇",
|
|
419
|
+
"⠏"
|
|
432
420
|
];
|
|
433
421
|
let frameIndex = 0;
|
|
434
|
-
const
|
|
435
|
-
const
|
|
422
|
+
const renderInstalling = () => {
|
|
423
|
+
const frame = frames[frameIndex % frames.length] ?? frames[0];
|
|
436
424
|
frameIndex += 1;
|
|
437
|
-
return `${
|
|
425
|
+
return [`${brightCyan}${frame}${reset} ${bold}Installing dependencies${reset}`, ` ${dim}Bun is preparing your JilataX project…${reset}`];
|
|
426
|
+
};
|
|
427
|
+
const redraw = (lines) => {
|
|
428
|
+
stdout.write(`\r\u001B[2K${lines[0]}\n\r\u001B[2K${lines[1]}\u001B[1A\r`);
|
|
438
429
|
};
|
|
439
|
-
|
|
440
|
-
|
|
430
|
+
stdout.write("\x1B[?25l");
|
|
431
|
+
redraw(renderInstalling());
|
|
441
432
|
const timer = setInterval(() => {
|
|
442
|
-
|
|
443
|
-
},
|
|
444
|
-
const finish = (
|
|
433
|
+
redraw(renderInstalling());
|
|
434
|
+
}, 90);
|
|
435
|
+
const finish = (lines) => {
|
|
445
436
|
clearInterval(timer);
|
|
446
|
-
stdout.write(`\u001B[2K\
|
|
437
|
+
stdout.write(`\r\u001B[2K${lines[0]}\n\r\u001B[2K${lines[1]}\n\u001B[?25h`);
|
|
447
438
|
};
|
|
448
439
|
return {
|
|
449
440
|
fail() {
|
|
450
|
-
finish(`${
|
|
441
|
+
finish([`${red}×${reset} ${bold}Dependency installation failed${reset}`, ` ${dim}Review the error above, then run bun install in your project.${reset}`]);
|
|
451
442
|
},
|
|
452
443
|
succeed() {
|
|
453
|
-
finish(`${green}
|
|
444
|
+
finish([`${green}✓${reset} ${bold}Dependencies installed${reset}`, ` ${dim}Your JilataX project is ready.${reset}`]);
|
|
454
445
|
}
|
|
455
446
|
};
|
|
456
447
|
}
|
|
@@ -425,56 +425,47 @@ function pause(milliseconds) {
|
|
|
425
425
|
}
|
|
426
426
|
function startInstallProgress() {
|
|
427
427
|
const reset = "\x1B[0m";
|
|
428
|
-
const
|
|
428
|
+
const brightCyan = "\x1B[96m";
|
|
429
429
|
const dim = "\x1B[2m";
|
|
430
430
|
const green = "\x1B[32m";
|
|
431
|
+
const red = "\x1B[31m";
|
|
432
|
+
const bold = "\x1B[1m";
|
|
431
433
|
const frames = [
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
45
|
|
443
|
-
],
|
|
444
|
-
[
|
|
445
|
-
44,
|
|
446
|
-
46,
|
|
447
|
-
45,
|
|
448
|
-
105
|
|
449
|
-
],
|
|
450
|
-
[
|
|
451
|
-
46,
|
|
452
|
-
45,
|
|
453
|
-
105,
|
|
454
|
-
44
|
|
455
|
-
]
|
|
434
|
+
"⠋",
|
|
435
|
+
"⠙",
|
|
436
|
+
"⠹",
|
|
437
|
+
"⠸",
|
|
438
|
+
"⠼",
|
|
439
|
+
"⠴",
|
|
440
|
+
"⠦",
|
|
441
|
+
"⠧",
|
|
442
|
+
"⠇",
|
|
443
|
+
"⠏"
|
|
456
444
|
];
|
|
457
445
|
let frameIndex = 0;
|
|
458
|
-
const
|
|
459
|
-
const
|
|
446
|
+
const renderInstalling = () => {
|
|
447
|
+
const frame = frames[frameIndex % frames.length] ?? frames[0];
|
|
460
448
|
frameIndex += 1;
|
|
461
|
-
return `${
|
|
449
|
+
return [`${brightCyan}${frame}${reset} ${bold}Installing dependencies${reset}`, ` ${dim}Bun is preparing your JilataX project…${reset}`];
|
|
450
|
+
};
|
|
451
|
+
const redraw = (lines) => {
|
|
452
|
+
node_process.stdout.write(`\r\u001B[2K${lines[0]}\n\r\u001B[2K${lines[1]}\u001B[1A\r`);
|
|
462
453
|
};
|
|
463
|
-
|
|
464
|
-
|
|
454
|
+
node_process.stdout.write("\x1B[?25l");
|
|
455
|
+
redraw(renderInstalling());
|
|
465
456
|
const timer = setInterval(() => {
|
|
466
|
-
|
|
467
|
-
},
|
|
468
|
-
const finish = (
|
|
457
|
+
redraw(renderInstalling());
|
|
458
|
+
}, 90);
|
|
459
|
+
const finish = (lines) => {
|
|
469
460
|
clearInterval(timer);
|
|
470
|
-
node_process.stdout.write(`\u001B[2K\
|
|
461
|
+
node_process.stdout.write(`\r\u001B[2K${lines[0]}\n\r\u001B[2K${lines[1]}\n\u001B[?25h`);
|
|
471
462
|
};
|
|
472
463
|
return {
|
|
473
464
|
fail() {
|
|
474
|
-
finish(`${
|
|
465
|
+
finish([`${red}×${reset} ${bold}Dependency installation failed${reset}`, ` ${dim}Review the error above, then run bun install in your project.${reset}`]);
|
|
475
466
|
},
|
|
476
467
|
succeed() {
|
|
477
|
-
finish(`${green}
|
|
468
|
+
finish([`${green}✓${reset} ${bold}Dependencies installed${reset}`, ` ${dim}Your JilataX project is ready.${reset}`]);
|
|
478
469
|
}
|
|
479
470
|
};
|
|
480
471
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_cli = require("./cli-
|
|
2
|
+
const require_cli = require("./cli-DOnqF03F.cjs");
|
|
3
3
|
exports.createHelpText = require_cli.createHelpText;
|
|
4
4
|
exports.createProject = require_cli.createProject;
|
|
5
5
|
exports.defaultPackageId = require_cli.defaultPackageId;
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as normalizeDisplayName, i as defaultPackageId, n as runCreateCli, o as normalizeProjectName, r as createProject, s as validatePackageId, t as createHelpText } from "./cli-
|
|
1
|
+
import { a as normalizeDisplayName, i as defaultPackageId, n as runCreateCli, o as normalizeProjectName, r as createProject, s as validatePackageId, t as createHelpText } from "./cli-C4gsG0D1.js";
|
|
2
2
|
export { createHelpText, createProject, defaultPackageId, normalizeDisplayName, normalizeProjectName, runCreateCli, validatePackageId };
|