@dword-design/base-config-nuxt 8.0.0 → 8.0.2
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/get-eslint-config.d.ts +5 -4
- package/dist/index.d.ts +45 -1
- package/dist/index.js +2 -0
- package/dist/typecheck.d.ts +2 -0
- package/dist/typecheck.js +15 -0
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
virtualImports?:
|
|
3
|
-
ignore?:
|
|
4
|
-
}
|
|
1
|
+
type Options = {
|
|
2
|
+
virtualImports?: string[];
|
|
3
|
+
ignore?: string[];
|
|
4
|
+
};
|
|
5
|
+
declare const _default: ({ virtualImports, ignore }?: Options) => string;
|
|
5
6
|
export default _default;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,47 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Base, Config } from '@dword-design/base';
|
|
2
|
+
import build from './build';
|
|
3
|
+
import dev from './dev';
|
|
4
|
+
import lint from './lint';
|
|
5
|
+
import prepublishOnly from './prepublish-only';
|
|
6
|
+
import start from './start';
|
|
7
|
+
import typecheck from './typecheck';
|
|
8
|
+
type ConfigNuxt = Config & {
|
|
9
|
+
virtualImports?: string[];
|
|
10
|
+
};
|
|
11
|
+
declare const _default: (this: Base, config: ConfigNuxt) => {
|
|
12
|
+
allowedMatches: string[];
|
|
13
|
+
commands: {
|
|
14
|
+
analyze: () => import("execa").ResultPromise<{}>;
|
|
15
|
+
build: typeof build;
|
|
16
|
+
dev: typeof dev;
|
|
17
|
+
prepublishOnly: typeof prepublishOnly;
|
|
18
|
+
start: typeof start;
|
|
19
|
+
};
|
|
20
|
+
depcheckConfig: {
|
|
21
|
+
parsers: {
|
|
22
|
+
'**/*.scss': (filePath: any) => any;
|
|
23
|
+
'**/*.vue': any;
|
|
24
|
+
};
|
|
25
|
+
specials: ((path: string) => Promise<any[]>)[];
|
|
26
|
+
};
|
|
27
|
+
editorIgnore: string[];
|
|
28
|
+
eslintConfig: string;
|
|
29
|
+
gitignore: string[];
|
|
30
|
+
hasTypescriptConfigRootAlias: boolean;
|
|
31
|
+
lint: typeof lint;
|
|
32
|
+
npmPublish: boolean;
|
|
33
|
+
packageConfig: {
|
|
34
|
+
main: string;
|
|
35
|
+
};
|
|
36
|
+
prepare: () => Promise<void>;
|
|
37
|
+
typecheck: typeof typecheck;
|
|
38
|
+
typescriptConfig: {
|
|
39
|
+
compilerOptions: {
|
|
40
|
+
declaration: boolean;
|
|
41
|
+
};
|
|
42
|
+
extends: string;
|
|
43
|
+
};
|
|
44
|
+
useJobMatrix: boolean;
|
|
45
|
+
};
|
|
2
46
|
export default _default;
|
|
3
47
|
export { default as getEslintConfig } from './get-eslint-config';
|
package/dist/index.js
CHANGED
|
@@ -16,6 +16,7 @@ import getEslintConfig from "./get-eslint-config.js";
|
|
|
16
16
|
import lint from "./lint.js";
|
|
17
17
|
import prepublishOnly from "./prepublish-only.js";
|
|
18
18
|
import start from "./start.js";
|
|
19
|
+
import typecheck from "./typecheck.js";
|
|
19
20
|
const __dirname = pathLib.dirname(fileURLToPath(import.meta.url));
|
|
20
21
|
const resolver = createRequire(import.meta.url);
|
|
21
22
|
const isInNodeModules = __dirname.split(pathLib.sep).includes("node_modules");
|
|
@@ -67,6 +68,7 @@ export default defineBaseConfig(function (config) {
|
|
|
67
68
|
`
|
|
68
69
|
});
|
|
69
70
|
},
|
|
71
|
+
typecheck,
|
|
70
72
|
typescriptConfig: {
|
|
71
73
|
compilerOptions: {
|
|
72
74
|
declaration: false
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { execaCommand } from "execa";
|
|
2
|
+
export default async function (options = {}) {
|
|
3
|
+
options = {
|
|
4
|
+
log: process.env.NODE_ENV !== "test",
|
|
5
|
+
stderr: "inherit",
|
|
6
|
+
...options
|
|
7
|
+
};
|
|
8
|
+
await execaCommand("nuxi prepare", {
|
|
9
|
+
...(options.log && {
|
|
10
|
+
stdout: "inherit"
|
|
11
|
+
}),
|
|
12
|
+
cwd: this.cwd,
|
|
13
|
+
stderr: options.stderr
|
|
14
|
+
});
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dword-design/base-config-nuxt",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"repository": "dword-design/base-config-nuxt",
|
|
5
5
|
"funding": "https://github.com/sponsors/dword-design",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@babel/core": "^7.28.0",
|
|
37
|
-
"@dword-design/base": "^15.
|
|
37
|
+
"@dword-design/base": "^15.1.0",
|
|
38
38
|
"@dword-design/depcheck-parser-sass": "^5.0.0",
|
|
39
39
|
"@dword-design/dotenv-json-extended": "^4.0.1",
|
|
40
40
|
"@dword-design/nuxt-i18n": "^1.0.1",
|