easy-soft-develop 2.1.314 → 2.1.316

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.1.314",
3
+ "version": "2.1.316",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/kityandhero/easy-soft-develop#readme",
6
6
  "bugs": {
@@ -9,6 +9,7 @@ const developUpdateProjectFromRepository = {
9
9
  repository: '',
10
10
  sourcePath: '',
11
11
  targetPath: '',
12
+ syncConfigs: [],
12
13
  syncFolders: [],
13
14
  syncFiles: [],
14
15
  ignoreSyncWhenExistFiles: [],
@@ -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,