antd-management-fast-config 1.1.10 → 1.1.11

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/package.json +49 -49
  2. package/src/configAssist.js +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antd-management-fast-config",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -14,65 +14,34 @@
14
14
  "src/",
15
15
  "types/"
16
16
  ],
17
- "scripts": {
18
- "precommit": "npm run z:lint:staged:quiet",
19
- "publish:npm": "npm publish --registry https://registry.npmjs.org/",
20
- "z:auto:adjust:file": "echo can exec some file adjust command with here",
21
- "prez:documentation:generate": "npx rimraf ./docs && npm run z:documentation:lint",
22
- "z:documentation:generate": "npx documentation build src/** -f html --github -o docs",
23
- "z:documentation:lint": "npx documentation lint src/**",
24
- "z:lint:file:all": "npm run z:lint:script:all && npm run z:lint:style:all",
25
- "z:lint:file:all:fix": "npm run z:lint:script:all:fix && npm run z:lint:style:all:fix",
26
- "z:lint:file:change": "npm run z:lint:script:change && npm run z:lint:style:all",
27
- "z:lint:file:change:fix": "npm run z:lint:script:change:fix && npm run z:lint:style:all:fix",
28
- "z:lint:script:all": "npx eslint --ext .js,.jsx,.ts,.tsx ./src",
29
- "z:lint:script:all:fix": "npx eslint --fix --ext .js,.jsx,.ts,.tsx ./src",
30
- "postz:lint:script:all:fix": "npm run z:prettier:format:all",
31
- "z:lint:script:change": "npx eslint --cache --ext .js,.jsx,.ts,.tsx ./src",
32
- "z:lint:script:change:fix": "npx eslint --fix --cache --ext .js,.jsx,.ts,.tsx ./src",
33
- "postz:lint:script:change:fix": "npm run z:prettier:format:change",
34
- "z:lint:staged": "npx lint-staged",
35
- "z:lint:staged:quiet": "npx lint-staged --quiet",
36
- "z:lint:style:all": "npx stylelint --allow-empty-input \"./src/**/*.{css,scss,less}\"",
37
- "z:lint:style:all:fix": "npx stylelint --allow-empty-input --fix \"./src/**/*.{css,scss,less}\"",
38
- "postz:lint:style:all:fix": "npm run z:prettier:format:all",
39
- "z:lint:style:change": "npx stylelint --allow-empty-input --cache \"./src/**/*.{css,scss,less}\"",
40
- "z:lint:style:change:fix": "npx stylelint --allow-empty-input --cache --fix \"./src/**/*.{css,scss,less}\"",
41
- "postz:lint:style:change:fix": "npm run z:prettier:format:change",
42
- "z:prettier:format:all": "npx prettier --write .",
43
- "z:prettier:format:change": "npx prettier --cache --write .",
44
- "z:prettier:package.json": "npx prettier --write ./package.json",
45
- "z:test": "cross-env NODE_ENV=test jest",
46
- "z:tsc:build": "echo show tsc version and create declaration file && tsc -v && tsc -p ./tsconfig.types.json && echo declaration file generate complete"
47
- },
48
17
  "devDependencies": {
49
- "@babel/core": "^7.22.10",
50
- "@babel/eslint-parser": "^7.22.10",
18
+ "@babel/core": "^7.22.11",
19
+ "@babel/eslint-parser": "^7.22.11",
51
20
  "@babel/plugin-external-helpers": "^7.22.5",
52
21
  "@babel/plugin-proposal-decorators": "^7.22.10",
53
22
  "@babel/plugin-transform-class-properties": "^7.22.5",
54
23
  "@babel/plugin-transform-private-methods": "^7.22.5",
55
- "@babel/plugin-transform-private-property-in-object": "^7.22.5",
24
+ "@babel/plugin-transform-private-property-in-object": "^7.22.11",
56
25
  "@babel/plugin-transform-runtime": "^7.22.10",
57
- "@babel/preset-env": "^7.22.10",
26
+ "@babel/preset-env": "^7.22.14",
58
27
  "@babel/preset-react": "^7.22.5",
59
- "@babel/runtime": "^7.22.10",
28
+ "@babel/runtime": "^7.22.11",
60
29
  "@commitlint/cli": "^17.7.1",
61
30
  "@commitlint/config-conventional": "^17.7.0",
62
31
  "@commitlint/config-lerna-scopes": "^17.7.0",
63
32
  "@commitlint/cz-commitlint": "^17.7.1",
64
33
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
65
- "@types/jest": "^29.5.3",
66
- "@types/node": "^20.5.1",
67
- "@typescript-eslint/parser": "^6.4.1",
68
- "@umijs/max": "^4.0.76",
69
- "babel-jest": "^29.6.3",
34
+ "@types/jest": "^29.5.4",
35
+ "@types/node": "^20.5.9",
36
+ "@typescript-eslint/parser": "^6.5.0",
37
+ "@umijs/max": "^4.0.79",
38
+ "babel-jest": "^29.6.4",
70
39
  "commitizen": "^4.3.0",
71
- "conventional-changelog-conventionalcommits": "^6.1.0",
40
+ "conventional-changelog-conventionalcommits": "^7.0.1",
72
41
  "cross-env": "^7.0.3",
73
42
  "documentation": "^14.0.2",
74
- "easy-soft-develop": "^2.1.34",
75
- "eslint": "^8.47.0",
43
+ "easy-soft-develop": "^2.1.35",
44
+ "eslint": "^8.48.0",
76
45
  "eslint-config-airbnb": "^19.0.4",
77
46
  "eslint-config-airbnb-typescript": "^17.1.0",
78
47
  "eslint-config-prettier": "^9.0.0",
@@ -89,9 +58,9 @@
89
58
  "eslint-plugin-simple-import-sort": "^10.0.0",
90
59
  "eslint-plugin-unicorn": "^48.0.1",
91
60
  "husky": "^8.0.3",
92
- "jest": "^29.6.3",
61
+ "jest": "^29.6.4",
93
62
  "lint-staged": "^14.0.1",
94
- "prettier": "^3.0.2",
63
+ "prettier": "^3.0.3",
95
64
  "prettier-plugin-organize-imports": "^3.2.3",
96
65
  "prettier-plugin-packagejson": "^2.4.5",
97
66
  "react": "^18.2.0",
@@ -100,6 +69,37 @@
100
69
  "stylelint": "^15.10.3",
101
70
  "stylelint-config-prettier": "^9.0.5",
102
71
  "stylelint-config-standard": "^34.0.0",
103
- "umi": "^4.0.76"
72
+ "umi": "^4.0.79"
73
+ },
74
+ "scripts": {
75
+ "precommit": "npm run z:lint:staged:quiet",
76
+ "publish:npm": "npm publish --registry https://registry.npmjs.org/",
77
+ "z:auto:adjust:file": "echo can exec some file adjust command with here",
78
+ "prez:documentation:generate": "npx rimraf ./docs && npm run z:documentation:lint",
79
+ "z:documentation:generate": "npx documentation build src/** -f html --github -o docs",
80
+ "z:documentation:lint": "npx documentation lint src/**",
81
+ "z:lint:file:all": "npm run z:lint:script:all && npm run z:lint:style:all",
82
+ "z:lint:file:all:fix": "npm run z:lint:script:all:fix && npm run z:lint:style:all:fix",
83
+ "z:lint:file:change": "npm run z:lint:script:change && npm run z:lint:style:all",
84
+ "z:lint:file:change:fix": "npm run z:lint:script:change:fix && npm run z:lint:style:all:fix",
85
+ "z:lint:script:all": "npx eslint --ext .js,.jsx,.ts,.tsx ./src",
86
+ "z:lint:script:all:fix": "npx eslint --fix --ext .js,.jsx,.ts,.tsx ./src",
87
+ "postz:lint:script:all:fix": "npm run z:prettier:format:all",
88
+ "z:lint:script:change": "npx eslint --cache --ext .js,.jsx,.ts,.tsx ./src",
89
+ "z:lint:script:change:fix": "npx eslint --fix --cache --ext .js,.jsx,.ts,.tsx ./src",
90
+ "postz:lint:script:change:fix": "npm run z:prettier:format:change",
91
+ "z:lint:staged": "npx lint-staged",
92
+ "z:lint:staged:quiet": "npx lint-staged --quiet",
93
+ "z:lint:style:all": "npx stylelint --allow-empty-input \"./src/**/*.{css,scss,less}\"",
94
+ "z:lint:style:all:fix": "npx stylelint --allow-empty-input --fix \"./src/**/*.{css,scss,less}\"",
95
+ "postz:lint:style:all:fix": "npm run z:prettier:format:all",
96
+ "z:lint:style:change": "npx stylelint --allow-empty-input --cache \"./src/**/*.{css,scss,less}\"",
97
+ "z:lint:style:change:fix": "npx stylelint --allow-empty-input --cache --fix \"./src/**/*.{css,scss,less}\"",
98
+ "postz:lint:style:change:fix": "npm run z:prettier:format:change",
99
+ "z:prettier:format:all": "npx prettier --write .",
100
+ "z:prettier:format:change": "npx prettier --cache --write .",
101
+ "z:prettier:package.json": "npx prettier --write ./package.json",
102
+ "z:test": "cross-env NODE_ENV=test jest",
103
+ "z:tsc:build": "echo show tsc version and create declaration file && tsc -v && tsc -p ./tsconfig.types.json && echo declaration file generate complete"
104
104
  }
105
- }
105
+ }
@@ -6,6 +6,9 @@ function checkDevelopment() {
6
6
  return process.env.NODE_ENV === 'development';
7
7
  }
8
8
 
9
+ /**
10
+ * buildConfig
11
+ */
9
12
  function buildConfig({ packageJson: packageImport, config = {} }) {
10
13
  const deps = packageImport.dependencies;
11
14