@vuetify/cli 0.0.12-beta.2 → 0.0.12
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/LICENSE +9 -0
- package/README.md +29 -22
- package/dist/index.mjs +2772 -2772
- package/dist/{prompt-DYweujNG.mjs → prompt-DTp_s2AT.mjs} +5 -5
- package/package.json +7 -2
- package/src/commands/docs.ts +0 -5
- package/src/commands/init.ts +0 -26
- package/src/commands/update.ts +0 -5
- package/src/commands/upgrade.ts +0 -5
- package/src/index.ts +0 -44
- package/tsdown.config.ts +0 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
2
|
+
import process$1, { stdin, stdout } from "node:process";
|
|
3
3
|
import { WriteStream } from "node:tty";
|
|
4
4
|
import c from "node:readline";
|
|
5
5
|
|
|
@@ -646,9 +646,9 @@ var PD = class extends x {
|
|
|
646
646
|
}
|
|
647
647
|
};
|
|
648
648
|
function ce() {
|
|
649
|
-
return
|
|
649
|
+
return process$1.platform !== "win32" ? process$1.env.TERM !== "linux" : !!process$1.env.CI || !!process$1.env.WT_SESSION || !!process$1.env.TERMINUS_SUBLIME || process$1.env.ConEmuTask === "{cmd::Cmder}" || process$1.env.TERM_PROGRAM === "Terminus-Sublime" || process$1.env.TERM_PROGRAM === "vscode" || process$1.env.TERM === "xterm-256color" || process$1.env.TERM === "alacritty" || process$1.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
|
|
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) => {
|
|
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
|
|
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}`}
|
|
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
|
|
717
|
+
default: return `${e.dim(P)} ${e.dim(i)}`;
|
|
718
718
|
}
|
|
719
719
|
};
|
|
720
720
|
return new jD({
|
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuetify/cli",
|
|
3
|
-
"version": "0.0.12
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "Vuetify CLI",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist",
|
|
8
|
+
"README.md",
|
|
9
|
+
"LICENSE"
|
|
10
|
+
],
|
|
6
11
|
"bin": {
|
|
7
12
|
"vuetify": "./dist/index.mjs"
|
|
8
13
|
},
|
|
@@ -19,7 +24,7 @@
|
|
|
19
24
|
"open": "^11.0.0",
|
|
20
25
|
"pathe": "^2.0.3",
|
|
21
26
|
"tsdown": "^0.16.8",
|
|
22
|
-
"@vuetify/cli-shared": "0.0.12
|
|
27
|
+
"@vuetify/cli-shared": "0.0.12"
|
|
23
28
|
},
|
|
24
29
|
"main": "./dist/index.mjs",
|
|
25
30
|
"module": "./dist/index.mjs",
|
package/src/commands/docs.ts
DELETED
package/src/commands/init.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { createVuetify, projectArgs } from '@vuetify/cli-shared'
|
|
2
|
-
import { i18n } from '@vuetify/cli-shared/i18n'
|
|
3
|
-
import { defineCommand } from 'citty'
|
|
4
|
-
import { version } from '../../package.json'
|
|
5
|
-
|
|
6
|
-
export const init = defineCommand({
|
|
7
|
-
meta: {
|
|
8
|
-
name: 'init',
|
|
9
|
-
description: i18n.t('commands.init.description'),
|
|
10
|
-
},
|
|
11
|
-
args: {
|
|
12
|
-
...projectArgs(),
|
|
13
|
-
cwd: {
|
|
14
|
-
type: 'string',
|
|
15
|
-
description: 'The current working directory',
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
run: async ({ args }) => {
|
|
19
|
-
await createVuetify({
|
|
20
|
-
...args,
|
|
21
|
-
version,
|
|
22
|
-
})
|
|
23
|
-
},
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
export default init
|
package/src/commands/update.ts
DELETED
package/src/commands/upgrade.ts
DELETED
package/src/index.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import tab from '@bomb.sh/tab/citty'
|
|
2
|
-
import { createBanner, registerProjectArgsCompletion } from '@vuetify/cli-shared'
|
|
3
|
-
import { add } from '@vuetify/cli-shared/commands'
|
|
4
|
-
import { i18n } from '@vuetify/cli-shared/i18n'
|
|
5
|
-
import { checkForUpdate } from '@vuetify/cli-shared/utils'
|
|
6
|
-
|
|
7
|
-
import { defineCommand, runMain, showUsage } from 'citty'
|
|
8
|
-
import { version } from '../package.json'
|
|
9
|
-
import { docs } from './commands/docs'
|
|
10
|
-
import { init } from './commands/init'
|
|
11
|
-
import { update } from './commands/update'
|
|
12
|
-
import { upgrade } from './commands/upgrade'
|
|
13
|
-
|
|
14
|
-
export const main = defineCommand({
|
|
15
|
-
meta: {
|
|
16
|
-
name: 'vuetify',
|
|
17
|
-
version,
|
|
18
|
-
description: i18n.t('cli.main.description'),
|
|
19
|
-
},
|
|
20
|
-
subCommands: {
|
|
21
|
-
init,
|
|
22
|
-
add,
|
|
23
|
-
update,
|
|
24
|
-
docs,
|
|
25
|
-
upgrade,
|
|
26
|
-
},
|
|
27
|
-
run: async ({ args, cmd }) => {
|
|
28
|
-
if (args._[0] === 'complete') {
|
|
29
|
-
return
|
|
30
|
-
}
|
|
31
|
-
console.log(createBanner())
|
|
32
|
-
showUsage(cmd)
|
|
33
|
-
},
|
|
34
|
-
})
|
|
35
|
-
|
|
36
|
-
await tab(main).then(completion => {
|
|
37
|
-
const initCommand = completion.commands.get('init')
|
|
38
|
-
if (initCommand) {
|
|
39
|
-
registerProjectArgsCompletion(initCommand)
|
|
40
|
-
}
|
|
41
|
-
})
|
|
42
|
-
|
|
43
|
-
await checkForUpdate(version)
|
|
44
|
-
runMain(main)
|