@jojomatik/nuxt-bundle 2.0.0-beta.2 → 2.0.0-beta.3
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 +14 -10
- package/package.json +9 -18
package/nuxt.config.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as fs from "fs";
|
|
2
2
|
import chalk from "chalk";
|
|
3
|
-
import vuetify from "vite-plugin-vuetify";
|
|
4
3
|
import type { LocaleObject } from "@nuxtjs/i18n";
|
|
5
4
|
import type { GeneratedLocale } from "@intlify/core-base";
|
|
5
|
+
import vuetifyOptions from "./vuetify-options";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Returns all locales with their corresponding file names from `./locales`.
|
|
@@ -21,6 +21,10 @@ export function getLocales(): LocaleObject<GeneratedLocale>[] {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
const isDevServer =
|
|
25
|
+
process.argv.some((arg) => arg.endsWith("nuxi")) &&
|
|
26
|
+
process.argv.includes("dev");
|
|
27
|
+
|
|
24
28
|
export default defineNuxtConfig({
|
|
25
29
|
app: {
|
|
26
30
|
pageTransition: { name: "page", mode: "out-in" },
|
|
@@ -74,6 +78,8 @@ export default defineNuxtConfig({
|
|
|
74
78
|
"@nuxtjs/i18n",
|
|
75
79
|
"@nuxtjs/seo",
|
|
76
80
|
"@nuxt/eslint",
|
|
81
|
+
"@nuxtjs/storybook",
|
|
82
|
+
"vuetify-nuxt-module",
|
|
77
83
|
],
|
|
78
84
|
licenseModule: {
|
|
79
85
|
allowedLicenses: ["MIT", "Apache-2.0"],
|
|
@@ -84,6 +90,12 @@ export default defineNuxtConfig({
|
|
|
84
90
|
restructureDir: ".",
|
|
85
91
|
langDir: "locales",
|
|
86
92
|
},
|
|
93
|
+
vuetify: {
|
|
94
|
+
vuetifyOptions,
|
|
95
|
+
},
|
|
96
|
+
storybook: {
|
|
97
|
+
enabled: !isDevServer,
|
|
98
|
+
},
|
|
87
99
|
hooks: {
|
|
88
100
|
"nitro:build:before": () => {
|
|
89
101
|
const fontsDir = "public/assets/fonts/";
|
|
@@ -94,16 +106,8 @@ export default defineNuxtConfig({
|
|
|
94
106
|
console.log(chalk.green("√"), "Copied fonts to " + fontsDir);
|
|
95
107
|
},
|
|
96
108
|
},
|
|
97
|
-
vite: {
|
|
98
|
-
define: {
|
|
99
|
-
"process.env.DEBUG": "false",
|
|
100
|
-
},
|
|
101
|
-
ssr: {
|
|
102
|
-
noExternal: ["vuetify"],
|
|
103
|
-
},
|
|
104
|
-
plugins: [vuetify()],
|
|
105
|
-
},
|
|
106
109
|
nitro: {
|
|
107
110
|
compressPublicAssets: true,
|
|
108
111
|
},
|
|
112
|
+
ssr: true,
|
|
109
113
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jojomatik/nuxt-bundle",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A bundle of commonly used nuxt dependencies and configuration.",
|
|
6
6
|
"keywords": [
|
|
@@ -34,37 +34,28 @@
|
|
|
34
34
|
"@nuxt/image": "2.0.0",
|
|
35
35
|
"@nuxtjs/i18n": "10.2.1",
|
|
36
36
|
"@nuxtjs/seo": "3.3.0",
|
|
37
|
+
"@nuxtjs/storybook": "9.0.1",
|
|
37
38
|
"@semantic-release/exec": "7.1.0",
|
|
38
39
|
"@semantic-release/git": "10.0.1",
|
|
39
|
-
"@storybook/addon-
|
|
40
|
-
"@storybook/addon-
|
|
41
|
-
"@storybook/addon-links": "8.6.14",
|
|
42
|
-
"@storybook/blocks": "8.6.14",
|
|
43
|
-
"@storybook/components": "8.6.14",
|
|
44
|
-
"@storybook/manager-api": "8.6.14",
|
|
45
|
-
"@storybook/preview-api": "8.6.14",
|
|
46
|
-
"@storybook/test": "8.6.14",
|
|
47
|
-
"@storybook/types": "8.6.14",
|
|
48
|
-
"@storybook/vue3": "8.6.14",
|
|
49
|
-
"@storybook/vue3-vite": "8.6.14",
|
|
40
|
+
"@storybook/addon-links": "9.1.17",
|
|
41
|
+
"@storybook/addon-docs": "9.1.17",
|
|
50
42
|
"@types/node": "24.10.4",
|
|
51
43
|
"chromatic": "13.3.4",
|
|
52
44
|
"conventional-changelog-conventionalcommits": "9.1.0",
|
|
53
45
|
"eslint-config-prettier": "10.1.8",
|
|
54
46
|
"eslint-plugin-prettier": "5.5.4",
|
|
55
|
-
"eslint-plugin-storybook": "
|
|
47
|
+
"eslint-plugin-storybook": "9.1.17",
|
|
56
48
|
"eslint-plugin-vue": "10.6.2",
|
|
57
49
|
"prettier": "3.7.4",
|
|
58
|
-
"rollup": "4.
|
|
50
|
+
"rollup": "4.55.1",
|
|
59
51
|
"rollup-plugin-license": "3.6.0",
|
|
60
52
|
"sass": "1.97.1",
|
|
61
53
|
"semantic-release": "25.0.2",
|
|
62
|
-
"storybook": "
|
|
63
|
-
"storybook-i18n": "3.1.1",
|
|
54
|
+
"storybook": "9.1.17",
|
|
64
55
|
"typescript": "5.9.3",
|
|
65
|
-
"vite-plugin-vuetify": "2.1.2",
|
|
66
56
|
"vue-router": "4.6.4",
|
|
67
|
-
"vuetify": "3.11.6"
|
|
57
|
+
"vuetify": "3.11.6",
|
|
58
|
+
"vuetify-nuxt-module": "0.19.2"
|
|
68
59
|
},
|
|
69
60
|
"devDependencies": {
|
|
70
61
|
"eslint": "9.39.2",
|