srcdev-nuxt-components 9.0.1 → 9.0.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 +11 -15
- package/package.json +14 -15
package/nuxt.config.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
2
|
-
const isStandalone = !!process.env.
|
|
2
|
+
const isStandalone = !!process.env.SRCDEV_STANDALONE;
|
|
3
3
|
|
|
4
4
|
export default defineNuxtConfig({
|
|
5
5
|
devtools: { enabled: true },
|
|
@@ -22,14 +22,8 @@ export default defineNuxtConfig({
|
|
|
22
22
|
"@vueuse/motion/nuxt",
|
|
23
23
|
"pinia-plugin-persistedstate/nuxt",
|
|
24
24
|
// Dev-only — only when running the layer as a standalone app
|
|
25
|
-
...(isStandalone ? ["@nuxt/eslint", "
|
|
25
|
+
...(isStandalone ? ["@nuxt/eslint", "nuxt-qrcode", "@nuxt/test-utils/module"] : []),
|
|
26
26
|
],
|
|
27
|
-
...(isStandalone ? {
|
|
28
|
-
i18n: {
|
|
29
|
-
defaultLocale: "en",
|
|
30
|
-
locales: ["en"],
|
|
31
|
-
},
|
|
32
|
-
} : {}),
|
|
33
27
|
imports: {
|
|
34
28
|
dirs: ["./stores"],
|
|
35
29
|
},
|
|
@@ -121,12 +115,14 @@ export default defineNuxtConfig({
|
|
|
121
115
|
includeWorkspace: true,
|
|
122
116
|
strict: true,
|
|
123
117
|
typeCheck: "build", // Enable type checking during build only - Fixes vue-tsc dependency issues
|
|
124
|
-
...(isStandalone
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
118
|
+
...(isStandalone
|
|
119
|
+
? {
|
|
120
|
+
tsConfig: {
|
|
121
|
+
compilerOptions: {
|
|
122
|
+
types: ["vitest/globals"], // TypeScript support for globals
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
}
|
|
126
|
+
: {}),
|
|
131
127
|
},
|
|
132
128
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "srcdev-nuxt-components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "9.0.
|
|
4
|
+
"version": "9.0.3",
|
|
5
5
|
"main": "nuxt.config.ts",
|
|
6
6
|
"types": "types.d.ts",
|
|
7
7
|
"license": "MIT",
|
|
@@ -14,23 +14,23 @@
|
|
|
14
14
|
"cleanall": "rm -rf node_modules && rm -rf .nuxt && rm -rf .output && rm package-lock.json",
|
|
15
15
|
"reinstall": "rm -rf node_modules && npm install",
|
|
16
16
|
"cleaninstall": "npm run clean && npm run reinstall",
|
|
17
|
-
"dev": "
|
|
18
|
-
"build": "
|
|
19
|
-
"generate": "
|
|
20
|
-
"preview": "
|
|
17
|
+
"dev": "SRCDEV_STANDALONE=true nuxi dev",
|
|
18
|
+
"build": "SRCDEV_STANDALONE=true nuxt build",
|
|
19
|
+
"generate": "SRCDEV_STANDALONE=true nuxt generate",
|
|
20
|
+
"preview": "SRCDEV_STANDALONE=true nuxt preview",
|
|
21
21
|
"lint": "eslint .",
|
|
22
|
-
"
|
|
22
|
+
"prepare": "SRCDEV_STANDALONE=true nuxt prepare",
|
|
23
23
|
"release": "release-it",
|
|
24
|
-
"test": "
|
|
25
|
-
"test:run": "
|
|
26
|
-
"test:ui": "
|
|
27
|
-
"test:update": "
|
|
28
|
-
"storybook": "
|
|
29
|
-
"storybook:build": "
|
|
24
|
+
"test": "SRCDEV_STANDALONE=true vitest",
|
|
25
|
+
"test:run": "SRCDEV_STANDALONE=true vitest --run",
|
|
26
|
+
"test:ui": "SRCDEV_STANDALONE=true vitest --ui",
|
|
27
|
+
"test:update": "SRCDEV_STANDALONE=true vitest --update",
|
|
28
|
+
"storybook": "SRCDEV_STANDALONE=true storybook dev -p 6006",
|
|
29
|
+
"storybook:build": "SRCDEV_STANDALONE=true storybook build",
|
|
30
30
|
"storybook:serve": "npm run storybook:build && npx http-server storybook-static --port 6006",
|
|
31
31
|
"storybook:cache:clean": "rm -rf node_modules/.cache/storybook node_modules/.vite",
|
|
32
|
-
"playwright": "
|
|
33
|
-
"playwright:update": "
|
|
32
|
+
"playwright": "SRCDEV_STANDALONE=true npx playwright test",
|
|
33
|
+
"playwright:update": "SRCDEV_STANDALONE=true npx playwright test --update-snapshots"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
36
|
"app/",
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
"@iconify-json/mdi": "1.2.3",
|
|
50
50
|
"@nuxt/eslint": "1.13.0",
|
|
51
51
|
"@nuxt/test-utils": "3.23.0",
|
|
52
|
-
"@nuxtjs/i18n": "10.2.1",
|
|
53
52
|
"@nuxtjs/storybook": "9.1.0-29374011.dab79ae",
|
|
54
53
|
"@playwright/test": "1.58.2",
|
|
55
54
|
"@storybook/addon-a11y": "10.0.7",
|