@vuetify/cli 0.0.10 → 0.0.11
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 +33 -3
- package/package.json +2 -2
- package/src/index.ts +8 -3
package/dist/index.mjs
CHANGED
|
@@ -57457,9 +57457,36 @@ function commandUpgradeFabric(pkgName) {
|
|
|
57457
57457
|
});
|
|
57458
57458
|
}
|
|
57459
57459
|
|
|
57460
|
+
//#endregion
|
|
57461
|
+
//#region ../shared/src/completion.ts
|
|
57462
|
+
function registerProjectArgsCompletion(completion) {
|
|
57463
|
+
const typeOption = completion.options.get("type");
|
|
57464
|
+
if (typeOption) typeOption.handler = (complete) => {
|
|
57465
|
+
complete("vuetify", "Vuetify Project");
|
|
57466
|
+
complete("vuetify0", "Vuetify0 Project");
|
|
57467
|
+
};
|
|
57468
|
+
const platformOption = completion.options.get("platform");
|
|
57469
|
+
if (platformOption) platformOption.handler = (complete) => {
|
|
57470
|
+
complete("vue", "Vue");
|
|
57471
|
+
complete("nuxt", "Nuxt");
|
|
57472
|
+
};
|
|
57473
|
+
const routerOption = completion.options.get("router");
|
|
57474
|
+
if (routerOption) routerOption.handler = (complete) => {
|
|
57475
|
+
complete("router", "Vue Router");
|
|
57476
|
+
complete("file-router", "Vue Router (File-based)");
|
|
57477
|
+
complete("none", "None");
|
|
57478
|
+
};
|
|
57479
|
+
const cssOption = completion.options.get("css");
|
|
57480
|
+
if (cssOption) cssOption.handler = (complete) => {
|
|
57481
|
+
complete("unocss", "UnoCSS");
|
|
57482
|
+
complete("tailwindcss", "Tailwind CSS");
|
|
57483
|
+
complete("none", "None");
|
|
57484
|
+
};
|
|
57485
|
+
}
|
|
57486
|
+
|
|
57460
57487
|
//#endregion
|
|
57461
57488
|
//#region package.json
|
|
57462
|
-
var version = "0.0.
|
|
57489
|
+
var version = "0.0.11";
|
|
57463
57490
|
|
|
57464
57491
|
//#endregion
|
|
57465
57492
|
//#region src/commands/docs.ts
|
|
@@ -57513,7 +57540,7 @@ const upgrade = commandUpgradeFabric("@vuetify/cli");
|
|
|
57513
57540
|
//#region src/index.ts
|
|
57514
57541
|
const main = defineCommand({
|
|
57515
57542
|
meta: {
|
|
57516
|
-
name: "
|
|
57543
|
+
name: "vuetify",
|
|
57517
57544
|
version,
|
|
57518
57545
|
description: i18n.t("cli.main.description")
|
|
57519
57546
|
},
|
|
@@ -57528,7 +57555,10 @@ const main = defineCommand({
|
|
|
57528
57555
|
if (args$2._[0] === "complete") return;
|
|
57529
57556
|
}
|
|
57530
57557
|
});
|
|
57531
|
-
await v(main)
|
|
57558
|
+
await v(main).then((completion) => {
|
|
57559
|
+
const initCommand = completion.commands.get("init");
|
|
57560
|
+
if (initCommand) registerProjectArgsCompletion(initCommand);
|
|
57561
|
+
});
|
|
57532
57562
|
console.log(createBanner());
|
|
57533
57563
|
await checkForUpdate(version);
|
|
57534
57564
|
runMain(main);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuetify/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "Vuetify CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"open": "^11.0.0",
|
|
20
20
|
"pathe": "^2.0.3",
|
|
21
21
|
"tsdown": "^0.16.6",
|
|
22
|
-
"@vuetify/cli-shared": "0.0.
|
|
22
|
+
"@vuetify/cli-shared": "0.0.11"
|
|
23
23
|
},
|
|
24
24
|
"main": "./dist/index.mjs",
|
|
25
25
|
"module": "./dist/index.mjs",
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import tab from '@bomb.sh/tab/citty'
|
|
2
|
-
import { createBanner } from '@vuetify/cli-shared'
|
|
2
|
+
import { createBanner, registerProjectArgsCompletion } from '@vuetify/cli-shared'
|
|
3
3
|
import { add } from '@vuetify/cli-shared/commands'
|
|
4
4
|
import { i18n } from '@vuetify/cli-shared/i18n'
|
|
5
5
|
import { checkForUpdate } from '@vuetify/cli-shared/utils'
|
|
@@ -13,7 +13,7 @@ import { upgrade } from './commands/upgrade'
|
|
|
13
13
|
|
|
14
14
|
export const main = defineCommand({
|
|
15
15
|
meta: {
|
|
16
|
-
name: '
|
|
16
|
+
name: 'vuetify',
|
|
17
17
|
version,
|
|
18
18
|
description: i18n.t('cli.main.description'),
|
|
19
19
|
},
|
|
@@ -31,7 +31,12 @@ export const main = defineCommand({
|
|
|
31
31
|
},
|
|
32
32
|
})
|
|
33
33
|
|
|
34
|
-
await tab(main)
|
|
34
|
+
await tab(main).then(completion => {
|
|
35
|
+
const initCommand = completion.commands.get('init')
|
|
36
|
+
if (initCommand) {
|
|
37
|
+
registerProjectArgsCompletion(initCommand)
|
|
38
|
+
}
|
|
39
|
+
})
|
|
35
40
|
|
|
36
41
|
console.log(createBanner())
|
|
37
42
|
await checkForUpdate(version)
|