@myelophone/nuxt 0.21.0 → 0.22.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/CHANGELOG.md +8 -0
- package/nuxt.config.ts +52 -6
- package/package.json +21 -21
package/CHANGELOG.md
CHANGED
package/nuxt.config.ts
CHANGED
|
@@ -20,7 +20,12 @@ import postcssAddViewportUnits from './vite/plugins/postcss-add-viewportunits.ts
|
|
|
20
20
|
|
|
21
21
|
import tailwindcss from '@tailwindcss/vite';
|
|
22
22
|
|
|
23
|
-
import {
|
|
23
|
+
import {
|
|
24
|
+
createResolver,
|
|
25
|
+
useNuxt,
|
|
26
|
+
extendViteConfig,
|
|
27
|
+
getNuxtVersion,
|
|
28
|
+
} from '@nuxt/kit';
|
|
24
29
|
|
|
25
30
|
const pkg = JSON.parse(
|
|
26
31
|
readFileSync(new URL('./package.json', import.meta.url), 'utf8'),
|
|
@@ -28,7 +33,7 @@ const pkg = JSON.parse(
|
|
|
28
33
|
|
|
29
34
|
const version = pkg.version;
|
|
30
35
|
|
|
31
|
-
const dateActuality = '2026-10-
|
|
36
|
+
const dateActuality = '2026-10-17';
|
|
32
37
|
const banner = `/* © 2025 Aliaksandr Ivanou (https://aleksivanov.me/). All rights reserved. @MyelophOne/Nuxt v${version}. This app bundle licenses: /_nuxt/licenses.md */\n`;
|
|
33
38
|
const defaultSeo = {
|
|
34
39
|
title: 'Our Nuxt WebSite | by MyelophOne/Nuxt',
|
|
@@ -39,6 +44,26 @@ const defaultSeo = {
|
|
|
39
44
|
const isSSG = process.env.NUXT_STATIC === 'true';
|
|
40
45
|
const isPlayground = process.env.NUXT_PLAYGROUND === 'true';
|
|
41
46
|
|
|
47
|
+
const getSiteUrl = (dev: boolean): string | undefined => {
|
|
48
|
+
if (dev) {
|
|
49
|
+
const host = process.env.NUXT_HOST || 'localhost';
|
|
50
|
+
const port = process.env.NUXT_PORT || '3000';
|
|
51
|
+
|
|
52
|
+
return `http://${host}:${port}`;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const url =
|
|
56
|
+
process.env.NUXT_SITE_URL ||
|
|
57
|
+
process.env.VERCEL_PROJECT_PRODUCTION_URL ||
|
|
58
|
+
process.env.VERCEL_URL ||
|
|
59
|
+
process.env.CF_PAGES_URL ||
|
|
60
|
+
process.env.URL;
|
|
61
|
+
|
|
62
|
+
if (!url) return undefined;
|
|
63
|
+
|
|
64
|
+
return new URL(/^https?:\/\//.test(url) ? url : `https://${url}`).origin;
|
|
65
|
+
};
|
|
66
|
+
|
|
42
67
|
const moreModules: string[] = [];
|
|
43
68
|
const { resolve } = createResolver(import.meta.url);
|
|
44
69
|
const serverScanDirs = [
|
|
@@ -151,9 +176,7 @@ export default defineNuxtConfig({
|
|
|
151
176
|
inline: [
|
|
152
177
|
'h3',
|
|
153
178
|
'@vue/shared',
|
|
154
|
-
// Keep Nuxt and Colada on the same Pinia injection symbols.
|
|
155
179
|
'pinia',
|
|
156
|
-
// The renderer needs Nitro's import.meta and virtual module transforms.
|
|
157
180
|
'nuxt/internal',
|
|
158
181
|
/[\\/]nuxt[\\/]dist[\\/]runtime[\\/]server[\\/]/,
|
|
159
182
|
],
|
|
@@ -170,7 +193,7 @@ export default defineNuxtConfig({
|
|
|
170
193
|
failOnError: false,
|
|
171
194
|
crawlLinks: true,
|
|
172
195
|
ignore: [
|
|
173
|
-
(path: string) =>
|
|
196
|
+
(path: string) => /\.(js|css|map|json)$/.test(path),
|
|
174
197
|
],
|
|
175
198
|
}
|
|
176
199
|
: undefined,
|
|
@@ -191,6 +214,22 @@ export default defineNuxtConfig({
|
|
|
191
214
|
'console.error',
|
|
192
215
|
'console.debug',
|
|
193
216
|
'console.trace',
|
|
217
|
+
'console.table',
|
|
218
|
+
'console.dir',
|
|
219
|
+
'console.dirxml',
|
|
220
|
+
'console.assert',
|
|
221
|
+
'console.count',
|
|
222
|
+
'console.countReset',
|
|
223
|
+
'console.group',
|
|
224
|
+
'console.groupCollapsed',
|
|
225
|
+
'console.groupEnd',
|
|
226
|
+
'console.time',
|
|
227
|
+
'console.timeEnd',
|
|
228
|
+
'console.timeLog',
|
|
229
|
+
'console.timeStamp',
|
|
230
|
+
'console.profile',
|
|
231
|
+
'console.profileEnd',
|
|
232
|
+
'console.clear',
|
|
194
233
|
],
|
|
195
234
|
},
|
|
196
235
|
},
|
|
@@ -519,7 +558,8 @@ export default defineNuxtConfig({
|
|
|
519
558
|
},
|
|
520
559
|
'modules:done'() {
|
|
521
560
|
const nuxt = useNuxt();
|
|
522
|
-
nuxt.options.runtimeConfig.public.nuxtVersion =
|
|
561
|
+
nuxt.options.runtimeConfig.public.nuxtVersion =
|
|
562
|
+
getNuxtVersion(nuxt);
|
|
523
563
|
const bundleTranslations =
|
|
524
564
|
nuxt.options.myelophone?.bundleTranslations ?? true;
|
|
525
565
|
|
|
@@ -598,4 +638,10 @@ export default defineNuxtConfig({
|
|
|
598
638
|
nuxtVersion: '',
|
|
599
639
|
},
|
|
600
640
|
},
|
|
641
|
+
site: {
|
|
642
|
+
url: getSiteUrl(process.env.NODE_ENV !== 'production'),
|
|
643
|
+
},
|
|
644
|
+
linkChecker: {
|
|
645
|
+
runOnBuild: false,
|
|
646
|
+
},
|
|
601
647
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myelophone/nuxt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Aliaksandr Ivanou <aleksivanov.me@gmail.com> (https://github.com/aleksivanou)",
|
|
6
6
|
"maintainers": [
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
"@biomejs/biome": "^2.5.15",
|
|
40
40
|
"@commitlint/cli": "^21.2.3",
|
|
41
41
|
"@commitlint/config-conventional": "^21.2.3",
|
|
42
|
-
"@nuxt/fonts": "^0.
|
|
42
|
+
"@nuxt/fonts": "^1.0.1",
|
|
43
43
|
"@nuxt/image": "^2.1.0",
|
|
44
|
-
"@nuxt/schema": "^4.6.
|
|
44
|
+
"@nuxt/schema": "^4.6.1",
|
|
45
45
|
"@nuxt/scripts": "^1.3.12",
|
|
46
46
|
"@nuxt/types": "^2.18.1",
|
|
47
47
|
"@nuxtjs/fontaine": "^0.5.0",
|
|
48
|
-
"@nuxtjs/robots": "^
|
|
49
|
-
"@pinia/colada": "^1.4.
|
|
48
|
+
"@nuxtjs/robots": "^7.0.2",
|
|
49
|
+
"@pinia/colada": "^1.4.8",
|
|
50
50
|
"@pinia/colada-nuxt": "^1.2.0",
|
|
51
|
-
"@pinia/nuxt": "^1.0.
|
|
52
|
-
"@playwright/test": "^1.
|
|
51
|
+
"@pinia/nuxt": "^1.0.3",
|
|
52
|
+
"@playwright/test": "^1.64.1",
|
|
53
53
|
"@semantic-release/changelog": "^7.0.0",
|
|
54
54
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
55
55
|
"@semantic-release/git": "^11.0.1",
|
|
@@ -57,36 +57,36 @@
|
|
|
57
57
|
"@semantic-release/npm": "^13.2.0",
|
|
58
58
|
"@semantic-release/release-notes-generator": "^14.1.1",
|
|
59
59
|
"@tailwindcss/vite": "^4.3.3",
|
|
60
|
-
"@types/node": "^26.6.
|
|
61
|
-
"@unhead/vue": "^3.4.
|
|
60
|
+
"@types/node": "^26.6.5",
|
|
61
|
+
"@unhead/vue": "^3.4.3",
|
|
62
62
|
"@vue/devtools-api": "^8.2.1",
|
|
63
63
|
"@vueuse/core": "^15.0.0",
|
|
64
64
|
"commitlint": "^21.2.3",
|
|
65
65
|
"conventional-changelog-conventionalcommits": "^10.4.1",
|
|
66
|
-
"markdown-it": "^15.0.
|
|
67
|
-
"nuxt": "^4.6.
|
|
66
|
+
"markdown-it": "^15.0.3",
|
|
67
|
+
"nuxt": "^4.6.1",
|
|
68
68
|
"nuxt-api-party": "^4.0.1",
|
|
69
|
-
"nuxt-link-checker": "^
|
|
70
|
-
"nuxt-og-image": "^
|
|
69
|
+
"nuxt-link-checker": "^6.0.1",
|
|
70
|
+
"nuxt-og-image": "^7.0.7",
|
|
71
71
|
"nuxt-payload-analyzer": "^0.1.4",
|
|
72
72
|
"nuxt-security": "^2.6.0",
|
|
73
|
-
"nuxt-seo-utils": "^
|
|
73
|
+
"nuxt-seo-utils": "^9.0.1",
|
|
74
74
|
"nuxt-vitalizer": "^3.0.0",
|
|
75
|
-
"pinia": "^4.0
|
|
76
|
-
"postcss": "^8.5.
|
|
75
|
+
"pinia": "^4.1.0",
|
|
76
|
+
"postcss": "^8.5.30",
|
|
77
77
|
"postcss-no-important": "^11.0.0",
|
|
78
78
|
"purgecss": "^8.0.0",
|
|
79
|
-
"rolldown": "^1.2.
|
|
79
|
+
"rolldown": "^1.2.14",
|
|
80
80
|
"semantic-release": "^25.0.9",
|
|
81
81
|
"tailwindcss": "^4.3.3",
|
|
82
82
|
"typescript": "^7.0.2",
|
|
83
|
-
"unstorage": "^1.17.
|
|
83
|
+
"unstorage": "^1.17.6",
|
|
84
84
|
"valibot": "^1.5.0",
|
|
85
|
-
"vite": "^8.3.
|
|
86
|
-
"vue": "^3.5.
|
|
85
|
+
"vite": "^8.3.4",
|
|
86
|
+
"vue": "^3.5.44",
|
|
87
87
|
"vue-easy-lightbox": "^1.19.0",
|
|
88
88
|
"vue-sonner": "^2.0.9",
|
|
89
|
-
"vue-tsc": "^3.3.
|
|
89
|
+
"vue-tsc": "^3.3.13",
|
|
90
90
|
"yaml": "^2.9.1"
|
|
91
91
|
},
|
|
92
92
|
"packageManager": "yarn@4.18.1",
|