create-jilatax 0.2.0 → 0.2.1

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-Bei4bI0S.cjs").runCreateCli().then((exitCode) => {
3
+ require("./cli-QUvLV0zQ.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-DVjeAJl_.js";
2
+ import { n as runCreateCli } from "./cli-CLokng2W.js";
3
3
  //#region src/bin.ts
4
4
  runCreateCli().then((exitCode) => {
5
5
  process.exitCode = exitCode;
@@ -489,10 +489,11 @@ function printResult(result, log, interactive) {
489
489
  " bun run create:aab"
490
490
  ];
491
491
  const message = lines.join("\n");
492
- const farewell = `cd ${formatProjectDirectory(result.projectDirectory)}, Good luck! 🎉`;
492
+ const farewell = `Good luck out there 🎉, cd ${formatProjectDirectory(result.projectDirectory)}`;
493
493
  if (interactive) {
494
+ stdout.write("\n");
494
495
  printResultPanel(lines);
495
- prompts.outro(farewell);
496
+ printFarewell(farewell);
496
497
  return;
497
498
  }
498
499
  log(`${message}\n\n${farewell}`);
@@ -501,7 +502,10 @@ function printResultPanel(lines) {
501
502
  const reset = "\x1B[0m";
502
503
  const gray = "\x1B[90m";
503
504
  const green = "\x1B[32m";
505
+ const brightCyan = "\x1B[96m";
506
+ const bold = "\x1B[1m";
504
507
  const title = "Result";
508
+ const headings = /* @__PURE__ */ new Set(["🛠️ build:", "🤖 Android:"]);
505
509
  const contentWidth = Math.max(displayWidth(title), ...lines.map(displayWidth)) + 5;
506
510
  const topRule = "─".repeat(contentWidth - displayWidth(title) - 1);
507
511
  const content = [
@@ -510,9 +514,10 @@ function printResultPanel(lines) {
510
514
  ""
511
515
  ].map((line) => {
512
516
  const padding = " ".repeat(contentWidth - displayWidth(line));
513
- return `${gray}│${reset} ${line}${padding}${gray}│${reset}`;
517
+ const text = headings.has(line) ? `${bold}${brightCyan}${line}${reset}` : line;
518
+ return `${gray}│${reset} ${text}${padding}${gray}│${reset}`;
514
519
  });
515
- const top = `${green}◇${reset} ${title} ${gray}${topRule}╮${reset}`;
520
+ const top = `${green}◇${reset} ${bold}${title}${reset} ${gray}${topRule}╮${reset}`;
516
521
  const bottom = `${gray}├${"─".repeat(contentWidth + 2)}╯${reset}`;
517
522
  stdout.write(`${[
518
523
  top,
@@ -520,6 +525,9 @@ function printResultPanel(lines) {
520
525
  bottom
521
526
  ].join("\n")}\n`);
522
527
  }
528
+ function printFarewell(message) {
529
+ stdout.write(`│\n└── ${message}\n\n`);
530
+ }
523
531
  function displayWidth(value) {
524
532
  return [...value].filter((character) => !/^[\uFE0E\uFE0F\u200D]$/u.test(character)).length;
525
533
  }
@@ -513,10 +513,11 @@ function printResult(result, log, interactive) {
513
513
  " bun run create:aab"
514
514
  ];
515
515
  const message = lines.join("\n");
516
- const farewell = `cd ${formatProjectDirectory(result.projectDirectory)}, Good luck! 🎉`;
516
+ const farewell = `Good luck out there 🎉, cd ${formatProjectDirectory(result.projectDirectory)}`;
517
517
  if (interactive) {
518
+ node_process.stdout.write("\n");
518
519
  printResultPanel(lines);
519
- _clack_prompts.outro(farewell);
520
+ printFarewell(farewell);
520
521
  return;
521
522
  }
522
523
  log(`${message}\n\n${farewell}`);
@@ -525,7 +526,10 @@ function printResultPanel(lines) {
525
526
  const reset = "\x1B[0m";
526
527
  const gray = "\x1B[90m";
527
528
  const green = "\x1B[32m";
529
+ const brightCyan = "\x1B[96m";
530
+ const bold = "\x1B[1m";
528
531
  const title = "Result";
532
+ const headings = /* @__PURE__ */ new Set(["🛠️ build:", "🤖 Android:"]);
529
533
  const contentWidth = Math.max(displayWidth(title), ...lines.map(displayWidth)) + 5;
530
534
  const topRule = "─".repeat(contentWidth - displayWidth(title) - 1);
531
535
  const content = [
@@ -534,9 +538,10 @@ function printResultPanel(lines) {
534
538
  ""
535
539
  ].map((line) => {
536
540
  const padding = " ".repeat(contentWidth - displayWidth(line));
537
- return `${gray}│${reset} ${line}${padding}${gray}│${reset}`;
541
+ const text = headings.has(line) ? `${bold}${brightCyan}${line}${reset}` : line;
542
+ return `${gray}│${reset} ${text}${padding}${gray}│${reset}`;
538
543
  });
539
- const top = `${green}◇${reset} ${title} ${gray}${topRule}╮${reset}`;
544
+ const top = `${green}◇${reset} ${bold}${title}${reset} ${gray}${topRule}╮${reset}`;
540
545
  const bottom = `${gray}├${"─".repeat(contentWidth + 2)}╯${reset}`;
541
546
  node_process.stdout.write(`${[
542
547
  top,
@@ -544,6 +549,9 @@ function printResultPanel(lines) {
544
549
  bottom
545
550
  ].join("\n")}\n`);
546
551
  }
552
+ function printFarewell(message) {
553
+ node_process.stdout.write(`│\n└── ${message}\n\n`);
554
+ }
547
555
  function displayWidth(value) {
548
556
  return [...value].filter((character) => !/^[\uFE0E\uFE0F\u200D]$/u.test(character)).length;
549
557
  }
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_cli = require("./cli-Bei4bI0S.cjs");
2
+ const require_cli = require("./cli-QUvLV0zQ.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-DVjeAJl_.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-CLokng2W.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.2.0",
3
+ "version": "0.2.1",
4
4
  "packageManager": "bun@1.3.4",
5
5
  "description": "Create an Android-first Jilatax application for Lynx and Rspeedy.",
6
6
  "type": "module",