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.
@@ -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
- isomorphicLib: 'isomorphic-lib',
10
- angularLib: 'angular-lib',
11
- electronClient: 'electron-client',
12
- ionicLib: 'ionic-lib',
13
- angularClient: 'angular-client',
14
- ionicClient: 'ionic-client',
15
- workspace: 'workspace',
16
- container: 'container',
17
- docker: 'docker',
18
- unknowNpmProject: 'unknow-npm-project',
19
- vscodeExt: 'vscode-ext',
20
- chromeExt: 'chrome-ext',
21
- singleFileProject: 'single-file-project',
22
- navi: 'navi',
23
- scenario: 'scenario'
15
+ /* */
16
+ /* */
17
+ /* */
18
+ /* */
19
+ /* */
20
+ /* */
21
+ /* */
22
+ /* */
23
+ /* */
24
+ /* */
25
+ /* */
26
+ /* */
27
+ /* */
28
+ /* */
29
+ /* */
30
+ /* */
24
31
  };
25
32
  const LibTypeArr = [
26
- GlobalLibTypeName.angularLib,
27
- GlobalLibTypeName.isomorphicLib,
28
- GlobalLibTypeName.angularClient,
29
- GlobalLibTypeName.ionicClient,
30
- GlobalLibTypeName.electronClient,
31
- GlobalLibTypeName.workspace,
32
- GlobalLibTypeName.container,
33
- GlobalLibTypeName.docker,
34
- GlobalLibTypeName.unknowNpmProject,
35
- GlobalLibTypeName.vscodeExt,
36
- GlobalLibTypeName.chromeExt,
37
- GlobalLibTypeName.navi,
38
- GlobalLibTypeName.scenario,
33
+ /* */
34
+ /* */
35
+ /* */
36
+ /* */
37
+ /* */
38
+ /* */
39
+ /* */
40
+ /* */
41
+ /* */
42
+ /* */
43
+ /* */
44
+ /* */
45
+ /* */
46
+ /* */
39
47
  ];
