@jojomatik/nuxt-bundle 2.0.0-beta.1 → 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.
Files changed (2) hide show
  1. package/nuxt.config.ts +17 -12
  2. package/package.json +9 -18
package/nuxt.config.ts CHANGED
@@ -1,16 +1,17 @@
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";
4
+ import type { GeneratedLocale } from "@intlify/core-base";
5
+ import vuetifyOptions from "./vuetify-options";
5
6
 
6
7
  /**
7
8
  * Returns all locales with their corresponding file names from `./locales`.
8
9
  */
9
- export function getLocales(): LocaleObject<string>[] {
10
+ export function getLocales(): LocaleObject<GeneratedLocale>[] {
10
11
  const files = fs.readdirSync("./locales");
11
12
 
12
13
  return files.map((file) => {
13
- const code = file.split(".")[0] as string;
14
+ const code = file.split(".")[0] as GeneratedLocale;
14
15
 
15
16
  return {
16
17
  code,
@@ -20,6 +21,10 @@ export function getLocales(): LocaleObject<string>[] {
20
21
  });
21
22
  }
22
23
 
24
+ const isDevServer =
25
+ process.argv.some((arg) => arg.endsWith("nuxi")) &&
26
+ process.argv.includes("dev");
27
+
23
28
  export default defineNuxtConfig({
24
29
  app: {
25
30
  pageTransition: { name: "page", mode: "out-in" },
@@ -73,6 +78,8 @@ export default defineNuxtConfig({
73
78
  "@nuxtjs/i18n",
74
79
  "@nuxtjs/seo",
75
80
  "@nuxt/eslint",
81
+ "@nuxtjs/storybook",
82
+ "vuetify-nuxt-module",
76
83
  ],
77
84
  licenseModule: {
78
85
  allowedLicenses: ["MIT", "Apache-2.0"],
@@ -83,6 +90,12 @@ export default defineNuxtConfig({
83
90
  restructureDir: ".",
84
91
  langDir: "locales",
85
92
  },
93
+ vuetify: {
94
+ vuetifyOptions,
95
+ },
96
+ storybook: {
97
+ enabled: !isDevServer,
98
+ },
86
99
  hooks: {
87
100
  "nitro:build:before": () => {
88
101
  const fontsDir = "public/assets/fonts/";
@@ -93,16 +106,8 @@ export default defineNuxtConfig({
93
106
  console.log(chalk.green("√"), "Copied fonts to " + fontsDir);
94
107
  },
95
108
  },
96
- vite: {
97
- define: {
98
- "process.env.DEBUG": "false",
99
- },
100
- ssr: {
101
- noExternal: ["vuetify"],
102
- },
103
- plugins: [vuetify()],
104
- },
105
109
  nitro: {
106
110
  compressPublicAssets: true,
107
111
  },
112
+ ssr: true,
108
113
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jojomatik/nuxt-bundle",
3
- "version": "2.0.0-beta.1",
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-essentials": "8.6.14",
40
- "@storybook/addon-interactions": "8.6.14",
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": "0.12.0",
47
+ "eslint-plugin-storybook": "9.1.17",
56
48
  "eslint-plugin-vue": "10.6.2",
57
49
  "prettier": "3.7.4",
58
- "rollup": "4.54.0",
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": "8.6.14",
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",