easy-soft-develop 2.1.314 → 2.2.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easy-soft-develop",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "https://github.com/kityandhero/easy-soft-develop#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@changesets/cli": "^2.29.8",
|
|
92
|
-
"@commitlint/cli": "^20.
|
|
93
|
-
"@commitlint/config-conventional": "^20.
|
|
92
|
+
"@commitlint/cli": "^20.2.0",
|
|
93
|
+
"@commitlint/config-conventional": "^20.2.0",
|
|
94
94
|
"@commitlint/config-pnpm-scopes": "^20.1.0",
|
|
95
95
|
"commitizen": "^4.3.1",
|
|
96
96
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
"eslint-plugin-promise": "^7.2.1",
|
|
106
106
|
"husky": "^9.1.7",
|
|
107
107
|
"lint-staged": "^16.2.7",
|
|
108
|
-
"npm-check-updates": "^19.
|
|
109
|
-
"prettier": "^3.7.
|
|
108
|
+
"npm-check-updates": "^19.2.0",
|
|
109
|
+
"prettier": "^3.7.4",
|
|
110
110
|
"prettier-plugin-packagejson": "^2.5.20"
|
|
111
111
|
}
|
|
112
112
|
}
|
|
@@ -46,6 +46,7 @@ function handlePackage({
|
|
|
46
46
|
zipPath,
|
|
47
47
|
sourcePath,
|
|
48
48
|
targetPath,
|
|
49
|
+
syncConfigs,
|
|
49
50
|
syncFolders,
|
|
50
51
|
syncFiles,
|
|
51
52
|
ignoreSyncWhenExistFiles,
|
|
@@ -66,6 +67,29 @@ function handlePackage({
|
|
|
66
67
|
|
|
67
68
|
promptLine();
|
|
68
69
|
|
|
70
|
+
//#region sync configs
|
|
71
|
+
|
|
72
|
+
promptTip('*', 'sync configs.');
|
|
73
|
+
promptEmptyLine();
|
|
74
|
+
|
|
75
|
+
if (syncConfigs.length === 0) {
|
|
76
|
+
promptWarn(
|
|
77
|
+
'none file will force sync, if need, please set "syncConfigs" in "develop.update.project.from.repository.json".',
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
for (const itemFile of syncConfigs) {
|
|
82
|
+
copyFileSync({
|
|
83
|
+
sourceMainPath,
|
|
84
|
+
targetMainPath,
|
|
85
|
+
filepath: itemFile,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
//#endregion
|
|
90
|
+
|
|
91
|
+
//#region sync files
|
|
92
|
+
|
|
69
93
|
promptTip('*', 'sync files.');
|
|
70
94
|
promptEmptyLine();
|
|
71
95
|
|
|
@@ -83,6 +107,10 @@ function handlePackage({
|
|
|
83
107
|
});
|
|
84
108
|
}
|
|
85
109
|
|
|
110
|
+
//#endregion
|
|
111
|
+
|
|
112
|
+
//#region sync files when not exist
|
|
113
|
+
|
|
86
114
|
promptTip('*', 'sync files when not exist.');
|
|
87
115
|
promptEmptyLine();
|
|
88
116
|
|
|
@@ -106,6 +134,10 @@ function handlePackage({
|
|
|
106
134
|
});
|
|
107
135
|
}
|
|
108
136
|
|
|
137
|
+
//#endregion
|
|
138
|
+
|
|
139
|
+
//#region sync folders
|
|
140
|
+
|
|
109
141
|
promptTip('*', 'sync folders.');
|
|
110
142
|
promptEmptyLine();
|
|
111
143
|
|
|
@@ -123,6 +155,8 @@ function handlePackage({
|
|
|
123
155
|
});
|
|
124
156
|
}
|
|
125
157
|
|
|
158
|
+
//#endregion
|
|
159
|
+
|
|
126
160
|
promptTip('*', 'clear resource.');
|
|
127
161
|
promptEmptyLine();
|
|
128
162
|
|
|
@@ -185,6 +219,7 @@ async function updateProjectFromRepository({ projectPath = '.', agent }) {
|
|
|
185
219
|
repository = '',
|
|
186
220
|
sourcePath = '',
|
|
187
221
|
targetPath = '',
|
|
222
|
+
syncConfigs = [],
|
|
188
223
|
syncFolders = [],
|
|
189
224
|
syncFiles = [],
|
|
190
225
|
ignoreSyncWhenExistFiles = [],
|
|
@@ -192,6 +227,7 @@ async function updateProjectFromRepository({ projectPath = '.', agent }) {
|
|
|
192
227
|
repository: '',
|
|
193
228
|
sourcePath: '',
|
|
194
229
|
targetPath: '',
|
|
230
|
+
syncConfigs: [],
|
|
195
231
|
syncFolders: [],
|
|
196
232
|
syncFiles: [],
|
|
197
233
|
ignoreSyncWhenExistFiles: [],
|
|
@@ -237,6 +273,7 @@ async function updateProjectFromRepository({ projectPath = '.', agent }) {
|
|
|
237
273
|
zipPath,
|
|
238
274
|
sourcePath,
|
|
239
275
|
targetPath,
|
|
276
|
+
syncConfigs,
|
|
240
277
|
syncFolders,
|
|
241
278
|
syncFiles,
|
|
242
279
|
ignoreSyncWhenExistFiles,
|