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 CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  //#region src/bin.ts
3
- require("./cli-vfCQ6omd.cjs").runCreateCli().then((exitCode) => {
3
+ require("./cli-DOnqF03F.cjs").runCreateCli().then((exitCode) => {
4
4
  process.exitCode = exitCode;
5
5
  });
6
6
  //#endregion
package/dist/bin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { n as runCreateCli } from "./cli-DojQWkv-.js";
2
+ import { n as runCreateCli } from "./cli-C4gsG0D1.js";
3
3
  //#region src/bin.ts
4
4
  runCreateCli().then((exitCode) => {
5
5
  process.exitCode = exitCode;
@@ -401,56 +401,47 @@ function pause(milliseconds) {
401
401
  }
402
402
  function startInstallProgress() {
403
403
  const reset = "\x1B[0m";
404
- const cyan = "\x1B[36m";
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
- 45,
410
- 105,
411
- 44,
412
- 46
413
- ],
414
- [
415
- 105,
416
- 44,
417
- 46,
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 renderBar = () => {
435
- const colors = frames[frameIndex % frames.length] ?? frames[0];
422
+ const renderInstalling = () => {
423
+ const frame = frames[frameIndex % frames.length] ?? frames[0];
436
424
  frameIndex += 1;
437
- return `${colors.map((color) => `\u001B[${color}m `).join("")}${reset}`;
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
- const renderTitle = () => `${renderBar()} Project initializing...`;
440
- stdout.write(`\u001B[?25l${renderTitle()}\n ${cyan}▸ Installing dependencies with Bun...${reset}\u001B[1A\r`);
430
+ stdout.write("\x1B[?25l");
431
+ redraw(renderInstalling());
441
432
  const timer = setInterval(() => {
442
- stdout.write(`\u001B[2K${renderTitle()}\r`);
443
- }, 120);
444
- const finish = (title, detail) => {
433
+ redraw(renderInstalling());
434
+ }, 90);
435
+ const finish = (lines) => {
445
436
  clearInterval(timer);
446
- stdout.write(`\u001B[2K\r\u001B[1B\r\u001B[2K\u001B[1A\r${title}\n${detail}\n\u001B[?25h`);
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(`${cyan}▲${reset} Project initialization failed.`, "");
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} Project initialized!${reset}`, ` ${dim} Dependencies installed${reset}\n`);
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 cyan = "\x1B[36m";
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
- 45,
434
- 105,
435
- 44,
436
- 46
437
- ],
438
- [
439
- 105,
440
- 44,
441
- 46,
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 renderBar = () => {
459
- const colors = frames[frameIndex % frames.length] ?? frames[0];
446
+ const renderInstalling = () => {
447
+ const frame = frames[frameIndex % frames.length] ?? frames[0];
460
448
  frameIndex += 1;
461
- return `${colors.map((color) => `\u001B[${color}m `).join("")}${reset}`;
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
- const renderTitle = () => `${renderBar()} Project initializing...`;
464
- node_process.stdout.write(`\u001B[?25l${renderTitle()}\n ${cyan}▸ Installing dependencies with Bun...${reset}\u001B[1A\r`);
454
+ node_process.stdout.write("\x1B[?25l");
455
+ redraw(renderInstalling());
465
456
  const timer = setInterval(() => {
466
- node_process.stdout.write(`\u001B[2K${renderTitle()}\r`);
467
- }, 120);
468
- const finish = (title, detail) => {
457
+ redraw(renderInstalling());
458
+ }, 90);
459
+ const finish = (lines) => {
469
460
  clearInterval(timer);
470
- node_process.stdout.write(`\u001B[2K\r\u001B[1B\r\u001B[2K\u001B[1A\r${title}\n${detail}\n\u001B[?25h`);
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(`${cyan}▲${reset} Project initialization failed.`, "");
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} Project initialized!${reset}`, ` ${dim} Dependencies installed${reset}\n`);
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-vfCQ6omd.cjs");
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-DojQWkv-.js";
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-jilatax",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "packageManager": "bun@1.3.4",
5
5
  "description": "Create an Android-first Jilatax application for Lynx and Rspeedy.",
6
6
  "type": "module",