tnp-helpers 16.5.30 → 16.100.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/assets/shared/shared_folder_info.txt +1 -1
- package/browser/esm2022/lib/base/base-project.mjs +213 -1
- package/browser/esm2022/lib/base/commit-data.mjs +46 -3
- package/browser/fesm2022/tnp-helpers.mjs +257 -2
- package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
- package/browser/lib/base/base-project.d.ts +30 -0
- package/browser/lib/base/commit-data.d.ts +3 -1
- package/client/esm2022/lib/base/base-project.mjs +213 -1
- package/client/esm2022/lib/base/commit-data.mjs +46 -3
- package/client/fesm2022/tnp-helpers.mjs +257 -2
- package/client/fesm2022/tnp-helpers.mjs.map +1 -1
- package/client/lib/base/base-project.d.ts +30 -0
- package/client/lib/base/commit-data.d.ts +3 -1
- package/client/package.json +123 -173
- package/lib/base/base-project.d.ts +31 -1
- package/lib/base/base-project.js +312 -0
- package/lib/base/base-project.js.map +1 -1
- package/lib/base/commit-data.d.ts +3 -1
- package/lib/base/commit-data.js +62 -21
- package/lib/base/commit-data.js.map +1 -1
- package/lib/for-backend/helpers-git.backend.js +4 -4
- package/lib/for-backend/helpers-git.backend.js.map +1 -1
- package/lib/for-backend/helpers-process.backend.d.ts +0 -3
- package/lib/for-backend/helpers-process.backend.js +0 -42
- package/lib/for-backend/helpers-process.backend.js.map +1 -1
- package/lib/for-browser/angular.helper.js +3 -3
- package/lib/helpers.js +1 -1
- package/lib/helpers.js.map +1 -1
- package/lib/old/base-component.js +3 -3
- package/lib/old/base-formly-component.js +3 -3
- package/lib/old/dual-component-ctrl.js +3 -3
- package/package.json +4 -5
- package/tmp-environment.json +127 -177
- package/websql/esm2022/lib/base/base-project.mjs +213 -1
- package/websql/esm2022/lib/base/commit-data.mjs +46 -3
- package/websql/fesm2022/tnp-helpers.mjs +257 -2
- package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
- package/websql/lib/base/base-project.d.ts +30 -0
- package/websql/lib/base/commit-data.d.ts +3 -1
|
@@ -2178,6 +2178,218 @@ ${proj?.children.map(c => '+' + c.genericName).join('\n')}
|
|
|
2178
2178
|
useGitBranchesAsMetadataForCommits() {
|
|
2179
2179
|
return true;
|
|
2180
2180
|
}
|
|
2181
|
+
/**
|
|
2182
|
+
* angular libraries from angular.json
|
|
2183
|
+
*/
|
|
2184
|
+
get libraries() {
|
|
2185
|
+
/* */
|
|
2186
|
+
/* */
|
|
2187
|
+
/* */
|
|
2188
|
+
/* */
|
|
2189
|
+
/* */
|
|
2190
|
+
/* */
|
|
2191
|
+
/* */
|
|
2192
|
+
/* */
|
|
2193
|
+
/* */
|
|
2194
|
+
return (void 0);
|
|
2195
|
+
}
|
|
2196
|
+
get sortedLibrariesByDeps() {
|
|
2197
|
+
/* */
|
|
2198
|
+
/* */
|
|
2199
|
+
/* */
|
|
2200
|
+
/* */
|
|
2201
|
+
/* */
|
|
2202
|
+
/* */
|
|
2203
|
+
/* */
|
|
2204
|
+
/* */
|
|
2205
|
+
/* */
|
|
2206
|
+
/* */
|
|
2207
|
+
/* */
|
|
2208
|
+
/* */
|
|
2209
|
+
/* */
|
|
2210
|
+
/* */
|
|
2211
|
+
/* */
|
|
2212
|
+
/* */
|
|
2213
|
+
/* */
|
|
2214
|
+
/* */
|
|
2215
|
+
/* */
|
|
2216
|
+
/* */
|
|
2217
|
+
/* */
|
|
2218
|
+
/* */
|
|
2219
|
+
/* */
|
|
2220
|
+
/* */
|
|
2221
|
+
/* */
|
|
2222
|
+
/* */
|
|
2223
|
+
/* */
|
|
2224
|
+
/* */
|
|
2225
|
+
/* */
|
|
2226
|
+
/* */
|
|
2227
|
+
return (void 0);
|
|
2228
|
+
}
|
|
2229
|
+
async getSortedLibrariesByDepsForBuild() {
|
|
2230
|
+
/* */
|
|
2231
|
+
/* */
|
|
2232
|
+
/* */
|
|
2233
|
+
/* */
|
|
2234
|
+
/* */
|
|
2235
|
+
/* */
|
|
2236
|
+
/* */
|
|
2237
|
+
/* */
|
|
2238
|
+
/* */
|
|
2239
|
+
/* */
|
|
2240
|
+
/* */
|
|
2241
|
+
/* */
|
|
2242
|
+
/* */
|
|
2243
|
+
/* */
|
|
2244
|
+
/* */
|
|
2245
|
+
/* */
|
|
2246
|
+
/* */
|
|
2247
|
+
/* */
|
|
2248
|
+
/* */
|
|
2249
|
+
/* */
|
|
2250
|
+
/* */
|
|
2251
|
+
/* */
|
|
2252
|
+
/* */
|
|
2253
|
+
/* */
|
|
2254
|
+
/* */
|
|
2255
|
+
/* */
|
|
2256
|
+
/* */
|
|
2257
|
+
/* */
|
|
2258
|
+
/* */
|
|
2259
|
+
/* */
|
|
2260
|
+
/* */
|
|
2261
|
+
/* */
|
|
2262
|
+
/* */
|
|
2263
|
+
/* */
|
|
2264
|
+
/* */
|
|
2265
|
+
/* */
|
|
2266
|
+
/* */
|
|
2267
|
+
/* */
|
|
2268
|
+
/* */
|
|
2269
|
+
/* */
|
|
2270
|
+
/* */
|
|
2271
|
+
/* */
|
|
2272
|
+
/* */
|
|
2273
|
+
/* */
|
|
2274
|
+
/* */
|
|
2275
|
+
/* */
|
|
2276
|
+
return (void 0);
|
|
2277
|
+
}
|
|
2278
|
+
get getLibraryBuildSuccessComamnd() {
|
|
2279
|
+
/* */
|
|
2280
|
+
/* */
|
|
2281
|
+
/* */
|
|
2282
|
+
/* */
|
|
2283
|
+
/* */
|
|
2284
|
+
/* */
|
|
2285
|
+
/* */
|
|
2286
|
+
return (void 0);
|
|
2287
|
+
}
|
|
2288
|
+
async buildLibraries({ rebuild = false, watch = false, strategy } = {}) {
|
|
2289
|
+
/* */
|
|
2290
|
+
/* */
|
|
2291
|
+
/* */
|
|
2292
|
+
/* */
|
|
2293
|
+
/* */
|
|
2294
|
+
/* */
|
|
2295
|
+
/* */
|
|
2296
|
+
/* */
|
|
2297
|
+
/* */
|
|
2298
|
+
/* */
|
|
2299
|
+
/* */
|
|
2300
|
+
/* */
|
|
2301
|
+
/* */
|
|
2302
|
+
/* */
|
|
2303
|
+
/* */
|
|
2304
|
+
/* */
|
|
2305
|
+
/* */
|
|
2306
|
+
/* */
|
|
2307
|
+
/* */
|
|
2308
|
+
/* */
|
|
2309
|
+
/* */
|
|
2310
|
+
/* */
|
|
2311
|
+
/* */
|
|
2312
|
+
/* */
|
|
2313
|
+
/* */
|
|
2314
|
+
/* */
|
|
2315
|
+
/* */
|
|
2316
|
+
/* */
|
|
2317
|
+
/* */
|
|
2318
|
+
/* */
|
|
2319
|
+
/* */
|
|
2320
|
+
/* */
|
|
2321
|
+
/* */
|
|
2322
|
+
/* */
|
|
2323
|
+
/* */
|
|
2324
|
+
/* */
|
|
2325
|
+
/* */
|
|
2326
|
+
/* */
|
|
2327
|
+
/* */
|
|
2328
|
+
/* */
|
|
2329
|
+
/* */
|
|
2330
|
+
/* */
|
|
2331
|
+
/* */
|
|
2332
|
+
/* */
|
|
2333
|
+
/* */
|
|
2334
|
+
/* */
|
|
2335
|
+
/* */
|
|
2336
|
+
/* */
|
|
2337
|
+
/* */
|
|
2338
|
+
/* */
|
|
2339
|
+
/* */
|
|
2340
|
+
/* */
|
|
2341
|
+
/* */
|
|
2342
|
+
/* */
|
|
2343
|
+
/* */
|
|
2344
|
+
/* */
|
|
2345
|
+
/* */
|
|
2346
|
+
/* */
|
|
2347
|
+
/* */
|
|
2348
|
+
/* */
|
|
2349
|
+
/* */
|
|
2350
|
+
/* */
|
|
2351
|
+
/* */
|
|
2352
|
+
/* */
|
|
2353
|
+
/* */
|
|
2354
|
+
/* */
|
|
2355
|
+
/* */
|
|
2356
|
+
/* */
|
|
2357
|
+
/* */
|
|
2358
|
+
/* */
|
|
2359
|
+
/* */
|
|
2360
|
+
/* */
|
|
2361
|
+
/* */
|
|
2362
|
+
/* */
|
|
2363
|
+
/* */
|
|
2364
|
+
/* */
|
|
2365
|
+
/* */
|
|
2366
|
+
/* */
|
|
2367
|
+
/* */
|
|
2368
|
+
/* */
|
|
2369
|
+
/* */
|
|
2370
|
+
/* */
|
|
2371
|
+
/* */
|
|
2372
|
+
/* */
|
|
2373
|
+
/* */
|
|
2374
|
+
/* */
|
|
2375
|
+
/* */
|
|
2376
|
+
/* */
|
|
2377
|
+
/* */
|
|
2378
|
+
/* */
|
|
2379
|
+
/* */
|
|
2380
|
+
}
|
|
2381
|
+
getLibraryBuildComamnd(options) {
|
|
2382
|
+
/* */
|
|
2383
|
+
/* */
|
|
2384
|
+
/* */
|
|
2385
|
+
/* */
|
|
2386
|
+
/* */
|
|
2387
|
+
/* */
|
|
2388
|
+
/* */
|
|
2389
|
+
/* */
|
|
2390
|
+
/* */
|
|
2391
|
+
return (void 0);
|
|
2392
|
+
}
|
|
2181
2393
|
}
|
|
2182
2394
|
;
|
|
2183
2395
|
({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-project.ts
|
|
@@ -2190,6 +2402,7 @@ class BaseFeatureForProject {
|
|
|
2190
2402
|
;
|
|
2191
2403
|
({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-feature-for-project.ts
|
|
2192
2404
|
|
|
2405
|
+
const regexTeamsID = /[A-Z0-9]+\#/;
|
|
2193
2406
|
const regexCommitModuleInArgs = /\[[a-z|\-]+\]/;
|
|
2194
2407
|
const regexCommitModuleInBranch = /\-\-[a-z|\-]+\-\-/;
|
|
2195
2408
|
class CommitData {
|
|
@@ -2217,6 +2430,15 @@ class CommitData {
|
|
|
2217
2430
|
commitMsg = commitMsg.replace('http://', '');
|
|
2218
2431
|
return commitMsg;
|
|
2219
2432
|
}
|
|
2433
|
+
static getTeamsIdFrom(commitMsg) {
|
|
2434
|
+
let teamID = _.first(commitMsg.match(regexTeamsID));
|
|
2435
|
+
if (teamID) {
|
|
2436
|
+
commitMsg = commitMsg.replace(teamID, '');
|
|
2437
|
+
}
|
|
2438
|
+
return {
|
|
2439
|
+
commitMsgOrBranchName: commitMsg, teamID
|
|
2440
|
+
};
|
|
2441
|
+
}
|
|
2220
2442
|
static getModuleNameFrom(commitMsg) {
|
|
2221
2443
|
let commitModuleName = _.first(commitMsg.match(regexCommitModuleInArgs));
|
|
2222
2444
|
if (commitModuleName) {
|
|
@@ -2229,9 +2451,13 @@ class CommitData {
|
|
|
2229
2451
|
static getModuleNameFromBranch(branchName) {
|
|
2230
2452
|
let commitModuleName = _.first(branchName.match(regexCommitModuleInBranch));
|
|
2231
2453
|
if (commitModuleName) {
|
|
2232
|
-
branchName = branchName.replace(commitModuleName, '
|
|
2454
|
+
branchName = branchName.replace(commitModuleName, '');
|
|
2455
|
+
commitModuleName = commitModuleName?.replace(/^\-\-/, '')?.replace(/\-\-$/, '');
|
|
2456
|
+
if (commitModuleName.startsWith('-')) {
|
|
2457
|
+
commitModuleName = commitModuleName.replace(/^\-/, '');
|
|
2458
|
+
}
|
|
2233
2459
|
}
|
|
2234
|
-
return {
|
|
2460
|
+
return { commitModuleName: commitModuleName?.replace(/^\-\-/, '')?.replace(/\-\-$/, '') };
|
|
2235
2461
|
}
|
|
2236
2462
|
static async getFromArgs(args, typeOfCommit) {
|
|
2237
2463
|
/* */
|
|
@@ -2267,6 +2493,10 @@ class CommitData {
|
|
|
2267
2493
|
/* */
|
|
2268
2494
|
/* */
|
|
2269
2495
|
/* */
|
|
2496
|
+
/* */
|
|
2497
|
+
/* */
|
|
2498
|
+
/* */
|
|
2499
|
+
/* */
|
|
2270
2500
|
return (void 0);
|
|
2271
2501
|
}
|
|
2272
2502
|
static async getFromBranch(currentBranchName) {
|
|
@@ -2302,6 +2532,7 @@ class CommitData {
|
|
|
2302
2532
|
/* */
|
|
2303
2533
|
/* */
|
|
2304
2534
|
/* */
|
|
2535
|
+
/* */
|
|
2305
2536
|
return (void 0);
|
|
2306
2537
|
}
|
|
2307
2538
|
static from(options) {
|
|
@@ -2310,6 +2541,10 @@ class CommitData {
|
|
|
2310
2541
|
return opt;
|
|
2311
2542
|
}
|
|
2312
2543
|
clearMessage(message) {
|
|
2544
|
+
if (this.teamID && _.isString(this.teamID)) {
|
|
2545
|
+
message = message.replace(this.teamID.toLowerCase().replace('-', ' '), ' ');
|
|
2546
|
+
message = message.replace(this.teamID.toUpperCase().replace('-', ' '), ' ');
|
|
2547
|
+
}
|
|
2313
2548
|
for (const jira of (this.jiraNumbers || [])) {
|
|
2314
2549
|
message = message.replace(jira.toLowerCase().replace('-', ' '), ' ');
|
|
2315
2550
|
message = message.replace(jira.toUpperCase().replace('-', ' '), ' ');
|
|
@@ -2319,6 +2554,12 @@ class CommitData {
|
|
|
2319
2554
|
message = message.replace(regexCommitModuleInBranch, ' ');
|
|
2320
2555
|
message = message.replace(/\ \ /g, ' ');
|
|
2321
2556
|
}
|
|
2557
|
+
if (this.teamID && _.isString(this.teamID)) {
|
|
2558
|
+
message = message.replace(/\_/g, ' ');
|
|
2559
|
+
}
|
|
2560
|
+
if (this.commitModuleName) {
|
|
2561
|
+
message = message.replace(this.commitModuleName.replace(/\-/g, ' '), ' ');
|
|
2562
|
+
}
|
|
2322
2563
|
return message;
|
|
2323
2564
|
}
|
|
2324
2565
|
/**
|
|
@@ -2361,9 +2602,23 @@ class CommitData {
|
|
|
2361
2602
|
/* */
|
|
2362
2603
|
/* */
|
|
2363
2604
|
/* */
|
|
2605
|
+
/* */
|
|
2606
|
+
/* */
|
|
2607
|
+
/* */
|
|
2608
|
+
/* */
|
|
2609
|
+
/* */
|
|
2610
|
+
/* */
|
|
2611
|
+
/* */
|
|
2364
2612
|
return (void 0);
|
|
2365
2613
|
}
|
|
2366
2614
|
get branchName() {
|
|
2615
|
+
/* */
|
|
2616
|
+
/* */
|
|
2617
|
+
/* */
|
|
2618
|
+
/* */
|
|
2619
|
+
/* */
|
|
2620
|
+
/* */
|
|
2621
|
+
/* */
|
|
2367
2622
|
/* */
|
|
2368
2623
|
/* */
|
|
2369
2624
|
/* */
|