tnp-config 13.1.50 → 13.1.52
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/esm2020/lib/config.mjs +375 -272
- package/browser/fesm2015/tnp-config.mjs +376 -248
- package/browser/fesm2020/tnp-config.mjs +374 -271
- package/browser/lib/config.d.ts +19 -167
- package/client/esm2020/lib/config.mjs +375 -272
- package/client/fesm2015/tnp-config.mjs +376 -248
- package/client/fesm2020/tnp-config.mjs +374 -271
- package/client/lib/config.d.ts +19 -167
- package/lib/config.js +95 -33
- package/package.json +3 -3
- package/tmp-environment.json +27 -27
- package/websql/esm2020/lib/config.mjs +375 -272
- package/websql/fesm2015/tnp-config.mjs +376 -248
- package/websql/fesm2020/tnp-config.mjs +374 -271
- package/websql/lib/config.d.ts +19 -167
@@ -1,3 +1,4 @@
|
|
1
|
+
import { Helpers } from 'tnp-core/browser';
|
1
2
|
export { CoreHelpers as Helpers } from 'tnp-core/browser';
|
2
3
|
|
3
4
|
/**
|
@@ -5,48 +6,59 @@ export { CoreHelpers as Helpers } from 'tnp-core/browser';
|
|
5
6
|
* @author darekf77@gmail.com
|
6
7
|
* Recommended config for all isomorphic libs *
|
7
8
|
*/
|
9
|
+
const frameworkNameBe = (''
|
10
|
+
/* */
|
11
|
+
/* */
|
12
|
+
);
|
13
|
+
const frameworkName = Helpers.isBrowser ? 'firedev' : frameworkNameBe;
|
8
14
|
const GlobalLibTypeName = {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
15
|
+
/* */
|
16
|
+
/* */
|
17
|
+
/* */
|
18
|
+
/* */
|
19
|
+
/* */
|
20
|
+
/* */
|
21
|
+
/* */
|
22
|
+
/* */
|
23
|
+
/* */
|
24
|
+
/* */
|
25
|
+
/* */
|
26
|
+
/* */
|
27
|
+
/* */
|
28
|
+
/* */
|
29
|
+
/* */
|
30
|
+
/* */
|
24
31
|
};
|
25
32
|
const LibTypeArr = [
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
33
|
+
/* */
|
34
|
+
/* */
|
35
|
+
/* */
|
36
|
+
/* */
|
37
|
+
/* */
|
38
|
+
/* */
|
39
|
+
/* */
|
40
|
+
/* */
|
41
|
+
/* */
|
42
|
+
/* */
|
43
|
+
/* */
|
44
|
+
/* */
|
45
|
+
/* */
|
46
|
+
/* */
|
39
47
|
];
|
40
|
-
const CoreLibCategoryArr = [
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
+
const CoreLibCategoryArr = [ // TODO this is for what ?
|
49
|
+
/* */
|
50
|
+
/* */
|
51
|
+
/* */
|
52
|
+
/* */
|
53
|
+
/* */
|
54
|
+
/* */
|
55
|
+
/* */
|
56
|
+
/* */
|
57
|
+
];
|
58
|
+
const allowedEnvironments = [
|
59
|
+
/* */
|
60
|
+
/* */
|
48
61
|
];
|
49
|
-
const allowedEnvironments = ['static', 'dev', 'prod', 'stage', 'online', 'test', 'qa', 'custom'];
|
50
62
|
const allowedEnvironmentsObj = {};
|
51
63
|
allowedEnvironments.forEach(s => {
|
52
64
|
// @ts-ignore
|
@@ -58,19 +70,21 @@ const morphi = 'morphi';
|
|
58
70
|
/* */
|
59
71
|
const urlMorphi = 'https://github.com/darekf77/morphi.git';
|
60
72
|
const filesNotAllowedToClean = {
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
73
|
+
/* */
|
74
|
+
/* */
|
75
|
+
/* */
|
76
|
+
/* */
|
77
|
+
/* */
|
78
|
+
/* */
|
79
|
+
/* */
|
80
|
+
/* */
|
68
81
|
};
|
69
82
|
const file = Object.assign({ _bowerrc: '.bowerrc', bower_json: 'bower.json', controllers_ts: 'controllers.ts', entities_ts: 'entities.ts', angular_json: 'angular.json', autob_actions_js: 'auto-actions.js', local_config_js: 'local-config.js', build_config_js: 'build-config.js', local_config: 'local-config', start_backend_ts: 'start.backend.ts', package_json: 'package.json', result_packages_json: 'result-packages.json', package_json5: 'package.json5', package_json__tnp_json: 'package.json_tnp.json', package_json__tnp_json5: 'package.json_tnp.json5', package_json__devDependencies_json: 'package.json_devDependencies.json', yarn_lock: 'yarn.lock', package_lock_json: 'package-lock.json', tnpEnvironment_json: 'tmp-environment.json', environment: 'environment', environment_js: 'environment.js', tmp_transaction_pid_txt: 'tmp-transaction-pid.txt', manifest_webmanifest: 'manifest.webmanifest', public_api_d_ts: 'public-api.d.ts', public_api_ts: 'public-api.ts', public_api: 'public-api', _babelrc: '.babelrc', index: 'index', index_d_ts: 'index.d.ts', index_ts: 'index.ts', index_js: 'index.js', index_js_map: 'index.js.map', db_json: 'db.json', db_for_tests_json: 'db-for-tests.json', tmpDockerImageId: 'tmp-docker-image-id', tmp_recent_json: 'recent.json', tmpIsomorphicPackagesJson: 'tmp-isomorphic-packages.json', tsconfig_json: 'tsconfig.json', README_MD: 'README.md', server_key: 'server.key', server_cert: 'server.cert', server_chain_cert: 'server-chain.cert', meta_config_md: 'meta-content.md' }, filesNotAllowedToClean);
|
70
83
|
const packageJsonSplit = [
|
71
|
-
|
72
|
-
|
73
|
-
|
84
|
+
/* */
|
85
|
+
/* */
|
86
|
+
/* */
|
87
|
+
/* */
|
74
88
|
];
|
75
89
|
const tempFolders = {
|
76
90
|
bundle: 'bundle',
|
@@ -97,17 +111,47 @@ const tempFolders = {
|
|
97
111
|
testsEnvironments: 'tests-environments',
|
98
112
|
};
|
99
113
|
const stylesFilesExtension = [
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
114
|
+
/* */
|
115
|
+
/* */
|
116
|
+
/* */
|
117
|
+
/* */
|
118
|
+
/* */
|
104
119
|
];
|
105
|
-
const folder =
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
120
|
+
const folder = {
|
121
|
+
/* */
|
122
|
+
/* */
|
123
|
+
/* */
|
124
|
+
/* */
|
125
|
+
/* */
|
126
|
+
/* */
|
127
|
+
/* */
|
128
|
+
/* */
|
129
|
+
/* */
|
130
|
+
/* */
|
131
|
+
/* */
|
132
|
+
/* */
|
133
|
+
/* */
|
134
|
+
/* */
|
135
|
+
/* */
|
136
|
+
/* */
|
137
|
+
/* */
|
138
|
+
/* */
|
139
|
+
/* */
|
140
|
+
/* */
|
141
|
+
/* */
|
142
|
+
/* */
|
143
|
+
/* */
|
144
|
+
/* */
|
145
|
+
/* */
|
146
|
+
/* */
|
147
|
+
/* */
|
148
|
+
/* */
|
149
|
+
/* */
|
150
|
+
/* */
|
151
|
+
/* */
|
152
|
+
/* */
|
153
|
+
/* */
|
154
|
+
};
|
111
155
|
let dirnameForTnp;
|
112
156
|
/* */
|
113
157
|
/* */
|
@@ -194,76 +238,131 @@ const firedevProjectsRelative = `../morphi/projects`;
|
|
194
238
|
/* */
|
195
239
|
/* */
|
196
240
|
/* */
|
241
|
+
/* */
|
242
|
+
/* */
|
243
|
+
/* */
|
244
|
+
/* */
|
245
|
+
/* */
|
246
|
+
/* */
|
247
|
+
/* */
|
197
248
|
const moduleNameAngularLib = [
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
249
|
+
/* */
|
250
|
+
/* */
|
251
|
+
/* */
|
252
|
+
/* */
|
253
|
+
/* */
|
202
254
|
];
|
203
255
|
const moduleNameIsomorphicLib = [
|
204
|
-
|
205
|
-
|
206
|
-
|
256
|
+
/* */
|
257
|
+
/* */
|
258
|
+
/* */
|
259
|
+
/* */
|
207
260
|
];
|
208
261
|
const argsReplacementsBuild = {
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
262
|
+
/* */
|
263
|
+
/* */
|
264
|
+
/* */
|
265
|
+
/* */
|
266
|
+
/* */
|
267
|
+
/* */
|
268
|
+
/* */
|
269
|
+
/* */
|
270
|
+
/* */
|
271
|
+
/* */
|
272
|
+
/* */
|
273
|
+
/* */
|
274
|
+
/* */
|
275
|
+
/* */
|
276
|
+
/* */
|
277
|
+
/* */
|
278
|
+
/* */
|
279
|
+
/* */
|
280
|
+
/* */
|
281
|
+
/* */
|
282
|
+
/* */
|
283
|
+
/* */
|
284
|
+
/* */
|
285
|
+
/* */
|
286
|
+
/* */
|
287
|
+
/* */
|
288
|
+
/* */
|
289
|
+
/* */
|
290
|
+
/* */
|
291
|
+
/* */
|
292
|
+
/* */
|
293
|
+
/* */
|
294
|
+
/* */
|
295
|
+
/* */
|
296
|
+
/* */
|
297
|
+
/* */
|
298
|
+
/* */
|
299
|
+
/* */
|
300
|
+
/* */
|
301
|
+
/* */
|
302
|
+
/* */
|
303
|
+
/* */
|
304
|
+
/* */
|
305
|
+
/* */
|
306
|
+
/* */
|
220
307
|
};
|
221
308
|
const argsReplacementsOther = {
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
309
|
+
/* */
|
310
|
+
/* */
|
311
|
+
/* */
|
312
|
+
/* */
|
313
|
+
/* */
|
314
|
+
/* */
|
315
|
+
/* */
|
316
|
+
/* */
|
317
|
+
/* */
|
318
|
+
/* */
|
319
|
+
/* */
|
320
|
+
/* */
|
321
|
+
/* */
|
322
|
+
/* */
|
323
|
+
/* */
|
324
|
+
/* */
|
325
|
+
/* */
|
326
|
+
/* */
|
327
|
+
/* */
|
328
|
+
/* */
|
329
|
+
/* */
|
330
|
+
/* */
|
331
|
+
/* */
|
332
|
+
/* */
|
333
|
+
/* */
|
334
|
+
/* */
|
335
|
+
/* */
|
336
|
+
/* */
|
337
|
+
/* */
|
338
|
+
/* */
|
339
|
+
/* */
|
340
|
+
/* */
|
341
|
+
/* */
|
342
|
+
/* */
|
343
|
+
/* */
|
344
|
+
/* */
|
345
|
+
/* */
|
346
|
+
/* */
|
347
|
+
/* */
|
348
|
+
/* */
|
349
|
+
/* */
|
350
|
+
/* */
|
351
|
+
/* */
|
352
|
+
/* */
|
353
|
+
/* */
|
354
|
+
/* */
|
355
|
+
/* */
|
258
356
|
};
|
259
357
|
const areTrustedForPatchUpdate = [
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
358
|
+
/* */
|
359
|
+
/* */
|
360
|
+
/* */
|
361
|
+
/* */
|
362
|
+
/* */
|
363
|
+
/* */
|
364
|
+
/* */
|
365
|
+
/* */
|
267
366
|
];
|
268
367
|
const config = {
|
269
368
|
packagesThat: {
|
@@ -281,9 +380,10 @@ const config = {
|
|
281
380
|
/* */
|
282
381
|
coreProjectVersions: ['v1', 'v2', 'v3'],
|
283
382
|
quickFixes: {
|
284
|
-
|
285
|
-
|
286
|
-
|
383
|
+
/* */
|
384
|
+
/* */
|
385
|
+
/* */
|
386
|
+
/* */
|
287
387
|
},
|
288
388
|
packageJsonSplit,
|
289
389
|
regexString: {
|
@@ -297,19 +397,32 @@ const config = {
|
|
297
397
|
},
|
298
398
|
defaultFrameworkVersion: 'v3',
|
299
399
|
CONST: {
|
300
|
-
|
301
|
-
|
302
|
-
|
400
|
+
/* */
|
401
|
+
/* */
|
402
|
+
/* */
|
403
|
+
/* */
|
303
404
|
},
|
304
405
|
debug: {
|
305
|
-
sourceModifier: [],
|
306
|
-
baselineSiteJoin: {
|
307
|
-
DEBUG_PATHES: [],
|
308
|
-
DEBUG_MERGE_PATHES: []
|
309
|
-
}
|
310
|
-
},
|
311
406
|
/* */
|
312
407
|
/* */
|
408
|
+
/* */
|
409
|
+
/* */
|
410
|
+
/* */
|
411
|
+
/* */
|
412
|
+
/* */
|
413
|
+
/* */
|
414
|
+
/* */
|
415
|
+
/* */
|
416
|
+
/* */
|
417
|
+
/* */
|
418
|
+
/* */
|
419
|
+
/* */
|
420
|
+
/* */
|
421
|
+
/* */
|
422
|
+
/* */
|
423
|
+
/* */
|
424
|
+
},
|
425
|
+
frameworkName,
|
313
426
|
frameworkNames: {
|
314
427
|
tnp: 'tnp',
|
315
428
|
firedev: 'firedev'
|
@@ -421,11 +534,12 @@ const config = {
|
|
421
534
|
filesNotAllowedToClean: Object.keys(filesNotAllowedToClean).map(key => filesNotAllowedToClean[key]),
|
422
535
|
file,
|
423
536
|
default: {
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
537
|
+
/* */
|
538
|
+
/* */
|
539
|
+
/* */
|
540
|
+
/* */
|
541
|
+
/* */
|
542
|
+
/* */
|
429
543
|
},
|
430
544
|
SUBERIZED_PREFIX: `---stuberized`,
|
431
545
|
names: {
|
@@ -438,47 +552,50 @@ const config = {
|
|
438
552
|
'reservedExpSec'
|
439
553
|
],
|
440
554
|
extensions: {
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
555
|
+
/* */
|
556
|
+
/* */
|
557
|
+
/* */
|
558
|
+
/* */
|
559
|
+
/* */
|
560
|
+
/* */
|
561
|
+
/* */
|
562
|
+
/* */
|
563
|
+
/* */
|
564
|
+
/* */
|
565
|
+
/* */
|
451
566
|
},
|
452
567
|
notFiredevProjects: [
|
453
|
-
|
568
|
+
/* */
|
569
|
+
/* */
|
454
570
|
],
|
455
571
|
/**
|
456
572
|
* Build allowed types
|
457
573
|
*/
|
458
574
|
allowedTypes: {
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
575
|
+
/* */
|
576
|
+
/* */
|
577
|
+
/* */
|
578
|
+
/* */
|
579
|
+
/* */
|
580
|
+
/* */
|
581
|
+
/* */
|
582
|
+
/* */
|
583
|
+
/* */
|
584
|
+
/* */
|
585
|
+
/* */
|
586
|
+
/* */
|
587
|
+
/* */
|
588
|
+
/* */
|
589
|
+
/* */
|
590
|
+
/* */
|
591
|
+
/* */
|
592
|
+
/* */
|
593
|
+
/* */
|
594
|
+
/* */
|
595
|
+
/* */
|
596
|
+
/* */
|
597
|
+
/* */
|
598
|
+
/* */
|
482
599
|
},
|
483
600
|
moduleNameAngularLib,
|
484
601
|
moduleNameIsomorphicLib,
|
@@ -487,37 +604,39 @@ const config = {
|
|
487
604
|
styles: stylesFilesExtension,
|
488
605
|
},
|
489
606
|
projectTypes: {
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
607
|
+
/* */
|
608
|
+
/* */
|
609
|
+
/* */
|
610
|
+
/* */
|
611
|
+
/* */
|
612
|
+
/* */
|
613
|
+
/* */
|
614
|
+
/* */
|
615
|
+
/* */
|
616
|
+
/* */
|
617
|
+
/* */
|
618
|
+
/* */
|
619
|
+
/* */
|
620
|
+
/* */
|
621
|
+
/* */
|
504
622
|
},
|
505
623
|
localLibs: [
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
624
|
+
/* */
|
625
|
+
/* */
|
626
|
+
/* */
|
627
|
+
/* */
|
628
|
+
/* */
|
629
|
+
/* */
|
630
|
+
/* */
|
631
|
+
/* */
|
632
|
+
/* */
|
633
|
+
/* */
|
634
|
+
/* */
|
635
|
+
/* */
|
636
|
+
/* */
|
637
|
+
/* */
|
638
|
+
/* */
|
639
|
+
/* */
|
521
640
|
],
|
522
641
|
helpAlias: [
|
523
642
|
'-h',
|
@@ -527,60 +646,69 @@ const config = {
|
|
527
646
|
],
|
528
647
|
required: {
|
529
648
|
npm: [
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
649
|
+
/* */
|
650
|
+
/* */
|
651
|
+
/* */
|
652
|
+
/* */
|
653
|
+
/* */
|
654
|
+
/* */
|
655
|
+
/* */
|
656
|
+
/* */
|
657
|
+
/* */
|
658
|
+
/* */
|
659
|
+
/* */
|
660
|
+
/* */
|
661
|
+
/* */
|
662
|
+
/* */
|
663
|
+
/* */
|
664
|
+
/* */
|
665
|
+
/* */
|
666
|
+
/* */
|
667
|
+
/* */
|
668
|
+
/* */
|
669
|
+
/* */
|
670
|
+
/* */
|
671
|
+
/* */
|
672
|
+
/* */
|
673
|
+
/* */
|
674
|
+
/* */
|
675
|
+
/* */
|
676
|
+
/* */
|
677
|
+
/* */
|
678
|
+
/* */
|
679
|
+
/* */
|
554
680
|
],
|
555
681
|
niceTools: [
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
682
|
+
/* */
|
683
|
+
/* */
|
684
|
+
/* */
|
685
|
+
/* */
|
686
|
+
/* */
|
687
|
+
/* */
|
688
|
+
/* */
|
689
|
+
/* */
|
690
|
+
/* */
|
691
|
+
/* */
|
692
|
+
/* */
|
693
|
+
/* */
|
694
|
+
/* */
|
695
|
+
/* */
|
696
|
+
/* */
|
697
|
+
/* */
|
698
|
+
/* */
|
699
|
+
/* */
|
700
|
+
/* */
|
701
|
+
/* */
|
702
|
+
/* */
|
703
|
+
/* */
|
704
|
+
/* */
|
578
705
|
],
|
579
706
|
programs: [,
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
707
|
+
/* */
|
708
|
+
/* */
|
709
|
+
/* */
|
710
|
+
/* */
|
711
|
+
/* */
|
584
712
|
]
|
585
713
|
}
|
586
714
|
};
|