@vuetify/cli 0.0.4 → 0.0.5
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 +19199 -4458
- package/dist/multipart-parser-CbtVsPSq.mjs +175 -0
- package/dist/node-CcjDTqtN.mjs +4007 -0
- package/dist/{prompt-BLG154F7.mjs → prompt-BIVRMyOv.mjs} +4 -4
- package/package.json +3 -2
- package/src/commands/init.ts +16 -9
- package/src/commands/update.ts +2 -37
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
2
|
+
import g$1, { stdin, stdout } from "node:process";
|
|
3
3
|
import c from "node:readline";
|
|
4
4
|
import { WriteStream } from "node:tty";
|
|
5
5
|
|
|
@@ -206,7 +206,7 @@ function A$1(t, u$1 = {}) {
|
|
|
206
206
|
}
|
|
207
207
|
return e$1;
|
|
208
208
|
}
|
|
209
|
-
const m = 10, L$1 = (t = 0) => (u$1) => `\x1B[${u$1 + t}m`, N
|
|
209
|
+
const m = 10, L$1 = (t = 0) => (u$1) => `\x1B[${u$1 + t}m`, N = (t = 0) => (u$1) => `\x1B[${38 + t};5;${u$1}m`, I = (t = 0) => (u$1, F$1, e$1) => `\x1B[${38 + t};2;${u$1};${F$1};${e$1}m`, r = {
|
|
210
210
|
modifier: {
|
|
211
211
|
reset: [0, 0],
|
|
212
212
|
bold: [1, 22],
|
|
@@ -277,7 +277,7 @@ function sD() {
|
|
|
277
277
|
return Object.defineProperty(r, "codes", {
|
|
278
278
|
value: t,
|
|
279
279
|
enumerable: false
|
|
280
|
-
}), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = L$1(), r.color.ansi256 = N
|
|
280
|
+
}), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = L$1(), r.color.ansi256 = N(), r.color.ansi16m = I(), r.bgColor.ansi = L$1(m), r.bgColor.ansi256 = N(m), r.bgColor.ansi16m = I(m), Object.defineProperties(r, {
|
|
281
281
|
rgbToAnsi256: {
|
|
282
282
|
value: (u$1, F$1, e$1) => u$1 === F$1 && F$1 === e$1 ? u$1 < 8 ? 16 : u$1 > 248 ? 231 : Math.round((u$1 - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u$1 / 255 * 5) + 6 * Math.round(F$1 / 255 * 5) + Math.round(e$1 / 255 * 5),
|
|
283
283
|
enumerable: false
|
|
@@ -646,7 +646,7 @@ var PD = class extends x {
|
|
|
646
646
|
}
|
|
647
647
|
};
|
|
648
648
|
function ce() {
|
|
649
|
-
return
|
|
649
|
+
return g$1.platform !== "win32" ? g$1.env.TERM !== "linux" : !!g$1.env.CI || !!g$1.env.WT_SESSION || !!g$1.env.TERMINUS_SUBLIME || g$1.env.ConEmuTask === "{cmd::Cmder}" || g$1.env.TERM_PROGRAM === "Terminus-Sublime" || g$1.env.TERM_PROGRAM === "vscode" || g$1.env.TERM === "xterm-256color" || g$1.env.TERM === "alacritty" || g$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
650
650
|
}
|
|
651
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) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuetify/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "Vuetify CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"author": "Andrey Yolkin <andreyyolkin@gmail.com>",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"devDependencies": {
|
|
13
|
+
"@clack/prompts": "^1.0.0-alpha.6",
|
|
13
14
|
"citty": "^0.1.6",
|
|
14
15
|
"giget": "^2.0.0",
|
|
15
16
|
"kolorist": "^1.8.0",
|
|
@@ -17,7 +18,7 @@
|
|
|
17
18
|
"open": "^11.0.0",
|
|
18
19
|
"pathe": "^2.0.3",
|
|
19
20
|
"tsdown": "^0.16.6",
|
|
20
|
-
"@vuetify/cli-shared": "0.0.
|
|
21
|
+
"@vuetify/cli-shared": "0.0.5"
|
|
21
22
|
},
|
|
22
23
|
"main": "./dist/index.mjs",
|
|
23
24
|
"module": "./dist/index.mjs",
|
package/src/commands/init.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { projectArgs, type ProjectArgs } from '@vuetify/cli-shared'
|
|
1
|
+
import { initVuetify, initVuetify0, projectArgs, type ProjectArgs } from '@vuetify/cli-shared'
|
|
2
2
|
import { i18n } from '@vuetify/cli-shared/i18n'
|
|
3
3
|
import { defineCommand } from 'citty'
|
|
4
|
-
import { relative, resolve } from 'pathe'
|
|
5
4
|
|
|
6
5
|
const cwd = process.cwd()
|
|
7
6
|
|
|
7
|
+
const VUETIFY_0_APP_DEFAULT_NAME = 'vuetify0-app'
|
|
8
|
+
const VUETIFY_APP_DEFAULT_NAME = 'vuetify-app'
|
|
9
|
+
|
|
8
10
|
export const init = defineCommand({
|
|
9
11
|
meta: {
|
|
10
12
|
name: 'init',
|
|
@@ -17,13 +19,18 @@ export const init = defineCommand({
|
|
|
17
19
|
description: i18n.t('commands.init.v0.description'),
|
|
18
20
|
},
|
|
19
21
|
},
|
|
20
|
-
run: ({ args }: { args: ProjectArgs }) => {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
run: async ({ args }: { args: ProjectArgs & { v0?: boolean } }) => {
|
|
23
|
+
await (args.v0
|
|
24
|
+
? initVuetify0({
|
|
25
|
+
cwd,
|
|
26
|
+
...args,
|
|
27
|
+
defaultName: VUETIFY_0_APP_DEFAULT_NAME,
|
|
28
|
+
})
|
|
29
|
+
: initVuetify({
|
|
30
|
+
cwd,
|
|
31
|
+
...args,
|
|
32
|
+
defaultName: VUETIFY_APP_DEFAULT_NAME,
|
|
33
|
+
}))
|
|
27
34
|
},
|
|
28
35
|
})
|
|
29
36
|
|
package/src/commands/update.ts
CHANGED
|
@@ -1,40 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineCommand } from 'citty'
|
|
1
|
+
import { update as updateCommand } from '@vuetify/cli-shared/commands'
|
|
3
2
|
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
export const update = defineCommand({
|
|
7
|
-
meta: {
|
|
8
|
-
name: 'update',
|
|
9
|
-
description: i18n.t('commands.update.description'),
|
|
10
|
-
},
|
|
11
|
-
args: {
|
|
12
|
-
nightly: {
|
|
13
|
-
type: 'boolean',
|
|
14
|
-
description: i18n.t('commands.update.nightly.description'),
|
|
15
|
-
},
|
|
16
|
-
packages: {
|
|
17
|
-
type: 'string',
|
|
18
|
-
description: i18n.t('commands.update.packages.description'),
|
|
19
|
-
default: packages.join(','),
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
run: ({ args }: { args: { nightly: boolean, packages: string } }) => {
|
|
23
|
-
console.log(i18n.t('commands.update.stub'))
|
|
24
|
-
const nightly = Boolean(args.nightly)
|
|
25
|
-
const list = (args.packages)
|
|
26
|
-
.split(',')
|
|
27
|
-
.map(s => s.trim())
|
|
28
|
-
.filter(Boolean)
|
|
29
|
-
|
|
30
|
-
console.log(i18n.t('commands.update.nightly_status', { status: i18n.t(nightly ? 'common.enabled' : 'common.disabled') }))
|
|
31
|
-
if (list.length > 0) {
|
|
32
|
-
console.log(i18n.t('commands.update.packages_to_update', { pkgs: list.join(', ') }))
|
|
33
|
-
} else {
|
|
34
|
-
console.log(i18n.t('commands.update.no_packages_specified'))
|
|
35
|
-
}
|
|
36
|
-
// TODO: Implement actual package update logic with optional nightly builds
|
|
37
|
-
},
|
|
38
|
-
})
|
|
3
|
+
export const update = updateCommand
|
|
39
4
|
|
|
40
5
|
export default update
|