create-vuetify0 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 +32 -3
- package/package.json +2 -2
- package/src/index.ts +5 -3
package/dist/index.mjs
CHANGED
|
@@ -56877,9 +56877,36 @@ function commandUpgradeFabric(pkgName) {
|
|
|
56877
56877
|
});
|
|
56878
56878
|
}
|
|
56879
56879
|
|
|
56880
|
+
//#endregion
|
|
56881
|
+
//#region ../shared/src/completion.ts
|
|
56882
|
+
function registerProjectArgsCompletion(completion) {
|
|
56883
|
+
const typeOption = completion.options.get("type");
|
|
56884
|
+
if (typeOption) typeOption.handler = (complete) => {
|
|
56885
|
+
complete("vuetify", "Vuetify Project");
|
|
56886
|
+
complete("vuetify0", "Vuetify0 Project");
|
|
56887
|
+
};
|
|
56888
|
+
const platformOption = completion.options.get("platform");
|
|
56889
|
+
if (platformOption) platformOption.handler = (complete) => {
|
|
56890
|
+
complete("vue", "Vue");
|
|
56891
|
+
complete("nuxt", "Nuxt");
|
|
56892
|
+
};
|
|
56893
|
+
const routerOption = completion.options.get("router");
|
|
56894
|
+
if (routerOption) routerOption.handler = (complete) => {
|
|
56895
|
+
complete("router", "Vue Router");
|
|
56896
|
+
complete("file-router", "Vue Router (File-based)");
|
|
56897
|
+
complete("none", "None");
|
|
56898
|
+
};
|
|
56899
|
+
const cssOption = completion.options.get("css");
|
|
56900
|
+
if (cssOption) cssOption.handler = (complete) => {
|
|
56901
|
+
complete("unocss", "UnoCSS");
|
|
56902
|
+
complete("tailwindcss", "Tailwind CSS");
|
|
56903
|
+
complete("none", "None");
|
|
56904
|
+
};
|
|
56905
|
+
}
|
|
56906
|
+
|
|
56880
56907
|
//#endregion
|
|
56881
56908
|
//#region package.json
|
|
56882
|
-
var version = "0.0.
|
|
56909
|
+
var version = "0.0.11";
|
|
56883
56910
|
|
|
56884
56911
|
//#endregion
|
|
56885
56912
|
//#region src/commands/upgrade.ts
|
|
@@ -56889,7 +56916,7 @@ const upgrade = commandUpgradeFabric("create-vuetify-v0");
|
|
|
56889
56916
|
//#region src/index.ts
|
|
56890
56917
|
const main = defineCommand({
|
|
56891
56918
|
meta: {
|
|
56892
|
-
name: "create-
|
|
56919
|
+
name: "create-vuetify0",
|
|
56893
56920
|
version,
|
|
56894
56921
|
description: i18n.t("cli.create_v0.description")
|
|
56895
56922
|
},
|
|
@@ -56910,7 +56937,9 @@ const main = defineCommand({
|
|
|
56910
56937
|
},
|
|
56911
56938
|
subCommands: { upgrade }
|
|
56912
56939
|
});
|
|
56913
|
-
await v(main)
|
|
56940
|
+
await v(main).then((completion) => {
|
|
56941
|
+
registerProjectArgsCompletion(completion);
|
|
56942
|
+
});
|
|
56914
56943
|
runMain(main);
|
|
56915
56944
|
|
|
56916
56945
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-vuetify0",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "Create a new Vuetify project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"nypm": "^0.6.2",
|
|
25
25
|
"pathe": "^2.0.3",
|
|
26
26
|
"tsdown": "^0.16.6",
|
|
27
|
-
"@vuetify/cli-shared": "0.0.
|
|
27
|
+
"@vuetify/cli-shared": "0.0.11"
|
|
28
28
|
},
|
|
29
29
|
"main": "./dist/index.mjs",
|
|
30
30
|
"module": "./dist/index.mjs",
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import tab from '@bomb.sh/tab/citty'
|
|
2
|
-
import { createVuetify, projectArgs } from '@vuetify/cli-shared'
|
|
2
|
+
import { createVuetify, projectArgs, registerProjectArgsCompletion } from '@vuetify/cli-shared'
|
|
3
3
|
import { i18n } from '@vuetify/cli-shared/i18n'
|
|
4
4
|
import { defineCommand, runMain } from 'citty'
|
|
5
5
|
|
|
@@ -8,7 +8,7 @@ import { upgrade } from './commands/upgrade'
|
|
|
8
8
|
|
|
9
9
|
export const main = defineCommand({
|
|
10
10
|
meta: {
|
|
11
|
-
name: 'create-
|
|
11
|
+
name: 'create-vuetify0',
|
|
12
12
|
version,
|
|
13
13
|
description: i18n.t('cli.create_v0.description'),
|
|
14
14
|
},
|
|
@@ -34,6 +34,8 @@ export const main = defineCommand({
|
|
|
34
34
|
},
|
|
35
35
|
})
|
|
36
36
|
|
|
37
|
-
await tab(main)
|
|
37
|
+
await tab(main).then(completion => {
|
|
38
|
+
registerProjectArgsCompletion(completion)
|
|
39
|
+
})
|
|
38
40
|
|
|
39
41
|
runMain(main)
|