easy-soft-develop 2.0.203 → 2.1.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/package.json +15 -13
- package/src/templates/package.template.js +3 -3
- package/src/tools/clean.js +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easy-soft-develop",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "https://github.com/kityandhero/easy-soft-develop#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -42,10 +42,11 @@
|
|
|
42
42
|
"test:inner:assignObject": "node ./test/assignObject.test.js",
|
|
43
43
|
"z:change:npm:registry:local": "nrm use local",
|
|
44
44
|
"z:change:npm:registry:npm": "nrm use npm",
|
|
45
|
+
"z:check:all-package-version": "npx ncu",
|
|
45
46
|
"prez:cz": "node ./bin/cli.js commit-refresh && npm run z:prettier:format:change && npm run z:tsc:build && git stage -A",
|
|
46
47
|
"z:cz": "cz",
|
|
48
|
+
"postz:cz": "git push",
|
|
47
49
|
"z:install": "pnpm install",
|
|
48
|
-
"z:postcz": "git push",
|
|
49
50
|
"z:prettier:format:all": "npx prettier --write .",
|
|
50
51
|
"z:prettier:format:change": "npx prettier --cache --write . && node ./bin/cli.js prompt --message \"format changed files complete\" --type success --blankLine",
|
|
51
52
|
"z:publish:build": "npm run z:publish:patch:npm",
|
|
@@ -53,10 +54,10 @@
|
|
|
53
54
|
"z:publish:patch:npm": "npm publish --registry https://registry.npmjs.org/",
|
|
54
55
|
"postz:publish:patch:npm": "npm run z:change:npm:registry:local",
|
|
55
56
|
"z:tsc:build": "echo show tsc version and create declaration file && tsc -v && tsc -p ./tsconfig.types.json && echo declaration file generate complete",
|
|
56
|
-
"z:update:
|
|
57
|
+
"z:update:package-from-package": "npx ncu -u"
|
|
57
58
|
},
|
|
58
59
|
"dependencies": {
|
|
59
|
-
"commander": "^10.0.
|
|
60
|
+
"commander": "^10.0.0",
|
|
60
61
|
"download": "^8.0.0",
|
|
61
62
|
"download-git-repo": "^3.0.2",
|
|
62
63
|
"fs-extra": "^11.1.1",
|
|
@@ -66,23 +67,24 @@
|
|
|
66
67
|
"terminal-kit": "^3.0.0"
|
|
67
68
|
},
|
|
68
69
|
"devDependencies": {
|
|
69
|
-
"@commitlint/cli": "^17.
|
|
70
|
-
"@commitlint/config-conventional": "^17.
|
|
71
|
-
"@commitlint/config-lerna-scopes": "^17.
|
|
72
|
-
"@commitlint/cz-commitlint": "^17.
|
|
70
|
+
"@commitlint/cli": "^17.4.4",
|
|
71
|
+
"@commitlint/config-conventional": "^17.4.4",
|
|
72
|
+
"@commitlint/config-lerna-scopes": "^17.4.2",
|
|
73
|
+
"@commitlint/cz-commitlint": "^17.4.4",
|
|
73
74
|
"commitizen": "^4.3.0",
|
|
74
75
|
"conventional-changelog-conventionalcommits": "^5.0.0",
|
|
75
|
-
"eslint": "^8.
|
|
76
|
+
"eslint": "^8.36.0",
|
|
76
77
|
"eslint-config-prettier": "^8.8.0",
|
|
77
78
|
"eslint-formatter-pretty": "^5.0.0",
|
|
78
|
-
"eslint-import-resolver-typescript": "^3.5.
|
|
79
|
+
"eslint-import-resolver-typescript": "^3.5.3",
|
|
79
80
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
80
81
|
"eslint-plugin-import": "^2.27.5",
|
|
81
82
|
"eslint-plugin-prettier": "^4.2.1",
|
|
82
83
|
"eslint-plugin-promise": "^6.1.1",
|
|
83
84
|
"husky": "^8.0.3",
|
|
84
|
-
"lint-staged": "^13.2.
|
|
85
|
-
"
|
|
86
|
-
"prettier
|
|
85
|
+
"lint-staged": "^13.2.0",
|
|
86
|
+
"npm-check-updates": "^16.10.12",
|
|
87
|
+
"prettier": "^2.8.6",
|
|
88
|
+
"prettier-plugin-packagejson": "^2.4.3"
|
|
87
89
|
}
|
|
88
90
|
}
|
|
@@ -129,9 +129,9 @@ const nrmScript = {
|
|
|
129
129
|
const commitScript = {
|
|
130
130
|
commitlint: 'npx commitlint --edit',
|
|
131
131
|
precommit: 'npm run z:lint:staged:quiet',
|
|
132
|
-
prez:cz: 'npm run z:auto:adjust:file:all && npm run z:prettier:format:change && npm run z:commit:refresh && git stage -A',
|
|
133
|
-
z:cz: 'cz',
|
|
134
|
-
postz:cz: 'git push && npm run z:test',
|
|
132
|
+
"prez:cz": 'npm run z:auto:adjust:file:all && npm run z:prettier:format:change && npm run z:commit:refresh && git stage -A',
|
|
133
|
+
"z:cz": 'cz',
|
|
134
|
+
"postz:cz": 'git push && npm run z:test',
|
|
135
135
|
"z:commit:refresh": "npx easy-soft-develop commit-refresh",
|
|
136
136
|
};
|
|
137
137
|
|
package/src/tools/clean.js
CHANGED
|
@@ -7,6 +7,12 @@ const {
|
|
|
7
7
|
} = require('./meta');
|
|
8
8
|
const { loopPackage } = require('./package.tools');
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* try clean
|
|
12
|
+
* @param {*} cmd cmd
|
|
13
|
+
* @param {*} tryTimes tryTimes
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
10
16
|
function tryClean(cmd, tryTimes) {
|
|
11
17
|
if (tryTimes > 5) {
|
|
12
18
|
promptInfo(`clean fail, ignore`);
|