@dword-design/base-config-nuxt 8.1.10 → 9.0.1
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/dist/index.d.ts +7 -0
- package/dist/index.js +9 -2
- package/dist/lint.js +4 -0
- package/dist/nuxt.config.d.ts +0 -9
- package/dist/nuxt.config.js +1 -20
- package/dist/typecheck.js +4 -0
- package/package.json +4 -9
package/dist/index.d.ts
CHANGED
|
@@ -49,3 +49,10 @@ declare const _default: (this: Base, config: ConfigNuxt) => {
|
|
|
49
49
|
};
|
|
50
50
|
export default _default;
|
|
51
51
|
export { default as getEslintConfig } from './get-eslint-config';
|
|
52
|
+
export { default as analyze } from './analyze';
|
|
53
|
+
export { default as dev } from './dev';
|
|
54
|
+
export { default as build } from './build';
|
|
55
|
+
export { default as prepublishOnly } from './prepublish-only';
|
|
56
|
+
export { default as lint } from './lint';
|
|
57
|
+
export { default as typecheck } from './typecheck';
|
|
58
|
+
export { default as start } from './start';
|
package/dist/index.js
CHANGED
|
@@ -23,7 +23,7 @@ const resolver = createRequire(import.meta.url);
|
|
|
23
23
|
const isInNodeModules = __dirname.split(pathLib.sep).includes("node_modules");
|
|
24
24
|
export default defineBaseConfig(function (config) {
|
|
25
25
|
return {
|
|
26
|
-
allowedMatches: [".stylelintignore", ".stylelintrc.json", "server/api/**/*.ts", "server/plugins/**/*.ts", "server/routes/**/*.ts", "server/middleware/**/*.ts", "server/utils/**/*.ts", "app.vue", "assets", "components/**/*.vue", "composables/*.ts", "content", "i18n/*/*.ts", "layouts/*.vue", "middleware/*.ts", "
|
|
26
|
+
allowedMatches: [".stylelintignore", ".stylelintrc.json", "server/api/**/*.ts", "server/plugins/**/*.ts", "server/routes/**/*.ts", "server/middleware/**/*.ts", "server/utils/**/*.ts", "app/app.vue", "app/assets", "app/components/**/*.vue", "app/composables/*.ts", "content", "i18n/*/*.ts", "app/layouts/*.vue", "app/middleware/*.ts", "app/pages/**/*.vue", "app/plugins/*.ts", "app/utils/*.ts", "model", "modules", "config.ts", "public", "shared/utils/*.ts", "shared/types/*.ts"],
|
|
27
27
|
commands: {
|
|
28
28
|
analyze,
|
|
29
29
|
build,
|
|
@@ -83,4 +83,11 @@ export default defineBaseConfig(function (config) {
|
|
|
83
83
|
useJobMatrix: true
|
|
84
84
|
};
|
|
85
85
|
});
|
|
86
|
-
export { default as getEslintConfig } from "./get-eslint-config.js";
|
|
86
|
+
export { default as getEslintConfig } from "./get-eslint-config.js";
|
|
87
|
+
export { default as analyze } from "./analyze.js";
|
|
88
|
+
export { default as dev } from "./dev.js";
|
|
89
|
+
export { default as build } from "./build.js";
|
|
90
|
+
export { default as prepublishOnly } from "./prepublish-only.js";
|
|
91
|
+
export { default as lint } from "./lint.js";
|
|
92
|
+
export { default as typecheck } from "./typecheck.js";
|
|
93
|
+
export { default as start } from "./start.js";
|
package/dist/lint.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import dotenv from "@dword-design/dotenv-json-extended";
|
|
1
2
|
import { execaCommand } from "execa";
|
|
2
3
|
export default async function (options = {}) {
|
|
3
4
|
options = {
|
|
@@ -10,6 +11,9 @@ export default async function (options = {}) {
|
|
|
10
11
|
stdout: "inherit"
|
|
11
12
|
}),
|
|
12
13
|
cwd: this.cwd,
|
|
14
|
+
env: dotenv.parse({
|
|
15
|
+
cwd: this.cwd
|
|
16
|
+
}),
|
|
13
17
|
stderr: options.stderr
|
|
14
18
|
});
|
|
15
19
|
await execaCommand("stylelint --fix --allow-empty-input --ignore-path .gitignore **/*.{css,scss,vue}", {
|
package/dist/nuxt.config.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
declare const basicAuthUser: string;
|
|
2
1
|
declare const _default: {
|
|
3
2
|
app: {
|
|
4
3
|
head: {
|
|
@@ -30,13 +29,6 @@ declare const _default: {
|
|
|
30
29
|
linkActiveClass: string;
|
|
31
30
|
};
|
|
32
31
|
};
|
|
33
|
-
runtimeConfig: {
|
|
34
|
-
basicAuth?: {
|
|
35
|
-
pairs: {
|
|
36
|
-
[basicAuthUser]: string | undefined;
|
|
37
|
-
};
|
|
38
|
-
} | undefined;
|
|
39
|
-
};
|
|
40
32
|
typescript: {
|
|
41
33
|
strict: boolean;
|
|
42
34
|
};
|
|
@@ -46,7 +38,6 @@ declare const _default: {
|
|
|
46
38
|
localsConvention: string;
|
|
47
39
|
};
|
|
48
40
|
};
|
|
49
|
-
plugins: import("vite").Plugin<any>[];
|
|
50
41
|
vue: {
|
|
51
42
|
template: {
|
|
52
43
|
transformAssetUrls: boolean;
|
package/dist/nuxt.config.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { defineNuxtModule } from "@nuxt/kit";
|
|
2
2
|
import packageName from "depcheck-package-name";
|
|
3
3
|
import ts from "typescript";
|
|
4
|
-
import viteSvgLoader from "vite-svg-loader";
|
|
5
4
|
import config from "./config.js";
|
|
6
|
-
const basicAuthUser = process.env.BASIC_AUTH_USER;
|
|
7
|
-
const isBasicAuthEnabled = basicAuthUser && process.env.BASIC_AUTH_PASSWORD;
|
|
8
5
|
const {
|
|
9
6
|
config: typescriptConfig
|
|
10
7
|
} = ts.readConfigFile("tsconfig.json", ts.sys.readFile);
|
|
@@ -45,9 +42,7 @@ export default {
|
|
|
45
42
|
}
|
|
46
43
|
}
|
|
47
44
|
}
|
|
48
|
-
}), [packageName
|
|
49
|
-
enabled: !!isBasicAuthEnabled
|
|
50
|
-
}], packageName`@nuxt/eslint`, [packageName`@nuxtjs/stylelint-module`, {
|
|
45
|
+
}), packageName`@nuxt/eslint`, [packageName`@nuxtjs/stylelint-module`, {
|
|
51
46
|
allowEmptyInput: true,
|
|
52
47
|
failOnWarning: true,
|
|
53
48
|
fix: true,
|
|
@@ -55,25 +50,12 @@ export default {
|
|
|
55
50
|
}], [packageName`@dword-design/nuxt-page-title`, {
|
|
56
51
|
description: config.title,
|
|
57
52
|
name: config.name
|
|
58
|
-
}], [packageName`@dword-design/nuxt-i18n`, {
|
|
59
|
-
...(process.env.BASE_URL && {
|
|
60
|
-
baseUrl: process.env.BASE_URL
|
|
61
|
-
})
|
|
62
53
|
}]],
|
|
63
54
|
router: {
|
|
64
55
|
options: {
|
|
65
56
|
linkActiveClass: "active"
|
|
66
57
|
}
|
|
67
58
|
},
|
|
68
|
-
runtimeConfig: {
|
|
69
|
-
...(isBasicAuthEnabled && {
|
|
70
|
-
basicAuth: {
|
|
71
|
-
pairs: {
|
|
72
|
-
[basicAuthUser]: process.env.BASIC_AUTH_PASSWORD
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
})
|
|
76
|
-
},
|
|
77
59
|
typescript: {
|
|
78
60
|
strict: !!typescriptConfig.compilerOptions.strict
|
|
79
61
|
},
|
|
@@ -83,7 +65,6 @@ export default {
|
|
|
83
65
|
localsConvention: "camelCaseOnly"
|
|
84
66
|
}
|
|
85
67
|
},
|
|
86
|
-
plugins: [viteSvgLoader()],
|
|
87
68
|
vue: {
|
|
88
69
|
template: {
|
|
89
70
|
transformAssetUrls: false
|
package/dist/typecheck.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import dotenv from "@dword-design/dotenv-json-extended";
|
|
1
2
|
import { execaCommand } from "execa";
|
|
2
3
|
export default async function (options = {}) {
|
|
3
4
|
options = {
|
|
@@ -10,6 +11,9 @@ export default async function (options = {}) {
|
|
|
10
11
|
stdout: "inherit"
|
|
11
12
|
}),
|
|
12
13
|
cwd: this.cwd,
|
|
14
|
+
env: dotenv.parse({
|
|
15
|
+
cwd: this.cwd
|
|
16
|
+
}),
|
|
13
17
|
stderr: options.stderr
|
|
14
18
|
});
|
|
15
19
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dword-design/base-config-nuxt",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.1",
|
|
4
4
|
"repository": "dword-design/base-config-nuxt",
|
|
5
5
|
"funding": "https://github.com/sponsors/dword-design",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
"@dword-design/base": "^16.1.0",
|
|
36
36
|
"@dword-design/depcheck-parser-sass": "^5.0.0",
|
|
37
37
|
"@dword-design/dotenv-json-extended": "^4.0.1",
|
|
38
|
-
"@dword-design/nuxt-i18n": "^1.0.1",
|
|
39
38
|
"@dword-design/nuxt-page-title": "^1.0.0",
|
|
40
39
|
"@dword-design/stylelint-config": "^4.1.0",
|
|
41
40
|
"@nuxt/eslint": "^1.10.0",
|
|
@@ -51,19 +50,16 @@
|
|
|
51
50
|
"globby": "^16.0.0",
|
|
52
51
|
"jiti": "^2.6.1",
|
|
53
52
|
"lodash-es": "^4.17.21",
|
|
54
|
-
"nuxt": "^
|
|
55
|
-
"nuxt-basic-authentication-module": "^0.2.1",
|
|
53
|
+
"nuxt": "^4.0.0",
|
|
56
54
|
"output-files": "^3.0.0",
|
|
57
55
|
"require-package-name": "^2.0.1",
|
|
58
56
|
"sass": "^1.94.2",
|
|
59
57
|
"stylelint": "^16.26.0",
|
|
60
58
|
"typescript": "^5.9.3",
|
|
61
|
-
"vite-plugin-eslint2": "^5.0.4"
|
|
62
|
-
"vite-svg-loader": "^5.1.0"
|
|
59
|
+
"vite-plugin-eslint2": "^5.0.4"
|
|
63
60
|
},
|
|
64
61
|
"devDependencies": {
|
|
65
62
|
"@dword-design/defu": "^1.0.3",
|
|
66
|
-
"@nuxtjs/sitemap": "^7.4.7",
|
|
67
63
|
"@nuxtjs/tailwindcss": "7.0.0-beta.0",
|
|
68
64
|
"@playwright/browser-chromium": "^1.56.1",
|
|
69
65
|
"@playwright/test": "^1.56.1",
|
|
@@ -75,8 +71,7 @@
|
|
|
75
71
|
"get-port": "^7.1.0",
|
|
76
72
|
"nuxt-dev-ready": "^5.0.1",
|
|
77
73
|
"port-ready": "^0.1.0",
|
|
78
|
-
"tree-kill-promise": "^4.0.0"
|
|
79
|
-
"xml-formatter": "^3.6.7"
|
|
74
|
+
"tree-kill-promise": "^4.0.0"
|
|
80
75
|
},
|
|
81
76
|
"peerDependencies": {
|
|
82
77
|
"depcheck": "*"
|