create-unmint 1.1.0 → 1.1.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/index.js +25 -4
- package/package.json +5 -1
package/dist/index.js
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
// src/index.ts
|
|
4
4
|
import { Command } from "commander";
|
|
5
5
|
import chalk4 from "chalk";
|
|
6
|
+
import figlet from "figlet";
|
|
7
|
+
import gradient from "gradient-string";
|
|
6
8
|
|
|
7
9
|
// src/commands/init.ts
|
|
8
10
|
import fs2 from "fs-extra";
|
|
@@ -487,13 +489,32 @@ async function applyUpdates(projectDir, changes) {
|
|
|
487
489
|
}
|
|
488
490
|
|
|
489
491
|
// src/index.ts
|
|
490
|
-
var
|
|
491
|
-
|
|
492
|
-
|
|
492
|
+
var cyanGradient = gradient([
|
|
493
|
+
"#065f5f",
|
|
494
|
+
// dark teal
|
|
495
|
+
"#0d7377",
|
|
496
|
+
// medium teal
|
|
497
|
+
"#14a3a8",
|
|
498
|
+
// teal
|
|
499
|
+
"#32c4c4",
|
|
500
|
+
// cyan
|
|
501
|
+
"#5ce1e6"
|
|
502
|
+
// light cyan
|
|
503
|
+
]);
|
|
504
|
+
function printBanner() {
|
|
505
|
+
const banner = figlet.textSync("UNMINT", {
|
|
506
|
+
font: "ANSI Shadow",
|
|
507
|
+
horizontalLayout: "default"
|
|
508
|
+
});
|
|
493
509
|
console.log();
|
|
494
|
-
console.log(
|
|
510
|
+
console.log(cyanGradient.multiline(banner));
|
|
495
511
|
console.log(chalk4.dim(" Beautiful documentation, open source"));
|
|
496
512
|
console.log();
|
|
513
|
+
}
|
|
514
|
+
var program = new Command();
|
|
515
|
+
program.name("create-unmint").description("Create and manage Unmint documentation projects").version("1.0.0");
|
|
516
|
+
program.argument("[project-name]", "Name of the project to create").option("-y, --yes", "Skip prompts and use defaults").option("--update", "Update an existing Unmint project").option("--dry-run", "Show what would be updated without making changes").action(async (projectName, options) => {
|
|
517
|
+
printBanner();
|
|
497
518
|
if (options.update) {
|
|
498
519
|
await update(options);
|
|
499
520
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-unmint",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Create a new Unmint documentation project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -20,12 +20,16 @@
|
|
|
20
20
|
"chalk": "^5.3.0",
|
|
21
21
|
"commander": "^12.1.0",
|
|
22
22
|
"execa": "^9.5.2",
|
|
23
|
+
"figlet": "^1.9.4",
|
|
23
24
|
"fs-extra": "^11.2.0",
|
|
25
|
+
"gradient-string": "^3.0.0",
|
|
24
26
|
"inquirer": "^12.3.0",
|
|
25
27
|
"ora": "^8.1.1"
|
|
26
28
|
},
|
|
27
29
|
"devDependencies": {
|
|
30
|
+
"@types/figlet": "^1.7.0",
|
|
28
31
|
"@types/fs-extra": "^11.0.4",
|
|
32
|
+
"@types/gradient-string": "^1.1.6",
|
|
29
33
|
"@types/node": "^22.10.7",
|
|
30
34
|
"tsup": "^8.3.6",
|
|
31
35
|
"typescript": "^5.7.3"
|