@vuetify/cli 1.1.3 → 1.1.5-beta.1
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 +28 -11
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -9938,7 +9938,7 @@ var en_default = {
|
|
|
9938
9938
|
},
|
|
9939
9939
|
"file": {
|
|
9940
9940
|
"label": "Vue Router (File-based)",
|
|
9941
|
-
"hint": "File-based routing with
|
|
9941
|
+
"hint": "File-based routing with vue-router"
|
|
9942
9942
|
}
|
|
9943
9943
|
},
|
|
9944
9944
|
"features": {
|
|
@@ -10193,7 +10193,7 @@ var ru_default = {
|
|
|
10193
10193
|
},
|
|
10194
10194
|
"file": {
|
|
10195
10195
|
"label": "Vue Router (File-based)",
|
|
10196
|
-
"hint": "Файловый роутинг с
|
|
10196
|
+
"hint": "Файловый роутинг с vue-router"
|
|
10197
10197
|
}
|
|
10198
10198
|
},
|
|
10199
10199
|
"features": {
|
|
@@ -147801,9 +147801,8 @@ var dependencies = {
|
|
|
147801
147801
|
"@nuxt/eslint": "^1.12.1",
|
|
147802
147802
|
"@pinia/nuxt": "^0.11.3",
|
|
147803
147803
|
"@nuxtjs/i18n": "^10.2.1",
|
|
147804
|
-
"vue-router": "^
|
|
147804
|
+
"vue-router": "^5.0.3",
|
|
147805
147805
|
"vue-i18n": "^11.2.7",
|
|
147806
|
-
"unplugin-vue-router": "^0.19.1",
|
|
147807
147806
|
"vite-plugin-vuetify": "^2.1.3",
|
|
147808
147807
|
"unocss": "^66.5.12",
|
|
147809
147808
|
"@unocss/transformer-directives": "^66.6.0",
|
|
@@ -148104,7 +148103,7 @@ export const useAppStore = defineStore('app', {
|
|
|
148104
148103
|
|
|
148105
148104
|
//#endregion
|
|
148106
148105
|
//#region ../shared/package.json
|
|
148107
|
-
var version$1 = "1.1.
|
|
148106
|
+
var version$1 = "1.1.5-beta.1";
|
|
148108
148107
|
|
|
148109
148108
|
//#endregion
|
|
148110
148109
|
//#region ../shared/src/utils/getTemplateSource.ts
|
|
@@ -148158,6 +148157,16 @@ const router = {
|
|
|
148158
148157
|
const registerPlugins = mod.exports.registerPlugins;
|
|
148159
148158
|
if (isFunction(registerPlugins)) addStatementToFunctionBody(registerPlugins, "app.use(router)");
|
|
148160
148159
|
await writeFile(pluginsPath, mod.generate().code);
|
|
148160
|
+
if (isTypescript) {
|
|
148161
|
+
const tsConfigPath = join$1(cwd, "tsconfig.app.json");
|
|
148162
|
+
if (existsSync(tsConfigPath)) {
|
|
148163
|
+
const tsConfig = await loadFile(tsConfigPath);
|
|
148164
|
+
tsConfig.exports.vueCompilerOptions = tsConfig.exports.vueCompilerOptions || {};
|
|
148165
|
+
tsConfig.exports.vueCompilerOptions.plugins = tsConfig.exports.vueCompilerOptions.plugins || [];
|
|
148166
|
+
tsConfig.exports.vueCompilerOptions.plugins.push("vue-router/volar/sfc-typed-router", "vue-router/volar/sfc-route-blocks");
|
|
148167
|
+
await writeFile(tsConfigPath, tsConfig.generate().code);
|
|
148168
|
+
}
|
|
148169
|
+
}
|
|
148161
148170
|
}
|
|
148162
148171
|
};
|
|
148163
148172
|
const fileRouter = {
|
|
@@ -148167,8 +148176,6 @@ const fileRouter = {
|
|
|
148167
148176
|
const ext = isTypescript ? "ts" : "js";
|
|
148168
148177
|
pkg.dependencies = pkg.dependencies || {};
|
|
148169
148178
|
pkg.dependencies["vue-router"] = dependencies["vue-router"];
|
|
148170
|
-
pkg.devDependencies = pkg.devDependencies || {};
|
|
148171
|
-
pkg.devDependencies["unplugin-vue-router"] = dependencies["unplugin-vue-router"];
|
|
148172
148179
|
const routerContent = getFileRouterContent(isTypescript);
|
|
148173
148180
|
if (!existsSync(join$1(cwd, "src/router"))) mkdirSync(join$1(cwd, "src/router"), { recursive: true });
|
|
148174
148181
|
await writeFile(join$1(cwd, `src/router/index.${ext}`), routerContent);
|
|
@@ -148186,14 +148193,24 @@ const fileRouter = {
|
|
|
148186
148193
|
if (existsSync(viteConfigPath)) {
|
|
148187
148194
|
const viteMod = await loadFile(viteConfigPath);
|
|
148188
148195
|
viteMod.imports.$prepend({
|
|
148189
|
-
from: "
|
|
148196
|
+
from: "vue-router/vite",
|
|
148190
148197
|
imported: "default",
|
|
148191
148198
|
local: "VueRouter"
|
|
148192
148199
|
});
|
|
148193
148200
|
const plugins = viteMod.exports.default.plugins || viteMod.exports.default.$args?.[0]?.plugins;
|
|
148194
|
-
if (plugins && Array.isArray(plugins)) plugins.unshift(builders.raw("VueRouter()"));
|
|
148201
|
+
if (plugins && Array.isArray(plugins)) plugins.unshift(builders.raw("VueRouter({ dts: 'src/typed-router.d.ts' })"));
|
|
148195
148202
|
await writeFile(viteConfigPath, viteMod.generate().code);
|
|
148196
148203
|
}
|
|
148204
|
+
if (isTypescript) {
|
|
148205
|
+
const tsConfigPath = join$1(cwd, "tsconfig.app.json");
|
|
148206
|
+
if (existsSync(tsConfigPath)) {
|
|
148207
|
+
const tsConfig = await loadFile(tsConfigPath);
|
|
148208
|
+
tsConfig.exports.vueCompilerOptions = tsConfig.exports.vueCompilerOptions || {};
|
|
148209
|
+
tsConfig.exports.vueCompilerOptions.plugins = tsConfig.exports.vueCompilerOptions.plugins || [];
|
|
148210
|
+
tsConfig.exports.vueCompilerOptions.plugins.push("vue-router/volar/sfc-typed-router", "vue-router/volar/sfc-route-blocks");
|
|
148211
|
+
await writeFile(tsConfigPath, tsConfig.generate().code);
|
|
148212
|
+
}
|
|
148213
|
+
}
|
|
148197
148214
|
}
|
|
148198
148215
|
};
|
|
148199
148216
|
function getRouterContent(ts) {
|
|
@@ -149311,7 +149328,7 @@ async function deno(root) {
|
|
|
149311
149328
|
//#region ../shared/src/utils/cli/preinstall/yarn.ts
|
|
149312
149329
|
const templateToAppend = `
|
|
149313
149330
|
packageExtensions:
|
|
149314
|
-
|
|
149331
|
+
vue-router@*:
|
|
149315
149332
|
dependencies:
|
|
149316
149333
|
"@vue/compiler-sfc": "*"
|
|
149317
149334
|
`;
|
|
@@ -151009,7 +151026,7 @@ const JsonReporter = { report: async (data, options) => {
|
|
|
151009
151026
|
|
|
151010
151027
|
//#endregion
|
|
151011
151028
|
//#region package.json
|
|
151012
|
-
var version = "1.1.
|
|
151029
|
+
var version = "1.1.5-beta.1";
|
|
151013
151030
|
|
|
151014
151031
|
//#endregion
|
|
151015
151032
|
//#region src/commands/analyze.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuetify/cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5-beta.1",
|
|
4
4
|
"description": "Vuetify CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"open": "^11.0.0",
|
|
36
36
|
"pathe": "^2.0.3",
|
|
37
37
|
"tsdown": "^0.20.3",
|
|
38
|
-
"@vuetify/cli-shared": "1.1.
|
|
38
|
+
"@vuetify/cli-shared": "1.1.5-beta.1"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@typescript-eslint/parser": "^8.54.0"
|