@dargmuesli/nuxt-vio 21.0.0-beta.1 → 21.0.0-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/nuxt.config.ts +41 -8
- package/package.json +26 -27
- package/server/utils/constants.ts +1 -3
- package/server/utils/site.ts +1 -1
- package/shared/utils/constants.ts +1 -2
- package/shared/utils/nuxt.ts +4 -5
- package/node.ts +0 -2
package/nuxt.config.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { fileURLToPath } from 'node:url'
|
|
2
|
-
import { dirname, join } from 'node:path'
|
|
3
|
-
|
|
4
1
|
import tailwindcss from '@tailwindcss/vite'
|
|
2
|
+
import { createResolver } from 'nuxt/kit'
|
|
5
3
|
import { defu } from 'defu'
|
|
6
4
|
|
|
7
5
|
import {
|
|
@@ -13,7 +11,7 @@ import {
|
|
|
13
11
|
} from './shared/utils/constants'
|
|
14
12
|
import { VIO_NUXT_BASE_CONFIG } from './shared/utils/nuxt'
|
|
15
13
|
|
|
16
|
-
const
|
|
14
|
+
const { resolve } = createResolver(import.meta.url)
|
|
17
15
|
|
|
18
16
|
export default defineNuxtConfig(
|
|
19
17
|
defu(
|
|
@@ -29,7 +27,7 @@ export default defineNuxtConfig(
|
|
|
29
27
|
},
|
|
30
28
|
},
|
|
31
29
|
compatibilityDate: '2024-04-03',
|
|
32
|
-
...(process.env.
|
|
30
|
+
...(process.env.NUXT_PUBLIC_I18N_BASE_URL
|
|
33
31
|
? {}
|
|
34
32
|
: {
|
|
35
33
|
devServer: {
|
|
@@ -95,6 +93,9 @@ export default defineNuxtConfig(
|
|
|
95
93
|
],
|
|
96
94
|
nitro: {
|
|
97
95
|
compressPublicAssets: true,
|
|
96
|
+
experimental: {
|
|
97
|
+
asyncContext: true,
|
|
98
|
+
},
|
|
98
99
|
},
|
|
99
100
|
runtimeConfig: {
|
|
100
101
|
public: {
|
|
@@ -111,6 +112,13 @@ export default defineNuxtConfig(
|
|
|
111
112
|
},
|
|
112
113
|
typescript: {
|
|
113
114
|
tsConfig: {
|
|
115
|
+
nodeTsConfig: {
|
|
116
|
+
include: [
|
|
117
|
+
resolve('../.config'),
|
|
118
|
+
resolve('../node'),
|
|
119
|
+
// resolve('../sentry.server.config.ts'),
|
|
120
|
+
],
|
|
121
|
+
},
|
|
114
122
|
vueCompilerOptions: {
|
|
115
123
|
htmlAttributes: [], // https://github.com/johnsoncodehk/volar/issues/1970#issuecomment-1276994634
|
|
116
124
|
},
|
|
@@ -120,7 +128,32 @@ export default defineNuxtConfig(
|
|
|
120
128
|
},
|
|
121
129
|
},
|
|
122
130
|
vite: {
|
|
123
|
-
plugins: [
|
|
131
|
+
plugins: [
|
|
132
|
+
tailwindcss(),
|
|
133
|
+
{
|
|
134
|
+
// This plugin suppresses false-positive sourcemap warnings from Tailwind's Vite plugin
|
|
135
|
+
// TODO: remove once tailwind generates sourcemaps for their transforms (https://github.com/tailwindlabs/tailwindcss/discussions/16119)
|
|
136
|
+
apply: 'build',
|
|
137
|
+
name: 'vite-plugin-ignore-sourcemap-warnings',
|
|
138
|
+
configResolved(config) {
|
|
139
|
+
const originalOnWarn = config.build.rollupOptions.onwarn
|
|
140
|
+
config.build.rollupOptions.onwarn = (warning, warn) => {
|
|
141
|
+
if (
|
|
142
|
+
warning.code === 'SOURCEMAP_BROKEN' &&
|
|
143
|
+
warning.plugin === '@tailwindcss/vite:generate:build'
|
|
144
|
+
) {
|
|
145
|
+
return
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
if (originalOnWarn) {
|
|
149
|
+
originalOnWarn(warning, warn)
|
|
150
|
+
} else {
|
|
151
|
+
warn(warning)
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
],
|
|
124
157
|
},
|
|
125
158
|
|
|
126
159
|
// modules
|
|
@@ -245,13 +278,14 @@ export default defineNuxtConfig(
|
|
|
245
278
|
},
|
|
246
279
|
shadcn: {
|
|
247
280
|
prefix: '',
|
|
248
|
-
componentDir:
|
|
281
|
+
componentDir: resolve('./app/components/scn'),
|
|
249
282
|
},
|
|
250
283
|
site: {
|
|
251
284
|
url: SITE_URL,
|
|
252
285
|
},
|
|
253
286
|
sitemap: {
|
|
254
287
|
credits: false,
|
|
288
|
+
zeroRuntime: true,
|
|
255
289
|
},
|
|
256
290
|
|
|
257
291
|
// environments
|
|
@@ -261,7 +295,6 @@ export default defineNuxtConfig(
|
|
|
261
295
|
},
|
|
262
296
|
nitro: {
|
|
263
297
|
experimental: {
|
|
264
|
-
asyncContext: true,
|
|
265
298
|
openAPI: true,
|
|
266
299
|
},
|
|
267
300
|
},
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@dargmuesli/nuxt-cookie-control": "9.1.
|
|
3
|
+
"@dargmuesli/nuxt-cookie-control": "9.1.11",
|
|
4
4
|
"@eslint/compat": "2.0.0",
|
|
5
5
|
"@heroicons/vue": "2.2.0",
|
|
6
6
|
"@http-util/status-i18n": "0.9.0",
|
|
7
7
|
"@intlify/eslint-plugin-vue-i18n": "4.1.0",
|
|
8
8
|
"@nuxt/devtools": "3.1.1",
|
|
9
|
-
"@nuxt/eslint": "1.
|
|
9
|
+
"@nuxt/eslint": "1.12.1",
|
|
10
10
|
"@nuxt/image": "2.0.0",
|
|
11
11
|
"@nuxtjs/color-mode": "4.0.0",
|
|
12
12
|
"@nuxtjs/html-validator": "2.1.0",
|
|
13
13
|
"@nuxtjs/i18n": "10.2.1",
|
|
14
|
-
"@nuxtjs/seo": "3.
|
|
14
|
+
"@nuxtjs/seo": "3.3.0",
|
|
15
15
|
"@pinia/nuxt": "0.11.3",
|
|
16
|
-
"@tailwindcss/forms": "0.5.
|
|
16
|
+
"@tailwindcss/forms": "0.5.11",
|
|
17
17
|
"@tailwindcss/typography": "0.5.19",
|
|
18
|
-
"@tailwindcss/vite": "4.1.
|
|
18
|
+
"@tailwindcss/vite": "4.1.18",
|
|
19
19
|
"@types/lodash-es": "4.17.12",
|
|
20
20
|
"@urql/core": "6.0.1",
|
|
21
21
|
"@urql/vue": "2.0.0",
|
|
@@ -24,46 +24,46 @@
|
|
|
24
24
|
"@vueuse/core": "14.1.0",
|
|
25
25
|
"class-variance-authority": "0.7.1",
|
|
26
26
|
"clsx": "2.1.1",
|
|
27
|
-
"eslint": "9.39.
|
|
27
|
+
"eslint": "9.39.2",
|
|
28
28
|
"eslint-config-prettier": "10.1.8",
|
|
29
29
|
"eslint-plugin-compat": "6.0.2",
|
|
30
30
|
"eslint-plugin-prettier": "5.5.4",
|
|
31
|
-
"eslint-plugin-yml": "1.19.
|
|
32
|
-
"globals": "
|
|
31
|
+
"eslint-plugin-yml": "1.19.1",
|
|
32
|
+
"globals": "17.0.0",
|
|
33
33
|
"jiti": "2.6.1",
|
|
34
|
-
"jose": "6.1.
|
|
35
|
-
"lucide-vue-next": "0.
|
|
34
|
+
"jose": "6.1.3",
|
|
35
|
+
"lucide-vue-next": "0.562.0",
|
|
36
36
|
"nuxt-gtag": "4.1.0",
|
|
37
37
|
"nuxt-security": "2.5.0",
|
|
38
|
-
"reka-ui": "2.
|
|
39
|
-
"shadcn-nuxt": "2.
|
|
38
|
+
"reka-ui": "2.7.0",
|
|
39
|
+
"shadcn-nuxt": "2.4.3",
|
|
40
40
|
"tailwind-merge": "3.4.0",
|
|
41
41
|
"tw-animate-css": "1.4.0",
|
|
42
42
|
"vue-sonner": "2.0.9",
|
|
43
|
-
"vue-tsc": "3.
|
|
43
|
+
"vue-tsc": "3.2.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@types/node": "24.10.
|
|
46
|
+
"@types/node": "24.10.4",
|
|
47
47
|
"@urql/devtools": "2.0.3",
|
|
48
48
|
"@urql/exchange-graphcache": "8.1.0",
|
|
49
49
|
"@vueuse/core": "14.1.0",
|
|
50
50
|
"consola": "3.4.2",
|
|
51
51
|
"defu": "6.1.4",
|
|
52
52
|
"h3": "1.15.4",
|
|
53
|
-
"lodash-es": "4.17.
|
|
54
|
-
"nuxt": "4.2.
|
|
53
|
+
"lodash-es": "4.17.22",
|
|
54
|
+
"nuxt": "4.2.2",
|
|
55
55
|
"pinia": "3.0.4",
|
|
56
|
-
"prettier": "3.7.
|
|
57
|
-
"prettier-plugin-tailwindcss": "0.7.
|
|
56
|
+
"prettier": "3.7.4",
|
|
57
|
+
"prettier-plugin-tailwindcss": "0.7.2",
|
|
58
58
|
"serve": "14.2.5",
|
|
59
59
|
"sharp": "0.34.5",
|
|
60
|
-
"stylelint": "16.26.
|
|
60
|
+
"stylelint": "16.26.1",
|
|
61
61
|
"stylelint-config-recommended-vue": "1.6.1",
|
|
62
62
|
"stylelint-config-standard": "39.0.1",
|
|
63
63
|
"stylelint-no-unsupported-browser-features": "8.0.5",
|
|
64
|
-
"tailwindcss": "4.1.
|
|
65
|
-
"vue": "3.5.
|
|
66
|
-
"vue-router": "4.6.
|
|
64
|
+
"tailwindcss": "4.1.18",
|
|
65
|
+
"vue": "3.5.26",
|
|
66
|
+
"vue-router": "4.6.4"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": "24"
|
|
@@ -94,9 +94,8 @@
|
|
|
94
94
|
},
|
|
95
95
|
"scripts": {
|
|
96
96
|
"build": "pnpm run build:node",
|
|
97
|
-
"build:node": "nuxt build playground",
|
|
98
|
-
"build:static": "nuxt generate playground",
|
|
99
|
-
"build:static:test": "SITE_URL=https://localhost:3002 pnpm run build:static",
|
|
97
|
+
"build:node": "NUXT_PUBLIC_I18N_BASE_URL=https://localhost:3001 nuxt build playground",
|
|
98
|
+
"build:static": "NUXT_PUBLIC_I18N_BASE_URL=https://localhost:3002 nuxt generate playground",
|
|
100
99
|
"dev": "pnpm run start:dev",
|
|
101
100
|
"generate": "pnpm run build:static",
|
|
102
101
|
"lint": "pnpm run lint:js && pnpm run lint:ts && pnpm run lint:style",
|
|
@@ -109,9 +108,9 @@
|
|
|
109
108
|
"preview": "nuxt preview playground",
|
|
110
109
|
"start": "pnpm run start:node",
|
|
111
110
|
"start:dev": "nuxt dev playground",
|
|
112
|
-
"start:node": "node
|
|
111
|
+
"start:node": "node scripts/server.mjs",
|
|
113
112
|
"start:static": "serve playground/.output/public --ssl-cert ./.config/certificates/ssl.crt --ssl-key ./.config/certificates/ssl.key"
|
|
114
113
|
},
|
|
115
114
|
"type": "module",
|
|
116
|
-
"version": "21.0.0-beta.
|
|
115
|
+
"version": "21.0.0-beta.2"
|
|
117
116
|
}
|
package/server/utils/site.ts
CHANGED
|
@@ -5,8 +5,7 @@ import { defu } from 'defu'
|
|
|
5
5
|
export const VIO_SITE_NAME = 'Vio'
|
|
6
6
|
|
|
7
7
|
export const SITE_URL =
|
|
8
|
-
process.env.
|
|
9
|
-
process.env.NUXT_PUBLIC_SITE_URL ||
|
|
8
|
+
process.env.NUXT_PUBLIC_I18N_BASE_URL ||
|
|
10
9
|
`https://${process.env.HOST || 'localhost'}:${process.env.PORT || '3000'}`
|
|
11
10
|
export const CACHE_VERSION = 'zeMtipb6C9'
|
|
12
11
|
export const COOKIE_CONTROL_CONSENT_COOKIE_NAME =
|
package/shared/utils/nuxt.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { defineNuxtConfig } from 'nuxt/config'
|
|
2
2
|
|
|
3
|
+
import { IS_IN_FRONTEND_DEVELOPMENT } from '../../node'
|
|
3
4
|
import { I18N_MODULE_CONFIG } from './constants'
|
|
4
5
|
|
|
5
6
|
export const VIO_NUXT_BASE_CONFIG = ({
|
|
@@ -20,11 +21,9 @@ export const VIO_NUXT_BASE_CONFIG = ({
|
|
|
20
21
|
vio: {
|
|
21
22
|
...(stagingHost
|
|
22
23
|
? {
|
|
23
|
-
stagingHost:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
? stagingHost
|
|
27
|
-
: undefined,
|
|
24
|
+
stagingHost: IS_IN_FRONTEND_DEVELOPMENT
|
|
25
|
+
? stagingHost
|
|
26
|
+
: undefined,
|
|
28
27
|
}
|
|
29
28
|
: {}),
|
|
30
29
|
},
|
package/node.ts
DELETED