tnp-helpers 16.5.30 → 16.100.1
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
|
@@ -2195,6 +2195,218 @@ ${proj?.children.map(c => '+' + c.genericName).join('\n')}
|
|
|
2195
2195
|
useGitBranchesAsMetadataForCommits() {
|
|
2196
2196
|
return true;
|
|
2197
2197
|
}
|
|
2198
|
+
/**
|
|
2199
|
+
* angular libraries from angular.json
|
|
2200
|
+
*/
|
|
2201
|
+
get libraries() {
|
|
2202
|
+
/* */
|
|
2203
|
+
/* */
|
|
2204
|
+
/* */
|
|
2205
|
+
/* */
|
|
2206
|
+
/* */
|
|
2207
|
+
/* */
|
|
2208
|
+
/* */
|
|
2209
|
+
/* */
|
|
2210
|
+
/* */
|
|
2211
|
+
return (void 0);
|
|
2212
|
+
}
|
|
2213
|
+
get sortedLibrariesByDeps() {
|
|
2214
|
+
/* */
|
|
2215
|
+
/* */
|
|
2216
|
+
/* */
|
|
2217
|
+
/* */
|
|
2218
|
+
/* */
|
|
2219
|
+
/* */
|
|
2220
|
+
/* */
|
|
2221
|
+
/* */
|
|
2222
|
+
/* */
|
|
2223
|
+
/* */
|
|
2224
|
+
/* */
|
|
2225
|
+
/* */
|
|
2226
|
+
/* */
|
|
2227
|
+
/* */
|
|
2228
|
+
/* */
|
|
2229
|
+
/* */
|
|
2230
|
+
/* */
|
|
2231
|
+
/* */
|
|
2232
|
+
/* */
|
|
2233
|
+
/* */
|
|
2234
|
+
/* */
|
|
2235
|
+
/* */
|
|
2236
|
+
/* */
|
|
2237
|
+
/* */
|
|
2238
|
+
/* */
|
|
2239
|
+
/* */
|
|
2240
|
+
/* */
|
|
2241
|
+
/* */
|
|
2242
|
+
/* */
|
|
2243
|
+
/* */
|
|
2244
|
+
return (void 0);
|
|
2245
|
+
}
|
|
2246
|
+
async getSortedLibrariesByDepsForBuild() {
|
|
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
|
+
/* */
|
|
2277
|
+
/* */
|
|
2278
|
+
/* */
|
|
2279
|
+
/* */
|
|
2280
|
+
/* */
|
|
2281
|
+
/* */
|
|
2282
|
+
/* */
|
|
2283
|
+
/* */
|
|
2284
|
+
/* */
|
|
2285
|
+
/* */
|
|
2286
|
+
/* */
|
|
2287
|
+
/* */
|
|
2288
|
+
/* */
|
|
2289
|
+
/* */
|
|
2290
|
+
/* */
|
|
2291
|
+
/* */
|
|
2292
|
+
/* */
|
|
2293
|
+
return (void 0);
|
|
2294
|
+
}
|
|
2295
|
+
get getLibraryBuildSuccessComamnd() {
|
|
2296
|
+
/* */
|
|
2297
|
+
/* */
|
|
2298
|
+
/* */
|
|
2299
|
+
/* */
|
|
2300
|
+
/* */
|
|
2301
|
+
/* */
|
|
2302
|
+
/* */
|
|
2303
|
+
return (void 0);
|
|
2304
|
+
}
|
|
2305
|
+
async buildLibraries({ rebuild = false, watch = false, strategy } = {}) {
|
|
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
|
+
/* */
|
|
2382
|
+
/* */
|
|
2383
|
+
/* */
|
|
2384
|
+
/* */
|
|
2385
|
+
/* */
|
|
2386
|
+
/* */
|
|
2387
|
+
/* */
|
|
2388
|
+
/* */
|
|
2389
|
+
/* */
|
|
2390
|
+
/* */
|
|
2391
|
+
/* */
|
|
2392
|
+
/* */
|
|
2393
|
+
/* */
|
|
2394
|
+
/* */
|
|
2395
|
+
/* */
|
|
2396
|
+
/* */
|
|
2397
|
+
}
|
|
2398
|
+
getLibraryBuildComamnd(options) {
|
|
2399
|
+
/* */
|
|
2400
|
+
/* */
|
|
2401
|
+
/* */
|
|
2402
|
+
/* */
|
|
2403
|
+
/* */
|
|
2404
|
+
/* */
|
|
2405
|
+
/* */
|
|
2406
|
+
/* */
|
|
2407
|
+
/* */
|
|
2408
|
+
return (void 0);
|
|
2409
|
+
}
|
|
2198
2410
|
}
|
|
2199
2411
|
;
|
|
2200
2412
|
({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-project.ts
|
|
@@ -2207,6 +2419,7 @@ class BaseFeatureForProject {
|
|
|
2207
2419
|
;
|
|
2208
2420
|
({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-feature-for-project.ts
|
|
2209
2421
|
|
|
2422
|
+
const regexTeamsID = /[A-Z0-9]+\#/;
|
|
2210
2423
|
const regexCommitModuleInArgs = /\[[a-z|\-]+\]/;
|
|
2211
2424
|
const regexCommitModuleInBranch = /\-\-[a-z|\-]+\-\-/;
|
|
2212
2425
|
class CommitData {
|
|
@@ -2234,6 +2447,15 @@ class CommitData {
|
|
|
2234
2447
|
commitMsg = commitMsg.replace('http://', '');
|
|
2235
2448
|
return commitMsg;
|
|
2236
2449
|
}
|
|
2450
|
+
static getTeamsIdFrom(commitMsg) {
|
|
2451
|
+
let teamID = _.first(commitMsg.match(regexTeamsID));
|
|
2452
|
+
if (teamID) {
|
|
2453
|
+
commitMsg = commitMsg.replace(teamID, '');
|
|
2454
|
+
}
|
|
2455
|
+
return {
|
|
2456
|
+
commitMsgOrBranchName: commitMsg, teamID
|
|
2457
|
+
};
|
|
2458
|
+
}
|
|
2237
2459
|
static getModuleNameFrom(commitMsg) {
|
|
2238
2460
|
let commitModuleName = _.first(commitMsg.match(regexCommitModuleInArgs));
|
|
2239
2461
|
if (commitModuleName) {
|
|
@@ -2246,9 +2468,13 @@ class CommitData {
|
|
|
2246
2468
|
static getModuleNameFromBranch(branchName) {
|
|
2247
2469
|
let commitModuleName = _.first(branchName.match(regexCommitModuleInBranch));
|
|
2248
2470
|
if (commitModuleName) {
|
|
2249
|
-
branchName = branchName.replace(commitModuleName, '
|
|
2471
|
+
branchName = branchName.replace(commitModuleName, '');
|
|
2472
|
+
commitModuleName = commitModuleName?.replace(/^\-\-/, '')?.replace(/\-\-$/, '');
|
|
2473
|
+
if (commitModuleName.startsWith('-')) {
|
|
2474
|
+
commitModuleName = commitModuleName.replace(/^\-/, '');
|
|
2475
|
+
}
|
|
2250
2476
|
}
|
|
2251
|
-
return {
|
|
2477
|
+
return { commitModuleName: commitModuleName?.replace(/^\-\-/, '')?.replace(/\-\-$/, '') };
|
|
2252
2478
|
}
|
|
2253
2479
|
static async getFromArgs(args, typeOfCommit) {
|
|
2254
2480
|
/* */
|
|
@@ -2284,6 +2510,10 @@ class CommitData {
|
|
|
2284
2510
|
/* */
|
|
2285
2511
|
/* */
|
|
2286
2512
|
/* */
|
|
2513
|
+
/* */
|
|
2514
|
+
/* */
|
|
2515
|
+
/* */
|
|
2516
|
+
/* */
|
|
2287
2517
|
return (void 0);
|
|
2288
2518
|
}
|
|
2289
2519
|
static async getFromBranch(currentBranchName) {
|
|
@@ -2319,6 +2549,7 @@ class CommitData {
|
|
|
2319
2549
|
/* */
|
|
2320
2550
|
/* */
|
|
2321
2551
|
/* */
|
|
2552
|
+
/* */
|
|
2322
2553
|
return (void 0);
|
|
2323
2554
|
}
|
|
2324
2555
|
static from(options) {
|
|
@@ -2327,6 +2558,10 @@ class CommitData {
|
|
|
2327
2558
|
return opt;
|
|
2328
2559
|
}
|
|
2329
2560
|
clearMessage(message) {
|
|
2561
|
+
if (this.teamID && _.isString(this.teamID)) {
|
|
2562
|
+
message = message.replace(this.teamID.toLowerCase().replace('-', ' '), ' ');
|
|
2563
|
+
message = message.replace(this.teamID.toUpperCase().replace('-', ' '), ' ');
|
|
2564
|
+
}
|
|
2330
2565
|
for (const jira of (this.jiraNumbers || [])) {
|
|
2331
2566
|
message = message.replace(jira.toLowerCase().replace('-', ' '), ' ');
|
|
2332
2567
|
message = message.replace(jira.toUpperCase().replace('-', ' '), ' ');
|
|
@@ -2336,6 +2571,12 @@ class CommitData {
|
|
|
2336
2571
|
message = message.replace(regexCommitModuleInBranch, ' ');
|
|
2337
2572
|
message = message.replace(/\ \ /g, ' ');
|
|
2338
2573
|
}
|
|
2574
|
+
if (this.teamID && _.isString(this.teamID)) {
|
|
2575
|
+
message = message.replace(/\_/g, ' ');
|
|
2576
|
+
}
|
|
2577
|
+
if (this.commitModuleName) {
|
|
2578
|
+
message = message.replace(this.commitModuleName.replace(/\-/g, ' '), ' ');
|
|
2579
|
+
}
|
|
2339
2580
|
return message;
|
|
2340
2581
|
}
|
|
2341
2582
|
/**
|
|
@@ -2378,9 +2619,23 @@ class CommitData {
|
|
|
2378
2619
|
/* */
|
|
2379
2620
|
/* */
|
|
2380
2621
|
/* */
|
|
2622
|
+
/* */
|
|
2623
|
+
/* */
|
|
2624
|
+
/* */
|
|
2625
|
+
/* */
|
|
2626
|
+
/* */
|
|
2627
|
+
/* */
|
|
2628
|
+
/* */
|
|
2381
2629
|
return (void 0);
|
|
2382
2630
|
}
|
|
2383
2631
|
get branchName() {
|
|
2632
|
+
/* */
|
|
2633
|
+
/* */
|
|
2634
|
+
/* */
|
|
2635
|
+
/* */
|
|
2636
|
+
/* */
|
|
2637
|
+
/* */
|
|
2638
|
+
/* */
|
|
2384
2639
|
/* */
|
|
2385
2640
|
/* */
|
|
2386
2641
|
/* */
|