@dword-design/base-config-nuxt 8.0.4 → 8.1.0
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 +3 -0
- package/dist/index.js +4 -0
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,9 @@ declare const _default: (this: Base, config: ConfigNuxt) => {
|
|
|
29
29
|
gitignore: string[];
|
|
30
30
|
hasTypescriptConfigRootAlias: boolean;
|
|
31
31
|
lint: typeof lint;
|
|
32
|
+
lintStagedConfig: {
|
|
33
|
+
'.{css,scss,vue}': string;
|
|
34
|
+
};
|
|
32
35
|
npmPublish: boolean;
|
|
33
36
|
packageConfig: {
|
|
34
37
|
main: string;
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import { fileURLToPath } from "node:url";
|
|
|
4
4
|
import { defineBaseConfig } from "@dword-design/base";
|
|
5
5
|
import depcheckParserSass from "@dword-design/depcheck-parser-sass";
|
|
6
6
|
import depcheck from "depcheck";
|
|
7
|
+
import binName from "depcheck-bin-name";
|
|
7
8
|
import packageName from "depcheck-package-name";
|
|
8
9
|
import javascript from "endent";
|
|
9
10
|
import { pick } from "lodash-es";
|
|
@@ -44,6 +45,9 @@ export default defineBaseConfig(function (config) {
|
|
|
44
45
|
gitignore: ["/.eslintcache", "/.nuxt", "/.output", "/.stylelintcache", "/dist", "/nuxt.config.ts"],
|
|
45
46
|
hasTypescriptConfigRootAlias: false,
|
|
46
47
|
lint,
|
|
48
|
+
lintStagedConfig: {
|
|
49
|
+
".{css,scss,vue}": `${binName`stylelint`} --fix`
|
|
50
|
+
},
|
|
47
51
|
npmPublish: true,
|
|
48
52
|
packageConfig: {
|
|
49
53
|
main: "dist/index.js"
|
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.1.0",
|
|
4
4
|
"repository": "dword-design/base-config-nuxt",
|
|
5
5
|
"funding": "https://github.com/sponsors/dword-design",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"babel-plugin-add-import-extension": "^1.6.0",
|
|
47
47
|
"babel-plugin-module-resolver": "^5.0.2",
|
|
48
48
|
"depcheck": "^1.4.7",
|
|
49
|
+
"depcheck-bin-name": "^2.0.0",
|
|
49
50
|
"depcheck-package-name": "^4.0.0",
|
|
50
51
|
"endent": "npm:@dword-design/endent@^1.4.7",
|
|
51
52
|
"execa": "^9.6.0",
|