create-vuetify 3.1.4 → 3.1.5-beta.2
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
|
@@ -9968,7 +9968,7 @@ var en_default = {
|
|
|
9968
9968
|
},
|
|
9969
9969
|
"file": {
|
|
9970
9970
|
"label": "Vue Router (File-based)",
|
|
9971
|
-
"hint": "File-based routing with
|
|
9971
|
+
"hint": "File-based routing with vue-router"
|
|
9972
9972
|
}
|
|
9973
9973
|
},
|
|
9974
9974
|
"features": {
|
|
@@ -10223,7 +10223,7 @@ var ru_default = {
|
|
|
10223
10223
|
},
|
|
10224
10224
|
"file": {
|
|
10225
10225
|
"label": "Vue Router (File-based)",
|
|
10226
|
-
"hint": "Файловый роутинг с
|
|
10226
|
+
"hint": "Файловый роутинг с vue-router"
|
|
10227
10227
|
}
|
|
10228
10228
|
},
|
|
10229
10229
|
"features": {
|
|
@@ -27746,9 +27746,8 @@ var dependencies = {
|
|
|
27746
27746
|
"@nuxt/eslint": "^1.12.1",
|
|
27747
27747
|
"@pinia/nuxt": "^0.11.3",
|
|
27748
27748
|
"@nuxtjs/i18n": "^10.2.1",
|
|
27749
|
-
"vue-router": "^
|
|
27749
|
+
"vue-router": "^5.0.3",
|
|
27750
27750
|
"vue-i18n": "^11.2.7",
|
|
27751
|
-
"unplugin-vue-router": "^0.19.1",
|
|
27752
27751
|
"vite-plugin-vuetify": "^2.1.3",
|
|
27753
27752
|
"unocss": "^66.5.12",
|
|
27754
27753
|
"@unocss/transformer-directives": "^66.6.0",
|
|
@@ -28049,7 +28048,7 @@ export const useAppStore = defineStore('app', {
|
|
|
28049
28048
|
|
|
28050
28049
|
//#endregion
|
|
28051
28050
|
//#region ../shared/package.json
|
|
28052
|
-
var version$1 = "1.1.
|
|
28051
|
+
var version$1 = "1.1.5-beta.2";
|
|
28053
28052
|
|
|
28054
28053
|
//#endregion
|
|
28055
28054
|
//#region ../shared/src/utils/getTemplateSource.ts
|
|
@@ -28103,6 +28102,16 @@ const router = {
|
|
|
28103
28102
|
const registerPlugins = mod.exports.registerPlugins;
|
|
28104
28103
|
if (isFunction(registerPlugins)) addStatementToFunctionBody(registerPlugins, "app.use(router)");
|
|
28105
28104
|
await writeFile(pluginsPath, mod.generate().code);
|
|
28105
|
+
if (isTypescript) {
|
|
28106
|
+
const tsConfigPath = join$1(cwd, "tsconfig.app.json");
|
|
28107
|
+
if (existsSync(tsConfigPath)) {
|
|
28108
|
+
const tsConfig = await loadFile(tsConfigPath);
|
|
28109
|
+
tsConfig.exports.vueCompilerOptions = tsConfig.exports.vueCompilerOptions || {};
|
|
28110
|
+
tsConfig.exports.vueCompilerOptions.plugins = tsConfig.exports.vueCompilerOptions.plugins || [];
|
|
28111
|
+
tsConfig.exports.vueCompilerOptions.plugins.push("vue-router/volar/sfc-typed-router", "vue-router/volar/sfc-route-blocks");
|
|
28112
|
+
await writeFile(tsConfigPath, tsConfig.generate().code);
|
|
28113
|
+
}
|
|
28114
|
+
}
|
|
28106
28115
|
}
|
|
28107
28116
|
};
|
|
28108
28117
|
const fileRouter = {
|
|
@@ -28112,8 +28121,6 @@ const fileRouter = {
|
|
|
28112
28121
|
const ext = isTypescript ? "ts" : "js";
|
|
28113
28122
|
pkg.dependencies = pkg.dependencies || {};
|
|
28114
28123
|
pkg.dependencies["vue-router"] = dependencies["vue-router"];
|
|
28115
|
-
pkg.devDependencies = pkg.devDependencies || {};
|
|
28116
|
-
pkg.devDependencies["unplugin-vue-router"] = dependencies["unplugin-vue-router"];
|
|
28117
28124
|
const routerContent = getFileRouterContent(isTypescript);
|
|
28118
28125
|
if (!existsSync(join$1(cwd, "src/router"))) mkdirSync(join$1(cwd, "src/router"), { recursive: true });
|
|
28119
28126
|
await writeFile(join$1(cwd, `src/router/index.${ext}`), routerContent);
|
|
@@ -28131,14 +28138,24 @@ const fileRouter = {
|
|
|
28131
28138
|
if (existsSync(viteConfigPath)) {
|
|
28132
28139
|
const viteMod = await loadFile(viteConfigPath);
|
|
28133
28140
|
viteMod.imports.$prepend({
|
|
28134
|
-
from: "
|
|
28141
|
+
from: "vue-router/vite",
|
|
28135
28142
|
imported: "default",
|
|
28136
28143
|
local: "VueRouter"
|
|
28137
28144
|
});
|
|
28138
28145
|
const plugins = viteMod.exports.default.plugins || viteMod.exports.default.$args?.[0]?.plugins;
|
|
28139
|
-
if (plugins && Array.isArray(plugins)) plugins.unshift(builders.raw("VueRouter()"));
|
|
28146
|
+
if (plugins && Array.isArray(plugins)) plugins.unshift(builders.raw("VueRouter({ dts: 'src/typed-router.d.ts' })"));
|
|
28140
28147
|
await writeFile(viteConfigPath, viteMod.generate().code);
|
|
28141
28148
|
}
|
|
28149
|
+
if (isTypescript) {
|
|
28150
|
+
const tsConfigPath = join$1(cwd, "tsconfig.app.json");
|
|
28151
|
+
if (existsSync(tsConfigPath)) {
|
|
28152
|
+
const tsConfig = await loadFile(tsConfigPath);
|
|
28153
|
+
tsConfig.exports.vueCompilerOptions = tsConfig.exports.vueCompilerOptions || {};
|
|
28154
|
+
tsConfig.exports.vueCompilerOptions.plugins = tsConfig.exports.vueCompilerOptions.plugins || [];
|
|
28155
|
+
tsConfig.exports.vueCompilerOptions.plugins.push("vue-router/volar/sfc-typed-router", "vue-router/volar/sfc-route-blocks");
|
|
28156
|
+
await writeFile(tsConfigPath, tsConfig.generate().code);
|
|
28157
|
+
}
|
|
28158
|
+
}
|
|
28142
28159
|
}
|
|
28143
28160
|
};
|
|
28144
28161
|
function getRouterContent(ts) {
|
|
@@ -28637,7 +28654,7 @@ async function deno(root) {
|
|
|
28637
28654
|
//#region ../shared/src/utils/cli/preinstall/yarn.ts
|
|
28638
28655
|
const templateToAppend = `
|
|
28639
28656
|
packageExtensions:
|
|
28640
|
-
|
|
28657
|
+
vue-router@*:
|
|
28641
28658
|
dependencies:
|
|
28642
28659
|
"@vue/compiler-sfc": "*"
|
|
28643
28660
|
`;
|
|
@@ -31009,7 +31026,7 @@ const blue$1 = ansi256(33);
|
|
|
31009
31026
|
|
|
31010
31027
|
//#endregion
|
|
31011
31028
|
//#region package.json
|
|
31012
|
-
var version = "3.1.
|
|
31029
|
+
var version = "3.1.5-beta.2";
|
|
31013
31030
|
|
|
31014
31031
|
//#endregion
|
|
31015
31032
|
//#region src/commands/presets.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-vuetify",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.5-beta.2",
|
|
4
4
|
"description": "Create a new Vuetify project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"pathe": "^2.0.3",
|
|
39
39
|
"tsdown": "^0.20.3",
|
|
40
40
|
"vitest": "^4.0.18",
|
|
41
|
-
"@vuetify/cli-shared": "1.1.
|
|
41
|
+
"@vuetify/cli-shared": "1.1.5-beta.2"
|
|
42
42
|
},
|
|
43
43
|
"exports": {
|
|
44
44
|
".": "./dist/index.mjs",
|