@vuetify/cli 0.0.5 → 0.0.6
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.mjs +48312 -26248
- package/dist/{prompt-BIVRMyOv.mjs → prompt-DfzfvfGq.mjs} +5 -5
- package/package.json +3 -3
- package/src/commands/init.ts +37 -20
- package/src/index.ts +2 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
2
|
+
import P, { stdin, stdout } from "node:process";
|
|
3
3
|
import c from "node:readline";
|
|
4
4
|
import { WriteStream } from "node:tty";
|
|
5
5
|
|
|
@@ -646,9 +646,9 @@ var PD = class extends x {
|
|
|
646
646
|
}
|
|
647
647
|
};
|
|
648
648
|
function ce() {
|
|
649
|
-
return
|
|
649
|
+
return P.platform !== "win32" ? P.env.TERM !== "linux" : !!P.env.CI || !!P.env.WT_SESSION || !!P.env.TERMINUS_SUBLIME || P.env.ConEmuTask === "{cmd::Cmder}" || P.env.TERM_PROGRAM === "Terminus-Sublime" || P.env.TERM_PROGRAM === "vscode" || P.env.TERM === "xterm-256color" || P.env.TERM === "alacritty" || P.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
650
650
|
}
|
|
651
|
-
const V = ce(), u = (t, n) => V ? t : n, le = u("❯", ">"), L = u("■", "x"), W = u("▲", "x"), C = u("✔", "√"), o = u(""), d = u(""), k = u("●", ">"), P = u("○", " "), A = u("◻", "[•]"), T = u("◼", "[+]"), F = u("◻", "[ ]"), w = (t) => {
|
|
651
|
+
const V = ce(), u = (t, n) => V ? t : n, le = u("❯", ">"), L = u("■", "x"), W = u("▲", "x"), C = u("✔", "√"), o = u(""), d = u(""), k = u("●", ">"), P$2 = u("○", " "), A = u("◻", "[•]"), T = u("◼", "[+]"), F = u("◻", "[ ]"), w = (t) => {
|
|
652
652
|
switch (t) {
|
|
653
653
|
case "initial":
|
|
654
654
|
case "active": return e.cyan(le);
|
|
@@ -701,7 +701,7 @@ ${w(this.state)} ${t.message}
|
|
|
701
701
|
case "submit": return `${r$1}${e.gray(o)} ${e.dim(i)}`;
|
|
702
702
|
case "cancel": return `${r$1}${e.gray(o)} ${e.strikethrough(e.dim(i))}
|
|
703
703
|
${e.gray(o)}`;
|
|
704
|
-
default: return `${r$1}${e.cyan(o)} ${this.value ? `${e.green(k)} ${n}` : `${e.dim(P)} ${e.dim(n)}`} ${e.dim("/")} ${this.value ? `${e.dim(P)} ${e.dim(s)}` : `${e.green(k)} ${s}`}
|
|
704
|
+
default: return `${r$1}${e.cyan(o)} ${this.value ? `${e.green(k)} ${n}` : `${e.dim(P$2)} ${e.dim(n)}`} ${e.dim("/")} ${this.value ? `${e.dim(P$2)} ${e.dim(s)}` : `${e.green(k)} ${s}`}
|
|
705
705
|
${e.cyan(d)}
|
|
706
706
|
`;
|
|
707
707
|
}
|
|
@@ -714,7 +714,7 @@ ${e.cyan(d)}
|
|
|
714
714
|
case "selected": return `${e.dim(i)}`;
|
|
715
715
|
case "active": return `${e.green(k)} ${i} ${s.hint ? e.dim(`(${s.hint})`) : ""}`;
|
|
716
716
|
case "cancelled": return `${e.strikethrough(e.dim(i))}`;
|
|
717
|
-
default: return `${e.dim(P)} ${e.dim(i)}`;
|
|
717
|
+
default: return `${e.dim(P$2)} ${e.dim(i)}`;
|
|
718
718
|
}
|
|
719
719
|
};
|
|
720
720
|
return new jD({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuetify/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Vuetify CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"author": "Andrey Yolkin <andreyyolkin@gmail.com>",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@clack/prompts": "^1.0.0-alpha.
|
|
13
|
+
"@clack/prompts": "^1.0.0-alpha.8",
|
|
14
14
|
"citty": "^0.1.6",
|
|
15
15
|
"giget": "^2.0.0",
|
|
16
16
|
"kolorist": "^1.8.0",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"open": "^11.0.0",
|
|
19
19
|
"pathe": "^2.0.3",
|
|
20
20
|
"tsdown": "^0.16.6",
|
|
21
|
-
"@vuetify/cli-shared": "0.0.
|
|
21
|
+
"@vuetify/cli-shared": "0.0.6"
|
|
22
22
|
},
|
|
23
23
|
"main": "./dist/index.mjs",
|
|
24
24
|
"module": "./dist/index.mjs",
|
package/src/commands/init.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createVuetify, projectArgs } from '@vuetify/cli-shared'
|
|
2
2
|
import { i18n } from '@vuetify/cli-shared/i18n'
|
|
3
3
|
import { defineCommand } from 'citty'
|
|
4
|
-
|
|
5
|
-
const cwd = process.cwd()
|
|
6
|
-
|
|
7
|
-
const VUETIFY_0_APP_DEFAULT_NAME = 'vuetify0-app'
|
|
8
|
-
const VUETIFY_APP_DEFAULT_NAME = 'vuetify-app'
|
|
4
|
+
import { version } from '../../package.json'
|
|
9
5
|
|
|
10
6
|
export const init = defineCommand({
|
|
11
7
|
meta: {
|
|
@@ -14,23 +10,44 @@ export const init = defineCommand({
|
|
|
14
10
|
},
|
|
15
11
|
args: {
|
|
16
12
|
...projectArgs(),
|
|
17
|
-
|
|
13
|
+
cwd: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
description: 'The current working directory',
|
|
16
|
+
},
|
|
17
|
+
features: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
description: 'The features to install (router, pinia, eslint)',
|
|
20
|
+
},
|
|
21
|
+
typescript: {
|
|
18
22
|
type: 'boolean',
|
|
19
|
-
description:
|
|
23
|
+
description: 'Use TypeScript',
|
|
24
|
+
default: true,
|
|
25
|
+
},
|
|
26
|
+
packageManager: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
description: 'The package manager to use (npm, pnpm, yarn, bun)',
|
|
29
|
+
},
|
|
30
|
+
debug: {
|
|
31
|
+
type: 'boolean',
|
|
32
|
+
description: 'Show debug logs',
|
|
33
|
+
default: false,
|
|
34
|
+
},
|
|
35
|
+
type: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
description: 'The Vuetify version to use (vuetify, vuetify0)',
|
|
38
|
+
default: 'vuetify',
|
|
39
|
+
},
|
|
40
|
+
platform: {
|
|
41
|
+
type: 'string',
|
|
42
|
+
description: 'The framework to use (vue, nuxt)',
|
|
43
|
+
default: 'vue',
|
|
20
44
|
},
|
|
21
45
|
},
|
|
22
|
-
run: async ({ args }
|
|
23
|
-
await (
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
defaultName: VUETIFY_0_APP_DEFAULT_NAME,
|
|
28
|
-
})
|
|
29
|
-
: initVuetify({
|
|
30
|
-
cwd,
|
|
31
|
-
...args,
|
|
32
|
-
defaultName: VUETIFY_APP_DEFAULT_NAME,
|
|
33
|
-
}))
|
|
46
|
+
run: async ({ args }) => {
|
|
47
|
+
await createVuetify({
|
|
48
|
+
...args,
|
|
49
|
+
version,
|
|
50
|
+
})
|
|
34
51
|
},
|
|
35
52
|
})
|
|
36
53
|
|
package/src/index.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createBanner } from '@vuetify/cli-shared'
|
|
1
2
|
import { add } from '@vuetify/cli-shared/commands'
|
|
2
3
|
import { i18n } from '@vuetify/cli-shared/i18n'
|
|
3
4
|
|
|
@@ -23,4 +24,5 @@ export const main = defineCommand({
|
|
|
23
24
|
},
|
|
24
25
|
})
|
|
25
26
|
|
|
27
|
+
console.log(createBanner())
|
|
26
28
|
runMain(main)
|