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 +1 -1
- package/dist/bin.js +1 -1
- package/dist/{cli-DVjeAJl_.js → cli-CLokng2W.js} +12 -4
- package/dist/{cli-Bei4bI0S.cjs → cli-QUvLV0zQ.cjs} +12 -4
- 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
|
@@ -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)}
|
|
492
|
+
const farewell = `Good luck out there 🎉, cd ${formatProjectDirectory(result.projectDirectory)}`;
|
|
493
493
|
if (interactive) {
|
|
494
|
+
stdout.write("\n");
|
|
494
495
|
printResultPanel(lines);
|
|
495
|
-
|
|
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
|
-
|
|
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(`[90m│\n└──[0m ${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)}
|
|
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
|
-
|
|
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
|
-
|
|
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(`[90m│\n└──[0m ${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-
|
|
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-
|
|
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 };
|