easy-soft-develop 2.0.154 → 2.0.156
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
CHANGED
|
@@ -76,8 +76,8 @@ const toolsScript = {
|
|
|
76
76
|
'z:show:info':
|
|
77
77
|
'echo node version && node --version && echo npm version && npm --version && echo ------------ && npx lerna ls -a -l',
|
|
78
78
|
"z:show:package": "npx lerna ls -a -l",
|
|
79
|
-
"z:sleep": "
|
|
80
|
-
"z:create:assist-scripts": "
|
|
79
|
+
"z:sleep": "easy-soft-develop sleep --second 2 --showInfo false",
|
|
80
|
+
"z:create:assist-scripts": "easy-soft-develop create-assist-scripts",
|
|
81
81
|
"z:update:package-from-package": "node ./develop/assists/update-package-from-package.js",
|
|
82
82
|
};
|
|
83
83
|
|
|
@@ -127,7 +127,7 @@ const commitScript = {
|
|
|
127
127
|
cz: 'cz',
|
|
128
128
|
postcz: 'git push',
|
|
129
129
|
precommit: 'npm run z:lint:staged:quiet',
|
|
130
|
-
"z:commit:refresh": "
|
|
130
|
+
"z:commit:refresh": "easy-soft-develop commit-refresh",
|
|
131
131
|
};
|
|
132
132
|
|
|
133
133
|
const prettierScript = {
|
|
@@ -138,8 +138,8 @@ const prettierScript = {
|
|
|
138
138
|
};
|
|
139
139
|
|
|
140
140
|
const ncuScript = {
|
|
141
|
-
'z:check:all-package-version': '
|
|
142
|
-
'z:update:all-package-version': '
|
|
141
|
+
'z:check:all-package-version': 'easy-soft-develop check-all-package-version',
|
|
142
|
+
'z:update:all-package-version': 'easy-soft-develop update-all-package-version',
|
|
143
143
|
'postz:update:all-package-version': 'npm run z:install',
|
|
144
144
|
'z:update:special-package-version': 'node ./develop/assists/package.update.special.version.js',
|
|
145
145
|
'postz:update:special-package-version': 'npm run z:install',
|
package/src/tools/clean.js
CHANGED
|
@@ -67,10 +67,9 @@ function clean(preCmd, ...targets) {
|
|
|
67
67
|
.join(' && ');
|
|
68
68
|
|
|
69
69
|
promptInfo(`clean start`);
|
|
70
|
-
promptEmptyLine();
|
|
71
70
|
|
|
72
71
|
if (preCmd) {
|
|
73
|
-
promptInfo(`clean
|
|
72
|
+
promptInfo(`clean with prepare command: ${preCmd}`);
|
|
74
73
|
|
|
75
74
|
exec(preCmd);
|
|
76
75
|
}
|
|
@@ -79,6 +78,7 @@ function clean(preCmd, ...targets) {
|
|
|
79
78
|
|
|
80
79
|
adjustMainPackageJson(command);
|
|
81
80
|
|
|
81
|
+
promptEmptyLine();
|
|
82
82
|
promptSuccess('clean success');
|
|
83
83
|
} catch (error) {
|
|
84
84
|
promptError(error);
|
|
@@ -91,7 +91,7 @@ function adjustMainPackageJsonScript({ scripts }) {
|
|
|
91
91
|
packageJson.scripts = assignObject(
|
|
92
92
|
{
|
|
93
93
|
'z:build:all': 'echo please supplement build all packages commend',
|
|
94
|
-
'z:publish:npm-all': `
|
|
94
|
+
'z:publish:npm-all': `easy-soft-develop publish --packages ${publishPackageNameList.join(
|
|
95
95
|
',',
|
|
96
96
|
)}`,
|
|
97
97
|
},
|
|
@@ -17,6 +17,12 @@ function adjustChildrenPackageJsonByCommand(cmd) {
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
function checkEasySoftDevelopVersion() {
|
|
21
|
+
promptInfo('check easy-soft-develop version');
|
|
22
|
+
|
|
23
|
+
exec('ncu -g easy-soft-develop');
|
|
24
|
+
}
|
|
25
|
+
|
|
20
26
|
function updateSpecialPackageVersion(packageList) {
|
|
21
27
|
exec('npm run z:initial:environment');
|
|
22
28
|
|
|
@@ -30,6 +36,8 @@ function updateSpecialPackageVersion(packageList) {
|
|
|
30
36
|
|
|
31
37
|
adjustChildrenPackageJsonByCommand(ncuCommand);
|
|
32
38
|
|
|
39
|
+
checkEasySoftDevelopVersion();
|
|
40
|
+
|
|
33
41
|
promptSuccess('check success');
|
|
34
42
|
}
|
|
35
43
|
|
|
@@ -47,6 +55,8 @@ function updateAllPackageVersion() {
|
|
|
47
55
|
promptSuccess('update success, exec install with z:install');
|
|
48
56
|
|
|
49
57
|
exec('npm run z:install');
|
|
58
|
+
|
|
59
|
+
checkEasySoftDevelopVersion();
|
|
50
60
|
}
|
|
51
61
|
|
|
52
62
|
function checkAllPackageVersion() {
|
|
@@ -63,6 +73,8 @@ function checkAllPackageVersion() {
|
|
|
63
73
|
promptSuccess('update success, exec install with z:install');
|
|
64
74
|
|
|
65
75
|
exec('npm run z:install');
|
|
76
|
+
|
|
77
|
+
checkEasySoftDevelopVersion();
|
|
66
78
|
}
|
|
67
79
|
|
|
68
80
|
module.exports = {
|