vuetify-nuxt-module 0.10.3 → 0.12.0
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/module.json +1 -1
- package/dist/module.mjs +14 -7
- package/package.json +18 -15
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import { parseQuery, parseURL } from 'ufo';
|
|
|
14
14
|
import destr from 'destr';
|
|
15
15
|
import { transformAssetUrls } from 'vite-plugin-vuetify';
|
|
16
16
|
|
|
17
|
-
const version = "0.
|
|
17
|
+
const version = "0.12.0";
|
|
18
18
|
|
|
19
19
|
const VIRTUAL_VUETIFY_CONFIGURATION = "virtual:vuetify-configuration";
|
|
20
20
|
const RESOLVED_VIRTUAL_VUETIFY_CONFIGURATION = `/@nuxt-vuetify-configuration/${VIRTUAL_VUETIFY_CONFIGURATION.slice("virtual:".length)}`;
|
|
@@ -103,8 +103,12 @@ async function mergeVuetifyModules(options, nuxt) {
|
|
|
103
103
|
nuxt.options.rootDir,
|
|
104
104
|
options.vuetifyOptions
|
|
105
105
|
);
|
|
106
|
-
if (resolvedOptions.sources.length)
|
|
107
|
-
|
|
106
|
+
if (nuxt.options.dev && resolvedOptions.sources.length) {
|
|
107
|
+
if (nuxt.options.ssr)
|
|
108
|
+
resolvedOptions.sources.forEach((s) => nuxt.options.watch.push(s.replace(/\\/g, "/")));
|
|
109
|
+
else
|
|
110
|
+
resolvedOptions.sources.forEach((s) => vuetifyConfigurationFilesToWatch.add(s.replace(/\\/g, "/")));
|
|
111
|
+
}
|
|
108
112
|
moduleOptions.push({
|
|
109
113
|
moduleOptions: options.moduleOptions,
|
|
110
114
|
vuetifyOptions: resolvedOptions.config
|
|
@@ -1225,10 +1229,13 @@ function configureNuxt(configKey, nuxt, ctx) {
|
|
|
1225
1229
|
includeTransformAssetsUrls = true
|
|
1226
1230
|
} = ctx.moduleOptions;
|
|
1227
1231
|
const runtimeDir = ctx.resolver.resolve("./runtime");
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
}
|
|
1232
|
+
nuxt.options.build.transpile.push(configKey);
|
|
1233
|
+
nuxt.options.build.transpile.push(runtimeDir);
|
|
1234
|
+
nuxt.options.build.transpile.push(/\/vuetify-nuxt-plugin\.(client|server)\.mjs$/);
|
|
1235
|
+
nuxt.options.imports.transform ??= {};
|
|
1236
|
+
nuxt.options.imports.transform.include ??= [];
|
|
1237
|
+
for (const virtual of RESOLVED_VIRTUAL_MODULES)
|
|
1238
|
+
nuxt.options.imports.transform.include.push(new RegExp(`${virtual}$`));
|
|
1232
1239
|
nuxt.options.css ??= [];
|
|
1233
1240
|
if (typeof styles === "string" && ["sass", "expose"].includes(styles))
|
|
1234
1241
|
nuxt.options.css.unshift("vuetify/styles/main.sass");
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vuetify-nuxt-module",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@8.
|
|
4
|
+
"version": "0.12.0",
|
|
5
|
+
"packageManager": "pnpm@8.15.4",
|
|
6
6
|
"description": "Zero-Config Nuxt Module for Vuetify",
|
|
7
7
|
"author": "userquin <userquin@gmail.com>",
|
|
8
8
|
"license": "MIT",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"ufo": "^1.3.2",
|
|
75
75
|
"unconfig": "^0.3.11",
|
|
76
76
|
"vite-plugin-vuetify": "^2.0.1",
|
|
77
|
-
"vuetify": "^3.
|
|
77
|
+
"vuetify": "^3.5.1"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@antfu/eslint-config": "^0.43.1",
|
|
@@ -88,24 +88,34 @@
|
|
|
88
88
|
"@mdi/js": "^7.3.67",
|
|
89
89
|
"@nuxt/devtools": "^1.0.8",
|
|
90
90
|
"@nuxt/module-builder": "^0.5.5",
|
|
91
|
-
"@nuxt/schema": "^3.
|
|
92
|
-
"@nuxt/test-utils": "^3.
|
|
91
|
+
"@nuxt/schema": "^3.10.2",
|
|
92
|
+
"@nuxt/test-utils": "^3.11.0",
|
|
93
93
|
"@nuxtjs/i18n": "^8.0.0",
|
|
94
94
|
"@parcel/watcher": "^2.3.0",
|
|
95
95
|
"@types/node": "^18",
|
|
96
|
-
"@unocss/nuxt": "^0.58.
|
|
96
|
+
"@unocss/nuxt": "^0.58.4",
|
|
97
97
|
"bumpp": "^9.2.0",
|
|
98
98
|
"eslint": "^8.54.0",
|
|
99
99
|
"luxon": "^3.4.3",
|
|
100
|
-
"nuxt": "^3.
|
|
100
|
+
"nuxt": "^3.10.2",
|
|
101
101
|
"publint": "^0.2.5",
|
|
102
102
|
"rimraf": "^5.0.5",
|
|
103
103
|
"sass": "^1.63.6",
|
|
104
104
|
"typescript": "^5.3.3",
|
|
105
|
-
"vite": "^5.0.
|
|
105
|
+
"vite": "^5.0.12",
|
|
106
106
|
"vitest": "^1.1.3",
|
|
107
107
|
"vue-tsc": "^1.8.27"
|
|
108
108
|
},
|
|
109
|
+
"pnpm": {
|
|
110
|
+
"peerDependencyRules": {
|
|
111
|
+
"ignoreMissing": [
|
|
112
|
+
"@algolia/client-search"
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"resolutions": {
|
|
117
|
+
"@nuxt/kit": "^3.10.2"
|
|
118
|
+
},
|
|
109
119
|
"build": {
|
|
110
120
|
"externals": [
|
|
111
121
|
"@vuetify/loader-shared",
|
|
@@ -126,13 +136,6 @@
|
|
|
126
136
|
"vuetify"
|
|
127
137
|
]
|
|
128
138
|
},
|
|
129
|
-
"pnpm": {
|
|
130
|
-
"peerDependencyRules": {
|
|
131
|
-
"ignoreMissing": [
|
|
132
|
-
"@algolia/client-search"
|
|
133
|
-
]
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
139
|
"stackblitz": {
|
|
137
140
|
"installDependencies": false,
|
|
138
141
|
"startCommand": "node .stackblitz.js && pnpm install && nr prepack && nr dev:prepare && nr dev"
|