40
- const CoreLibCategoryArr = [
41
- GlobalLibTypeName.angularLib,
42
- GlobalLibTypeName.isomorphicLib,
43
- GlobalLibTypeName.angularClient,
44
- GlobalLibTypeName.electronClient,
45
- GlobalLibTypeName.ionicClient,
46
- GlobalLibTypeName.docker,
47
- 'common'
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,13 +70,14 @@ const morphi = 'morphi';
58
70
  /* */
59
71
  const urlMorphi = 'https://github.com/darekf77/morphi.git';
60
72
  const filesNotAllowedToClean = {
61
- _gitignore: '.gitignore',
62
- _npmrc: '.npmrc',
63
- _npmignore: '.npmignore',
64
- tslint_json: 'tslint.json',
65
- _editorconfig: '.editorconfig',
66
- _angularCli_json: '.angular-cli.json',
67
- _vscode_launch_json: '.vscode/launch.json',
73
+ /* */
74
+ /* */
75
+ /* */
76
+ /* */
77
+ /* */
78
+ /* */
79
+ /* */
80
+ /* */
68
81
  };
69
82
  const file = {
70
83
  _bowerrc: '.bowerrc',
@@ -113,9 +126,10 @@ const file = {
113
126
  ...filesNotAllowedToClean
114
127
  };
115
128
  const packageJsonSplit = [
116
- file.package_json__tnp_json,
117
- file.package_json__tnp_json5,
118
- file.package_json__devDependencies_json,
129
+ /* */
130
+ /* */
131
+ /* */
132
+ /* */
119
133
  ];
120
134
  const tempFolders = {
121
135
  bundle: 'bundle',
@@ -142,41 +156,46 @@ const tempFolders = {
142
156
  testsEnvironments: 'tests-environments',
143
157
  };
144
158
  const stylesFilesExtension = [
145
- 'css',
146
- 'sass',
147
- 'scss',
148
- 'less',
159
+ /* */
160
+ /* */
161
+ /* */
162
+ /* */
163
+ /* */
149
164
  ];
150
165
  const folder = {
151
- scripts: 'scripts',
152
- scenarios: 'scenarios',
153
- bower: 'bower',
154
- src: 'src',
155
- out: 'out',
156
- app: 'app',
157
- lib: 'lib',
158
- libs: 'libs',
159
- source: 'source',
160
- custom: 'custom',
161
- components: 'components',
162
- assets: 'assets',
163
- apps: 'apps',
164
- workspace: 'workspace',
165
- container: 'container',
166
- bin: 'bin',
167
- _bin: '.bin',
168
- _vscode: '.vscode',
169
- project: 'project',
170
- external: 'external',
171
- tmpDist: 'tmp-dist',
172
- tmpFor(d) {
173
- return `tmp-src-${d}`;
174
- },
175
- targetProjects: {
176
- DEFAULT_PATH_GENERATED: 'tmp-target-projects/generated',
177
- DEFAULT_PATH_ORIGINS: 'tmp-target-projects/origins',
178
- },
179
- ...tempFolders
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
+ /* */
180
199
  };
181
200
  let dirnameForTnp;
182
201
  /* */
@@ -264,76 +283,131 @@ const firedevProjectsRelative = `../morphi/projects`;
264
283
  /* */
265
284
  /* */
266
285
  /* */
286
+ /* */
287
+ /* */
288
+ /* */
289
+ /* */
290
+ /* */
291
+ /* */
292
+ /* */
267
293
  const moduleNameAngularLib = [
268
- folder.components,
269
- folder.module,
270
- folder.dist,
271
- folder.browser,
294
+ /* */
295
+ /* */
296
+ /* */
297
+ /* */
298
+ /* */
272
299
  ];
273
300
  const moduleNameIsomorphicLib = [
274
- folder.src,
275
- folder.dist,
276
- folder.browser,
301
+ /* */
302
+ /* */
303
+ /* */
304
+ /* */
277
305
  ];
278
306
  const argsReplacementsBuild = {
279
- 'ba': 'build:app',
280
- 'baw': 'build:app:watch',
281
- 'bw': 'build:watch',
282
- 'bda': 'build:dist:app',
283
- 'bdap': 'build:dist:app:prod',
284
- 'bd': 'build:dist',
285
- 'bdw': 'build:dist:watch',
286
- 'bba': 'build:bundle:app',
287
- 'bbap': 'build:bundle:app:prod',
288
- 'bb': 'build:bundle',
289
- 'bbw': 'build:bundle:watch',
307
+ /* */
308
+ /* */
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
+ /* */
290
352
  };
291
353
  const argsReplacementsOther = {
292
- 'ghpush': 'githubpush',
293
- 'ghpull': 'githubpull',
294
- 'l': 'last',
295
- 'sl': 'show:last',
296
- 'lb': 'last:build',
297
- 'i': 'install',
298
- 'si': 'sinstall',
299
- 'il': 'install:locally',
300
- 'rc': 'recommit',
301
- 'rp': 'release:prod',
302
- 'r': 'release',
303
- 'rmajor': 'release:major',
304
- 'rminor': 'release:minor',
305
- 'r:major': 'release:major',
306
- 'r:minor': 'release:minor',
307
- 'ar': 'auto:release',
308
- 're': 'reinstall',
309
- '--version': 'version',
310
- '-v': 'version',
311
- 'occ': 'open:core:container',
312
- 'ocp': 'open:core:project',
313
- 'twd': 'test:watch:debug',
314
- 'tdw': 'test:watch:debug',
315
- 'tw': 'test:watch',
316
- 'td': 'test:debug',
317
- 't': 'test',
318
- 'pt': 'push:tag',
319
- 'p': 'push',
320
- 'pa': 'pushalll',
321
- 'sj': 'select:java',
322
- 'scm': 'showcoremodules',
323
- 'tpu': 'target:proj:update',
324
- 'ugd': 'update:global:deps',
325
- 'ud': 'update:deps',
326
- 'dgl': 'detect:global:libs',
327
- 'pr': 'print:relatives',
354
+ /* */
355
+ /* */
356
+ /* */
357
+ /* */
358
+ /* */
359
+ /* */
360
+ /* */
361
+ /* */
362
+ /* */
363
+ /* */
364
+ /* */
365
+ /* */
366
+ /* */
367
+ /* */
368
+ /* */
369
+ /* */
370
+ /* */
371
+ /* */
372
+ /* */
373
+ /* */
374
+ /* */
375
+ /* */
376
+ /* */
377
+ /* */
378
+ /* */
379
+ /* */
380
+ /* */
381
+ /* */
382
+ /* */
383
+ /* */
384
+ /* */
385
+ /* */
386
+ /* */
387
+ /* */
388
+ /* */
389
+ /* */
390
+ /* */
391
+ /* */
392
+ /* */
393
+ /* */
394
+ /* */
395
+ /* */
396
+ /* */
397
+ /* */
398
+ /* */
399
+ /* */
400
+ /* */
328
401
  };
329
402
  const areTrustedForPatchUpdate = [
330
- '@angular',
331
- '@ngrx',
332
- 'rxjs',
333
- 'zone.js',
334
- 'tslib',
335
- 'typescript',
336
- 'webpack'
403
+ /* */
404
+ /* */
405
+ /* */
406
+ /* */
407
+ /* */
408
+ /* */
409
+ /* */
410
+ /* */
337
411
  ];
338
412
  const config = {
339
413
  packagesThat: {
@@ -351,9 +425,10 @@ const config = {
351
425
  /* */
352
426
  coreProjectVersions: ['v1', 'v2', 'v3'],
353
427
  quickFixes: {
354
- missingLibs: [
355
- 'react-native-sqlite-storage'
356
- ]
428
+ /* */
429
+ /* */
430
+ /* */
431
+ /* */
357
432
  },
358
433
  packageJsonSplit,
359
434
  regexString: {
@@ -367,19 +442,32 @@ const config = {
367
442
  },
368
443
  defaultFrameworkVersion: 'v3',
369
444
  CONST: {
370
- UNIT_TEST_TIMEOUT: 30000,
371
- INTEGRATION_TEST: 30000,
372
- BACKEND_HTTP_REQUEST_TIMEOUT: 3000,
445
+ /* */
446
+ /* */
447
+ /* */
448
+ /* */
373
449
  },
374
450
  debug: {
375
- sourceModifier: [],
376
- baselineSiteJoin: {
377
- DEBUG_PATHES: [],
378
- DEBUG_MERGE_PATHES: []
379
- }
380
- },
381
451
  /* */
382
452
  /* */
453
+ /* */
454
+ /* */
455
+ /* */
456
+ /* */
457
+ /* */
458
+ /* */
459
+ /* */
460
+ /* */
461
+ /* */
462
+ /* */
463
+ /* */
464
+ /* */
465
+ /* */
466
+ /* */
467
+ /* */
468
+ /* */
469
+ },
470
+ frameworkName,
383
471
  frameworkNames: {
384
472
  tnp: 'tnp',
385
473
  firedev: 'firedev'
@@ -491,11 +579,12 @@ const config = {
491
579
  filesNotAllowedToClean: Object.keys(filesNotAllowedToClean).map(key => filesNotAllowedToClean[key]),
492
580
  file,
493
581
  default: {
494
- cloud: {
495
- environment: {
496
- name: 'online'
497
- }
498
- }
582
+ /* */
583
+ /* */
584
+ /* */
585
+ /* */
586
+ /* */
587
+ /* */
499
588
  },
500
589
  SUBERIZED_PREFIX: `---stuberized`,
501
590
  names: {
@@ -508,47 +597,50 @@ const config = {
508
597
  'reservedExpSec'
509
598
  ],
510
599
  extensions: {
511
- /**
512
- * Modify source: import,export, requires
513
- */
514
- get modificableByReplaceFn() {
515
- return [
516
- 'ts',
517
- 'js',
518
- ...stylesFilesExtension,
519
- ].map(f => `.${f}`);
520
- },
600
+ /* */
601
+ /* */
602
+ /* */
603
+ /* */
604
+ /* */
605
+ /* */
606
+ /* */
607
+ /* */
608
+ /* */
609
+ /* */
610
+ /* */
521
611
  },
522
612
  notFiredevProjects: [
523
- 'unknow', 'unknow-npm-project', 'scenario', 'navi'
613
+ /* */
614
+ /* */
524
615
  ],
525
616
  /**
526
617
  * Build allowed types
527
618
  */
528
619
  allowedTypes: {
529
- /**
530
- * Projects for build:app:watch command
531
- */
532
- app: [
533
- GlobalLibTypeName.angularClient,
534
- GlobalLibTypeName.angularLib,
535
- GlobalLibTypeName.isomorphicLib,
536
- GlobalLibTypeName.ionicClient,
537
- GlobalLibTypeName.docker,
538
- GlobalLibTypeName.container,
539
- GlobalLibTypeName.vscodeExt,
540
- ],
541
- /**
542
- * Projects for build:(dist|bundle):(watch) command
543
- */
544
- libs: [
545
- GlobalLibTypeName.angularLib,
546
- GlobalLibTypeName.isomorphicLib,
547
- GlobalLibTypeName.workspace,
548
- GlobalLibTypeName.container,
549
- GlobalLibTypeName.docker,
550
- GlobalLibTypeName.vscodeExt,
551
- ]
620
+ /* */
621
+ /* */
622
+ /* */
623
+ /* */
624
+ /* */
625
+ /* */
626
+ /* */
627
+ /* */
628
+ /* */
629
+ /* */
630
+ /* */
631
+ /* */
632
+ /* */
633
+ /* */
634
+ /* */
635
+ /* */
636
+ /* */
637
+ /* */
638
+ /* */
639
+ /* */
640
+ /* */
641
+ /* */
642
+ /* */
643
+ /* */
552
644
  },
553
645
  moduleNameAngularLib,
554
646
  moduleNameIsomorphicLib,
@@ -557,37 +649,39 @@ const config = {
557
649
  styles: stylesFilesExtension,
558
650
  },
559
651
  projectTypes: {
560
- forNpmLibs: [
561
- GlobalLibTypeName.angularLib,
562
- GlobalLibTypeName.isomorphicLib,
563
- ],
564
- with: {
565
- angularAsCore: [
566
- GlobalLibTypeName.angularClient,
567
- GlobalLibTypeName.angularLib,
568
- GlobalLibTypeName.ionicClient,
569
- ],
570
- componetsAsSrc: [
571
- GlobalLibTypeName.angularLib,
572
- ],
573
- }
652
+ /* */
653
+ /* */
654
+ /* */
655
+ /* */
656
+ /* */
657
+ /* */
658
+ /* */
659
+ /* */
660
+ /* */
661
+ /* */
662
+ /* */
663
+ /* */
664
+ /* */
665
+ /* */
666
+ /* */
574
667
  },
575
668
  localLibs: [
576
- 'eslint',
577
- 'mkdirp',
578
- 'gulp',
579
- 'npm-run',
580
- 'rimraf',
581
- 'nodemon',
582
- 'release-it',
583
- 'tsc',
584
- 'watch',
585
- 'http-server',
586
- 'ts-node',
587
- 'sort-package-json',
588
- 'concurrently',
589
- 'sloc',
590
- 'morphi'
669
+ /* */
670
+ /* */
671
+ /* */
672
+ /* */
673
+ /* */
674
+ /* */
675
+ /* */
676
+ /* */
677
+ /* */
678
+ /* */
679
+ /* */
680
+ /* */
681
+ /* */
682
+ /* */
683
+ /* */
684
+ /* */
591
685
  ],
592
686
  helpAlias: [
593
687
  '-h',
@@ -597,60 +691,69 @@ const config = {
597
691
  ],
598
692
  required: {
599
693
  npm: [
600
- { name: '@angular/cli', version: '13' },
601
- { name: 'ncc', version: '0.36.0', installName: '@vercel/ncc' },
602
- { name: 'extract-zip', version: '1.6.7' },
603
- { name: 'watch', version: '1.0.2' },
604
- { name: 'cpr' },
605
- { name: 'check-node-version' },
606
- { name: 'npm-run', version: '4.1.2' },
607
- { name: 'rimraf' },
608
- { name: 'mkdirp' },
609
- { name: 'renamer', version: '2.0.1' },
610
- { name: 'nodemon' },
611
- { name: 'madge' },
612
- { name: 'yarn' },
613
- { name: 'http-server' },
614
- { name: 'increase-memory-limit' },
615
- { name: 'bower' },
616
- { name: 'fkill', installName: 'fkill-cli' },
617
- { name: 'mocha' },
618
- { name: 'ts-node' },
619
- { name: 'vsce' },
620
- { name: 'webpack-bundle-analyzer' },
621
- { name: 'babel', installName: 'babel-cli' },
622
- { name: 'javascript-obfuscator', version: '4' },
623
- { name: 'uglifyjs', installName: 'uglify-js' },
694
+ /* */
695
+ /* */
696
+ /* */
697
+ /* */
698
+ /* */
699
+ /* */
700
+ /* */
701
+ /* */
702
+ /* */
703
+ /* */
704
+ /* */
705
+ /* */
706
+ /* */
707
+ /* */
708
+ /* */
709
+ /* */
710
+ /* */
711
+ /* */
712
+ /* */
713
+ /* */
714
+ /* */
715
+ /* */
716
+ /* */
717
+ /* */
718
+ /* */
719
+ /* */
720
+ /* */
721
+ /* */
722
+ /* */
723
+ /* */
724
+ /* */
624
725
  ],
625
726
  niceTools: [
626
- { name: 'speed-test' },
627
- { name: 'npm-name' },
628
- { name: 'vantage', platform: 'linux' },
629
- { name: 'clinic', platform: 'linux' },
630
- { name: 'vtop', platform: 'linux' },
631
- { name: 'public-ip' },
632
- { name: 'empty-trash' },
633
- { name: 'is-up' },
634
- { name: 'is-online' },
635
- { name: 'ttystudio' },
636
- { name: 'bcat' },
637
- { name: 'wifi-password', installName: 'wifi-password-cli' },
638
- { name: 'wallpaper', installName: 'wallpaper-cli' },
639
- { name: 'brightness', installName: 'brightness-cli' },
640
- { name: 'subdownloader' },
641
- { name: 'rtail' },
642
- { name: 'iponmap' },
643
- { name: 'jsome' },
644
- { name: 'drawille', isNotCli: true },
645
- { name: 'columnify', isNotCli: true },
646
- { name: 'multispinner', isNotCli: true },
647
- { name: 'cfonts' }, // draw super nice fonts in console
727
+ /* */
728
+ /* */
729
+ /* */
730
+ /* */
731
+ /* */
732
+ /* */
733
+ /* */
734
+ /* */
735
+ /* */
736
+ /* */
737
+ /* */
738
+ /* */
739
+ /* */
740
+ /* */
741
+ /* */
742
+ /* */
743
+ /* */
744
+ /* */
745
+ /* */
746
+ /* */
747
+ /* */
748
+ /* */
749
+ /* */
648
750
  ],
649
751
  programs: [,
650
- {
651
- name: 'code',
652
- website: 'https://code.visualstudio.com/'
653
- }
752
+ /* */
753
+ /* */
754
+ /* */
755
+ /* */
756
+ /* */
654
757
  ]
655
758
  }
656
759
  };