tnp-helpers 19.0.74 → 21.0.2
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/browser/fesm2022/tnp-helpers.mjs +404 -154
- package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
- package/browser/lib/base/classes/base-db.d.ts +1 -1
- package/browser/lib/base/classes/base-git.d.ts +3 -1
- package/browser/lib/base/classes/base-global-command-line.d.ts +30 -15
- package/browser/lib/build-info._auto-generated_.d.ts +1 -1
- package/browser/lib/utils.d.ts +28 -4
- package/browser/package.json +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker-database-config.js +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker-database-config.js.map +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker.utils.js +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker.utils.js.map +1 -1
- package/lib/base/classes/base-db.d.ts +2 -2
- package/lib/base/classes/base-db.js +5 -3
- package/lib/base/classes/base-db.js.map +1 -1
- package/lib/base/classes/base-git.d.ts +3 -1
- package/lib/base/classes/base-git.js +8 -3
- package/lib/base/classes/base-git.js.map +1 -1
- package/lib/base/classes/base-global-command-line.d.ts +27 -12
- package/lib/base/classes/base-global-command-line.js +307 -215
- package/lib/base/classes/base-global-command-line.js.map +1 -1
- package/lib/base/classes/base-node-modules.js +7 -7
- package/lib/base/classes/base-node-modules.js.map +1 -1
- package/lib/base/classes/base-vscode.js +5 -1
- package/lib/base/classes/base-vscode.js.map +1 -1
- package/lib/base/gh-temp-code.js +6 -5
- package/lib/base/gh-temp-code.js.map +1 -1
- package/lib/base/tcp-udp-ports/not-assignable-port.entity.js +2 -2
- package/lib/base/tcp-udp-ports/ports.entity.d.ts +1 -1
- package/lib/base/tcp-udp-ports/tcp-udp-ports.context.d.ts +1 -19
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/build-info._auto-generated_.js.map +1 -1
- package/lib/env/env.angular-node-app.d.ts +1 -0
- package/lib/env/env.angular-node-app.js +3 -2
- package/lib/env/env.angular-node-app.js.map +1 -1
- package/lib/env/env.docs-webapp.d.ts +1 -0
- package/lib/env/env.docs-webapp.js +3 -2
- package/lib/env/env.docs-webapp.js.map +1 -1
- package/lib/env/env.electron-app.d.ts +1 -0
- package/lib/env/env.electron-app.js +3 -2
- package/lib/env/env.electron-app.js.map +1 -1
- package/lib/env/env.mobile-app.d.ts +1 -0
- package/lib/env/env.mobile-app.js +3 -2
- package/lib/env/env.mobile-app.js.map +1 -1
- package/lib/env/env.npm-lib-and-cli-tool.d.ts +1 -0
- package/lib/env/env.npm-lib-and-cli-tool.js +3 -2
- package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -1
- package/lib/env/env.vscode-plugin.d.ts +1 -0
- package/lib/env/env.vscode-plugin.js +3 -2
- package/lib/env/env.vscode-plugin.js.map +1 -1
- package/lib/helpers/for-browser/angular.helper.js +2 -2
- package/lib/old/base-component.js +2 -2
- package/lib/old/base-formly-component.js +2 -2
- package/lib/old/dual-component-ctrl.js +2 -2
- package/lib/utils.d.ts +28 -4
- package/lib/utils.js +167 -26
- package/lib/utils.js.map +1 -1
- package/package.json +5 -5
- package/websql/fesm2022/tnp-helpers.mjs +404 -154
- package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
- package/websql/lib/base/classes/base-db.d.ts +1 -1
- package/websql/lib/base/classes/base-git.d.ts +3 -1
- package/websql/lib/base/classes/base-global-command-line.d.ts +30 -15
- package/websql/lib/build-info._auto-generated_.d.ts +1 -1
- package/websql/lib/utils.d.ts +28 -4
- package/websql/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Subject, BehaviorSubject } from 'rxjs';
|
|
2
2
|
import { CoreModels, Utils, crossPlatformPath, _, CoreHelpers, UtilsTerminal, chalk, path, config, Helpers as Helpers$1, fse, folderName, fileName, UtilsNetwork, UtilsSudo, isElevated } from 'tnp-core/websql';
|
|
3
|
-
import { isImportDeclaration, isNamedImports, isExportDeclaration, isNamedExports, createSourceFile, ScriptTarget, ScriptKind } from 'typescript';
|
|
3
|
+
import { isImportDeclaration, isNamedImports, isExportDeclaration, isNamedExports, createSourceFile, ScriptTarget, isCallExpression, SyntaxKind, forEachChild, ScriptKind } from 'typescript';
|
|
4
4
|
import * as fuzzy from 'fuzzy';
|
|
5
5
|
import { Level } from 'ng2-logger/websql';
|
|
6
6
|
import { CLASS } from 'typescript-class-helpers/websql';
|
|
@@ -100,13 +100,19 @@ var HelpersAngular;
|
|
|
100
100
|
//#region utils npm
|
|
101
101
|
var UtilsNpm;
|
|
102
102
|
(function (UtilsNpm) {
|
|
103
|
-
|
|
103
|
+
UtilsNpm.isProperVersion = (npmVersion) => {
|
|
104
|
+
/* */
|
|
105
|
+
/* */
|
|
106
|
+
return (void 0);
|
|
107
|
+
};
|
|
108
|
+
//#region utils npm / is special version
|
|
104
109
|
UtilsNpm.isSpecialVersion = (version) => {
|
|
105
110
|
return CoreModels.NpmSpecialVersions.includes(version);
|
|
106
111
|
};
|
|
107
112
|
//#endregion
|
|
108
|
-
//#region clear version
|
|
113
|
+
//#region utils npm / clear version
|
|
109
114
|
UtilsNpm.clearVersion = (version, options) => {
|
|
115
|
+
options = options || {};
|
|
110
116
|
const { removePrefixes, removeSuffix } = options || {};
|
|
111
117
|
if (!version || UtilsNpm.isSpecialVersion(version)) {
|
|
112
118
|
return version;
|
|
@@ -124,7 +130,7 @@ var UtilsNpm;
|
|
|
124
130
|
return UtilsNpm.fixMajorVerNumber(`${major}.${minor}.${patch}${alphaOrBetaOrRc ? '.' + alphaOrBetaOrRc : ''}`);
|
|
125
131
|
};
|
|
126
132
|
//#endregion
|
|
127
|
-
//#region fix major version number
|
|
133
|
+
//#region utils npm / fix major version number
|
|
128
134
|
UtilsNpm.fixMajorVerNumber = (version) => {
|
|
129
135
|
if (!version || UtilsNpm.isSpecialVersion(version)) {
|
|
130
136
|
return version;
|
|
@@ -143,7 +149,183 @@ var UtilsNpm;
|
|
|
143
149
|
}
|
|
144
150
|
return `${major}.${minor}.${patch}${alphaOrBetaOrRc ? '.' + alphaOrBetaOrRc : ''}`;
|
|
145
151
|
};
|
|
152
|
+
UtilsNpm.getLatestVersionFromNpm = async (packageName, options) => {
|
|
153
|
+
/* */
|
|
154
|
+
/* */
|
|
155
|
+
/* */
|
|
156
|
+
/* */
|
|
157
|
+
/* */
|
|
158
|
+
/* */
|
|
159
|
+
/* */
|
|
160
|
+
/* */
|
|
161
|
+
/* */
|
|
162
|
+
/* */
|
|
163
|
+
/* */
|
|
164
|
+
/* */
|
|
165
|
+
/* */
|
|
166
|
+
/* */
|
|
167
|
+
/* */
|
|
168
|
+
/* */
|
|
169
|
+
/* */
|
|
170
|
+
/* */
|
|
171
|
+
/* */
|
|
172
|
+
/* */
|
|
173
|
+
/* */
|
|
174
|
+
/* */
|
|
175
|
+
/* */
|
|
176
|
+
/* */
|
|
177
|
+
/* */
|
|
178
|
+
/* */
|
|
179
|
+
/* */
|
|
180
|
+
/* */
|
|
181
|
+
/* */
|
|
182
|
+
/* */
|
|
183
|
+
/* */
|
|
184
|
+
/* */
|
|
185
|
+
/* */
|
|
186
|
+
/* */
|
|
187
|
+
/* */
|
|
188
|
+
/* */
|
|
189
|
+
/* */
|
|
190
|
+
/* */
|
|
191
|
+
/* */
|
|
192
|
+
/* */
|
|
193
|
+
/* */
|
|
194
|
+
/* */
|
|
195
|
+
/* */
|
|
196
|
+
/* */
|
|
197
|
+
/* */
|
|
198
|
+
/* */
|
|
199
|
+
/* */
|
|
200
|
+
/* */
|
|
201
|
+
/* */
|
|
202
|
+
/* */
|
|
203
|
+
/* */
|
|
204
|
+
/* */
|
|
205
|
+
/* */
|
|
206
|
+
/* */
|
|
207
|
+
/* */
|
|
208
|
+
/* */
|
|
209
|
+
/* */
|
|
210
|
+
/* */
|
|
211
|
+
/* */
|
|
212
|
+
/* */
|
|
213
|
+
/* */
|
|
214
|
+
/* */
|
|
215
|
+
/* */
|
|
216
|
+
/* */
|
|
217
|
+
/* */
|
|
218
|
+
/* */
|
|
219
|
+
/* */
|
|
220
|
+
/* */
|
|
221
|
+
/* */
|
|
222
|
+
/* */
|
|
223
|
+
/* */
|
|
224
|
+
/* */
|
|
225
|
+
return (void 0);
|
|
226
|
+
};
|
|
227
|
+
//#endregion
|
|
228
|
+
//#region utils npm / check if package version available
|
|
229
|
+
UtilsNpm.checkIfPackageVersionAvailable = async (pkgName, pkgVersion) => {
|
|
230
|
+
/* */
|
|
231
|
+
/* */
|
|
232
|
+
/* */
|
|
233
|
+
/* */
|
|
234
|
+
/* */
|
|
235
|
+
return (void 0);
|
|
236
|
+
};
|
|
237
|
+
//#endregion
|
|
238
|
+
//#region utils npm / get last major versions
|
|
239
|
+
UtilsNpm.getLastMajorVersions = async (pkgName) => {
|
|
240
|
+
/* */
|
|
241
|
+
/* */
|
|
242
|
+
/* */
|
|
243
|
+
/* */
|
|
244
|
+
/* */
|
|
245
|
+
/* */
|
|
246
|
+
/* */
|
|
247
|
+
/* */
|
|
248
|
+
/* */
|
|
249
|
+
/* */
|
|
250
|
+
return (void 0);
|
|
251
|
+
};
|
|
252
|
+
//#endregion
|
|
253
|
+
//#region helpers / get last minor versions for major
|
|
254
|
+
UtilsNpm.getLastMinorVersionsForMajor = async (majorVer, pkgName) => {
|
|
255
|
+
/* */
|
|
256
|
+
/* */
|
|
257
|
+
/* */
|
|
258
|
+
/* */
|
|
259
|
+
/* */
|
|
260
|
+
/* */
|
|
261
|
+
/* */
|
|
262
|
+
/* */
|
|
263
|
+
/* */
|
|
264
|
+
/* */
|
|
265
|
+
return (void 0);
|
|
266
|
+
};
|
|
267
|
+
UtilsNpm.getVerObj = (version) => {
|
|
268
|
+
/* */
|
|
269
|
+
/* */
|
|
270
|
+
/* */
|
|
271
|
+
/* */
|
|
272
|
+
/* */
|
|
273
|
+
/* */
|
|
274
|
+
/* */
|
|
275
|
+
/* */
|
|
276
|
+
/* */
|
|
277
|
+
/* */
|
|
278
|
+
/* */
|
|
279
|
+
/* */
|
|
280
|
+
/* */
|
|
281
|
+
/* */
|
|
282
|
+
/* */
|
|
283
|
+
return (void 0);
|
|
284
|
+
};
|
|
146
285
|
//#endregion
|
|
286
|
+
/**
|
|
287
|
+
* @deprecated TODO remvoe
|
|
288
|
+
*/
|
|
289
|
+
UtilsNpm.getLastVersions = async (pkgName, currentVerObj, latestVerObj) => {
|
|
290
|
+
/* */
|
|
291
|
+
/* */
|
|
292
|
+
/* */
|
|
293
|
+
/* */
|
|
294
|
+
/* */
|
|
295
|
+
/* */
|
|
296
|
+
/* */
|
|
297
|
+
/* */
|
|
298
|
+
/* */
|
|
299
|
+
/* */
|
|
300
|
+
/* */
|
|
301
|
+
/* */
|
|
302
|
+
/* */
|
|
303
|
+
/* */
|
|
304
|
+
/* */
|
|
305
|
+
/* */
|
|
306
|
+
/* */
|
|
307
|
+
/* */
|
|
308
|
+
/* */
|
|
309
|
+
/* */
|
|
310
|
+
/* */
|
|
311
|
+
/* */
|
|
312
|
+
/* */
|
|
313
|
+
/* */
|
|
314
|
+
/* */
|
|
315
|
+
/* */
|
|
316
|
+
/* */
|
|
317
|
+
/* */
|
|
318
|
+
/* */
|
|
319
|
+
/* */
|
|
320
|
+
/* */
|
|
321
|
+
/* */
|
|
322
|
+
/* */
|
|
323
|
+
/* */
|
|
324
|
+
/* */
|
|
325
|
+
/* */
|
|
326
|
+
/* */
|
|
327
|
+
return (void 0);
|
|
328
|
+
};
|
|
147
329
|
})(UtilsNpm || (UtilsNpm = {}));
|
|
148
330
|
//#endregion
|
|
149
331
|
//#region utils typescript
|
|
@@ -921,91 +1103,47 @@ var UtilsTypescript;
|
|
|
921
1103
|
return (void 0);
|
|
922
1104
|
};
|
|
923
1105
|
UtilsTypescript.recognizeImportsFromContent = (fileContent) => {
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
/* */
|
|
966
|
-
/* */
|
|
967
|
-
/* */
|
|
968
|
-
/* */
|
|
969
|
-
/* */
|
|
970
|
-
/* */
|
|
971
|
-
/* */
|
|
972
|
-
/* */
|
|
973
|
-
/* */
|
|
974
|
-
/* */
|
|
975
|
-
/* */
|
|
976
|
-
/* */
|
|
977
|
-
/* */
|
|
978
|
-
/* */
|
|
979
|
-
/* */
|
|
980
|
-
/* */
|
|
981
|
-
/* */
|
|
982
|
-
/* */
|
|
983
|
-
/* */
|
|
984
|
-
/* */
|
|
985
|
-
/* */
|
|
986
|
-
/* */
|
|
987
|
-
/* */
|
|
988
|
-
/* */
|
|
989
|
-
/* */
|
|
990
|
-
/* */
|
|
991
|
-
/* */
|
|
992
|
-
/* */
|
|
993
|
-
/* */
|
|
994
|
-
/* */
|
|
995
|
-
/* */
|
|
996
|
-
/* */
|
|
997
|
-
/* */
|
|
998
|
-
/* */
|
|
999
|
-
/* */
|
|
1000
|
-
/* */
|
|
1001
|
-
/* */
|
|
1002
|
-
/* */
|
|
1003
|
-
/* */
|
|
1004
|
-
/* */
|
|
1005
|
-
/* */
|
|
1006
|
-
/* */
|
|
1007
|
-
/* */
|
|
1008
|
-
return (void 0);
|
|
1106
|
+
if (!fileContent) {
|
|
1107
|
+
return [];
|
|
1108
|
+
}
|
|
1109
|
+
const sourceFile = createSourceFile('file.ts', // a name for the file
|
|
1110
|
+
fileContent, ScriptTarget.Latest, true);
|
|
1111
|
+
const results = [];
|
|
1112
|
+
const visit = (node) => {
|
|
1113
|
+
// Check for dynamic import expressions specifically
|
|
1114
|
+
if (isCallExpression(node) &&
|
|
1115
|
+
node.expression.kind === SyntaxKind.ImportKeyword) {
|
|
1116
|
+
const args = node.arguments;
|
|
1117
|
+
if (args.length) {
|
|
1118
|
+
const arg = args[0];
|
|
1119
|
+
const specifier = arg.getText(sourceFile);
|
|
1120
|
+
const parenthesisType = getQuoteType(specifier);
|
|
1121
|
+
results.push(new TsImportExport('async-import', specifier, sourceFile.getLineAndCharacterOfPosition(node.getStart()), sourceFile.getLineAndCharacterOfPosition(node.getEnd()), parenthesisType));
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
if (isImportDeclaration(node) || isExportDeclaration(node)) {
|
|
1125
|
+
const specifier = node.moduleSpecifier
|
|
1126
|
+
? node.moduleSpecifier.getText(sourceFile)
|
|
1127
|
+
: '';
|
|
1128
|
+
const parenthesisType = getQuoteType(specifier);
|
|
1129
|
+
const type = node.kind === SyntaxKind.ImportDeclaration ? 'import' : 'export';
|
|
1130
|
+
const importExportElements = extractImportExportElements(node);
|
|
1131
|
+
results.push(new TsImportExport(type, specifier, sourceFile.getLineAndCharacterOfPosition(node.getStart()), sourceFile.getLineAndCharacterOfPosition(node.getEnd()), parenthesisType, importExportElements));
|
|
1132
|
+
}
|
|
1133
|
+
if (isCallExpression(node) &&
|
|
1134
|
+
node.expression.getText(sourceFile) === 'require') {
|
|
1135
|
+
const args = node.arguments;
|
|
1136
|
+
if (args.length > 0) {
|
|
1137
|
+
const arg = args[0];
|
|
1138
|
+
const specifier = arg.getText(sourceFile);
|
|
1139
|
+
const parenthesisType = getQuoteType(specifier);
|
|
1140
|
+
results.push(new TsImportExport('require', specifier, sourceFile.getLineAndCharacterOfPosition(arg.getStart()), sourceFile.getLineAndCharacterOfPosition(arg.getEnd()), parenthesisType));
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
forEachChild(node, visit);
|
|
1144
|
+
};
|
|
1145
|
+
forEachChild(sourceFile, visit);
|
|
1146
|
+
return results;
|
|
1009
1147
|
};
|
|
1010
1148
|
//#endregion
|
|
1011
1149
|
/**
|
|
@@ -1409,13 +1547,7 @@ var UtilsMd;
|
|
|
1409
1547
|
* @param level - The number of levels to go up (default is 1).
|
|
1410
1548
|
* @returns The modified content with updated asset paths.
|
|
1411
1549
|
*/
|
|
1412
|
-
UtilsMd.
|
|
1413
|
-
/* */
|
|
1414
|
-
/* */
|
|
1415
|
-
/* */
|
|
1416
|
-
/* */
|
|
1417
|
-
/* */
|
|
1418
|
-
/* */
|
|
1550
|
+
UtilsMd.moveAssetsPathsToLevel = (mdfileContent, level = 1) => {
|
|
1419
1551
|
/* */
|
|
1420
1552
|
/* */
|
|
1421
1553
|
/* */
|
|
@@ -2753,6 +2885,18 @@ var UtilsFileSync;
|
|
|
2753
2885
|
/* */
|
|
2754
2886
|
/* */
|
|
2755
2887
|
/* */
|
|
2888
|
+
/* */
|
|
2889
|
+
/* */
|
|
2890
|
+
/* */
|
|
2891
|
+
/* */
|
|
2892
|
+
/* */
|
|
2893
|
+
/* */
|
|
2894
|
+
/* */
|
|
2895
|
+
/* */
|
|
2896
|
+
/* */
|
|
2897
|
+
/* */
|
|
2898
|
+
/* */
|
|
2899
|
+
/* */
|
|
2756
2900
|
return (void 0);
|
|
2757
2901
|
};
|
|
2758
2902
|
//#endregion
|
|
@@ -5345,11 +5489,6 @@ applyMixins(HelpersTaon, [
|
|
|
5345
5489
|
//#endregion
|
|
5346
5490
|
// prettier-ignore-end
|
|
5347
5491
|
|
|
5348
|
-
/* */
|
|
5349
|
-
/* */
|
|
5350
|
-
/* */
|
|
5351
|
-
/* */
|
|
5352
|
-
/* */
|
|
5353
5492
|
//#endregion
|
|
5354
5493
|
class BaseDb {
|
|
5355
5494
|
constructor(ins, dbName, defaultDb) {
|
|
@@ -5371,6 +5510,9 @@ class BaseDb {
|
|
|
5371
5510
|
/* */
|
|
5372
5511
|
/* */
|
|
5373
5512
|
/* */
|
|
5513
|
+
/* */
|
|
5514
|
+
/* */
|
|
5515
|
+
/* */
|
|
5374
5516
|
return (void 0);
|
|
5375
5517
|
}
|
|
5376
5518
|
}
|
|
@@ -7452,7 +7594,7 @@ const PROJECT_NPM_NAME = 'tnp-helpers';
|
|
|
7452
7594
|
/**
|
|
7453
7595
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
7454
7596
|
*/
|
|
7455
|
-
const CURRENT_PACKAGE_VERSION = '
|
|
7597
|
+
const CURRENT_PACKAGE_VERSION = '21.0.2';
|
|
7456
7598
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
7457
7599
|
|
|
7458
7600
|
//#endregion
|
|
@@ -11801,6 +11943,9 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
11801
11943
|
/* */
|
|
11802
11944
|
/* */
|
|
11803
11945
|
/* */
|
|
11946
|
+
/* */
|
|
11947
|
+
/* */
|
|
11948
|
+
/* */
|
|
11804
11949
|
return (void 0);
|
|
11805
11950
|
}
|
|
11806
11951
|
//#region methods & getters / has action commits to melt
|
|
@@ -12831,7 +12976,14 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
12831
12976
|
}
|
|
12832
12977
|
//#endregion
|
|
12833
12978
|
//#region methods & getters / get changes summary
|
|
12834
|
-
async changesSummary() {
|
|
12979
|
+
async changesSummary(options) {
|
|
12980
|
+
/* */
|
|
12981
|
+
/* */
|
|
12982
|
+
/* */
|
|
12983
|
+
/* */
|
|
12984
|
+
/* */
|
|
12985
|
+
/* */
|
|
12986
|
+
/* */
|
|
12835
12987
|
/* */
|
|
12836
12988
|
/* */
|
|
12837
12989
|
/* */
|
|
@@ -13348,6 +13500,7 @@ class BaseVscodeHelpers extends BaseFeatureForProject {
|
|
|
13348
13500
|
/* */
|
|
13349
13501
|
/* */
|
|
13350
13502
|
/* */
|
|
13503
|
+
/* */
|
|
13351
13504
|
]).map(c => c.toLowerCase());
|
|
13352
13505
|
}
|
|
13353
13506
|
//#endregion
|
|
@@ -13936,6 +14089,9 @@ class BaseVscodeHelpers extends BaseFeatureForProject {
|
|
|
13936
14089
|
// 'tslint.autoFixOnSave': false,
|
|
13937
14090
|
// 'tslint.enable': false,
|
|
13938
14091
|
// 'tslint.alwaysShowRuleFailuresAsWarnings': false,
|
|
14092
|
+
// 'github.copilot.nextEditSuggestions.enabled': true,
|
|
14093
|
+
// 'github.copilot.chat.languageContext.inline.typescript.enabled': true,
|
|
14094
|
+
// 'github.copilot.chat.languageContext.typescript.enabled': true,
|
|
13939
14095
|
};
|
|
13940
14096
|
settings['search.useIgnoreFiles'] = false;
|
|
13941
14097
|
settings['search.include'] = ['**/src/**'];
|
|
@@ -15855,11 +16011,7 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
15855
16011
|
return (void 0);
|
|
15856
16012
|
}
|
|
15857
16013
|
//#endregion
|
|
15858
|
-
|
|
15859
|
-
/**
|
|
15860
|
-
* quick git update push
|
|
15861
|
-
*/
|
|
15862
|
-
async _update(commitMessage, force = false) {
|
|
16014
|
+
async updateProject(project, options) {
|
|
15863
16015
|
/* */
|
|
15864
16016
|
/* */
|
|
15865
16017
|
/* */
|
|
@@ -15875,30 +16027,15 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
15875
16027
|
/* */
|
|
15876
16028
|
/* */
|
|
15877
16029
|
/* */
|
|
15878
|
-
return (void 0);
|
|
15879
|
-
}
|
|
15880
|
-
async forceup() {
|
|
15881
|
-
await this.forceUpdate();
|
|
15882
|
-
}
|
|
15883
|
-
async forceUpdate() {
|
|
15884
16030
|
/* */
|
|
15885
16031
|
/* */
|
|
15886
16032
|
/* */
|
|
15887
16033
|
/* */
|
|
15888
16034
|
/* */
|
|
15889
|
-
return (void 0);
|
|
15890
|
-
}
|
|
15891
|
-
async update() {
|
|
15892
16035
|
/* */
|
|
15893
16036
|
/* */
|
|
15894
|
-
return (void 0);
|
|
15895
|
-
}
|
|
15896
|
-
async docsUp() {
|
|
15897
16037
|
/* */
|
|
15898
16038
|
/* */
|
|
15899
|
-
return (void 0);
|
|
15900
|
-
}
|
|
15901
|
-
async updateProject(project, force = false) {
|
|
15902
16039
|
/* */
|
|
15903
16040
|
/* */
|
|
15904
16041
|
/* */
|
|
@@ -15921,39 +16058,16 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
15921
16058
|
/* */
|
|
15922
16059
|
/* */
|
|
15923
16060
|
/* */
|
|
15924
|
-
return (void 0);
|
|
15925
|
-
}
|
|
15926
|
-
async deepUp(noExit = false) {
|
|
15927
16061
|
/* */
|
|
15928
16062
|
/* */
|
|
15929
|
-
return (void 0);
|
|
15930
|
-
}
|
|
15931
|
-
async upAll(noExit = false) {
|
|
15932
16063
|
/* */
|
|
15933
16064
|
/* */
|
|
15934
|
-
return (void 0);
|
|
15935
|
-
}
|
|
15936
|
-
async deepUpForce(noExit = false) {
|
|
15937
|
-
/* */
|
|
15938
|
-
/* */
|
|
15939
|
-
return (void 0);
|
|
15940
|
-
}
|
|
15941
|
-
async deepUpdateForce(noExit = false) {
|
|
15942
16065
|
/* */
|
|
15943
16066
|
/* */
|
|
15944
16067
|
/* */
|
|
15945
16068
|
/* */
|
|
15946
16069
|
/* */
|
|
15947
16070
|
/* */
|
|
15948
|
-
/* */
|
|
15949
|
-
/* */
|
|
15950
|
-
/* */
|
|
15951
|
-
/* */
|
|
15952
|
-
/* */
|
|
15953
|
-
/* */
|
|
15954
|
-
return (void 0);
|
|
15955
|
-
}
|
|
15956
|
-
async deepUpdate(noExit = false) {
|
|
15957
16071
|
/* */
|
|
15958
16072
|
/* */
|
|
15959
16073
|
/* */
|
|
@@ -15966,21 +16080,111 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
15966
16080
|
/* */
|
|
15967
16081
|
return (void 0);
|
|
15968
16082
|
}
|
|
16083
|
+
//#region commands / force update
|
|
16084
|
+
async forceUpdate() {
|
|
16085
|
+
if (!(await this.cwdIsProject({ requireProjectWithGitRoot: true }))) {
|
|
16086
|
+
return;
|
|
16087
|
+
}
|
|
16088
|
+
await this.updateProject(this.project, {
|
|
16089
|
+
force: true,
|
|
16090
|
+
});
|
|
16091
|
+
this._exit();
|
|
16092
|
+
}
|
|
16093
|
+
/**
|
|
16094
|
+
* alias for forceupdate
|
|
16095
|
+
*/
|
|
16096
|
+
async forceup() {
|
|
16097
|
+
await this.forceUpdate();
|
|
16098
|
+
}
|
|
16099
|
+
//#endregion
|
|
16100
|
+
//#region commands / update
|
|
16101
|
+
async update() {
|
|
16102
|
+
if (!(await this.cwdIsProject({ requireProjectWithGitRoot: true }))) {
|
|
16103
|
+
return;
|
|
16104
|
+
}
|
|
16105
|
+
await this.updateProject(this.project);
|
|
16106
|
+
this._exit();
|
|
16107
|
+
}
|
|
15969
16108
|
/**
|
|
15970
|
-
*
|
|
16109
|
+
* alias for update
|
|
15971
16110
|
*/
|
|
15972
16111
|
async up() {
|
|
15973
|
-
|
|
15974
|
-
/* */
|
|
15975
|
-
return (void 0);
|
|
16112
|
+
await this.update();
|
|
15976
16113
|
}
|
|
15977
16114
|
/**
|
|
15978
|
-
*
|
|
16115
|
+
* alias for update
|
|
15979
16116
|
*/
|
|
15980
16117
|
async pu() {
|
|
15981
|
-
|
|
15982
|
-
|
|
15983
|
-
|
|
16118
|
+
await this.update();
|
|
16119
|
+
}
|
|
16120
|
+
//#endregion
|
|
16121
|
+
//#region commands / docs update
|
|
16122
|
+
async docsUpdate() {
|
|
16123
|
+
if (!(await this.cwdIsProject({ requireProjectWithGitRoot: true }))) {
|
|
16124
|
+
return;
|
|
16125
|
+
}
|
|
16126
|
+
await this.updateProject(this.project, {
|
|
16127
|
+
commitType: 'docs',
|
|
16128
|
+
});
|
|
16129
|
+
this._exit();
|
|
16130
|
+
}
|
|
16131
|
+
/**
|
|
16132
|
+
* alias for docsUpdate
|
|
16133
|
+
*/
|
|
16134
|
+
async docsUp() {
|
|
16135
|
+
await this.docsUpdate();
|
|
16136
|
+
}
|
|
16137
|
+
//#endregion
|
|
16138
|
+
//#region commands / deep update
|
|
16139
|
+
async deepUpdate() {
|
|
16140
|
+
if (!(await this.cwdIsProject({ requireProjectWithGitRoot: true }))) {
|
|
16141
|
+
return;
|
|
16142
|
+
}
|
|
16143
|
+
await this.updateProject(this.project, {
|
|
16144
|
+
updateType: 'deep',
|
|
16145
|
+
});
|
|
16146
|
+
this._exit();
|
|
16147
|
+
}
|
|
16148
|
+
/**
|
|
16149
|
+
* alias for deepupdate
|
|
16150
|
+
*/
|
|
16151
|
+
async deepUp() {
|
|
16152
|
+
await this.deepUpdate();
|
|
16153
|
+
}
|
|
16154
|
+
//#endregion
|
|
16155
|
+
//#region commands / update all
|
|
16156
|
+
async updateAll() {
|
|
16157
|
+
if (!(await this.cwdIsProject({ requireProjectWithGitRoot: true }))) {
|
|
16158
|
+
return;
|
|
16159
|
+
}
|
|
16160
|
+
await this.updateProject(this.project, {
|
|
16161
|
+
updateType: 'first-level',
|
|
16162
|
+
});
|
|
16163
|
+
this._exit();
|
|
16164
|
+
}
|
|
16165
|
+
/**
|
|
16166
|
+
* alias for updateAll
|
|
16167
|
+
*/
|
|
16168
|
+
async upAll() {
|
|
16169
|
+
await this.updateAll();
|
|
16170
|
+
}
|
|
16171
|
+
//#endregion
|
|
16172
|
+
//#region commands / deep update force
|
|
16173
|
+
async deepUpdateForce() {
|
|
16174
|
+
if (!(await this.cwdIsProject({ requireProjectWithGitRoot: true }))) {
|
|
16175
|
+
return;
|
|
16176
|
+
}
|
|
16177
|
+
await this.updateProject(this.project, {
|
|
16178
|
+
updateType: 'deep',
|
|
16179
|
+
force: true,
|
|
16180
|
+
});
|
|
16181
|
+
this._exit();
|
|
16182
|
+
}
|
|
16183
|
+
/**
|
|
16184
|
+
* alias for deepUpdateForce
|
|
16185
|
+
*/
|
|
16186
|
+
async deepUpForce() {
|
|
16187
|
+
await this.deepUpdateForce();
|
|
15984
16188
|
}
|
|
15985
16189
|
//#endregion
|
|
15986
16190
|
//#region commands / develop
|
|
@@ -16949,6 +17153,16 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
16949
17153
|
return (void 0);
|
|
16950
17154
|
}
|
|
16951
17155
|
//#endregion
|
|
17156
|
+
//#region copy and rename (vscode option)
|
|
17157
|
+
async $COPY_AND_RENAME() {
|
|
17158
|
+
/* */
|
|
17159
|
+
/* */
|
|
17160
|
+
/* */
|
|
17161
|
+
/* */
|
|
17162
|
+
/* */
|
|
17163
|
+
return (void 0);
|
|
17164
|
+
}
|
|
17165
|
+
//#endregion
|
|
16952
17166
|
//#region commands / rename origin
|
|
16953
17167
|
async RENAME_ORIGIN() {
|
|
16954
17168
|
/* */
|
|
@@ -17676,6 +17890,42 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
17676
17890
|
return (void 0);
|
|
17677
17891
|
}
|
|
17678
17892
|
//#endregion
|
|
17893
|
+
symlink() {
|
|
17894
|
+
/* */
|
|
17895
|
+
/* */
|
|
17896
|
+
/* */
|
|
17897
|
+
/* */
|
|
17898
|
+
/* */
|
|
17899
|
+
/* */
|
|
17900
|
+
/* */
|
|
17901
|
+
/* */
|
|
17902
|
+
/* */
|
|
17903
|
+
/* */
|
|
17904
|
+
/* */
|
|
17905
|
+
/* */
|
|
17906
|
+
/* */
|
|
17907
|
+
/* */
|
|
17908
|
+
/* */
|
|
17909
|
+
/* */
|
|
17910
|
+
/* */
|
|
17911
|
+
/* */
|
|
17912
|
+
/* */
|
|
17913
|
+
/* */
|
|
17914
|
+
/* */
|
|
17915
|
+
/* */
|
|
17916
|
+
/* */
|
|
17917
|
+
/* */
|
|
17918
|
+
/* */
|
|
17919
|
+
/* */
|
|
17920
|
+
/* */
|
|
17921
|
+
/* */
|
|
17922
|
+
/* */
|
|
17923
|
+
/* */
|
|
17924
|
+
/* */
|
|
17925
|
+
/* */
|
|
17926
|
+
/* */
|
|
17927
|
+
return (void 0);
|
|
17928
|
+
}
|
|
17679
17929
|
//#region commands / remove symlinks
|
|
17680
17930
|
removeSymlinksDryRun() {
|
|
17681
17931
|
/* */
|