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/websql';
1
2
  export { CoreHelpers as Helpers } from 'tnp-core/websql';
2
3
 
3
4
  /**
@@ -5,48 +6,59 @@ export { CoreHelpers as Helpers } from 'tnp-core/websql';
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,19 +70,21 @@ 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 = 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
- file.package_json__tnp_json,
72
- file.package_json__tnp_json5,
73
- file.package_json__devDependencies_json,
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
- 'css',
101
- 'sass',
102
- 'scss',
103
- 'less',
114
+ /* */
115
+ /* */
116
+ /* */
117
+ /* */
118
+ /* */
104
119
  ];
105
- const folder = Object.assign({ scripts: 'scripts', scenarios: 'scenarios', bower: 'bower', src: 'src', out: 'out', app: 'app', lib: 'lib', libs: 'libs', source: 'source', custom: 'custom', components: 'components', assets: 'assets', apps: 'apps', workspace: 'workspace', container: 'container', bin: 'bin', _bin: '.bin', _vscode: '.vscode', project: 'project', external: 'external', tmpDist: 'tmp-dist', tmpFor(d) {
106
- return `tmp-src-${d}`;
107
- }, targetProjects: {
108
- DEFAULT_PATH_GENERATED: 'tmp-target-projects/generated',
109
- DEFAULT_PATH_ORIGINS: 'tmp-target-projects/origins',
110
- } }, tempFolders);
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
- folder.components,
199
- folder.module,
200
- folder.dist,
201
- folder.browser,
249
+ /* */
250
+ /* */
251
+ /* */
252
+ /* */
253
+ /* */
202
254
  ];
203
255
  const moduleNameIsomorphicLib = [
204
- folder.src,
205
- folder.dist,
206
- folder.browser,
256
+ /* */
257
+ /* */
258
+ /* */
259
+ /* */
207
260
  ];
208
261
  const argsReplacementsBuild = {
209
- 'ba': 'build:app',
210
- 'baw': 'build:app:watch',
211
- 'bw': 'build:watch',
212
- 'bda': 'build:dist:app',
213
- 'bdap': 'build:dist:app:prod',
214
- 'bd': 'build:dist',
215
- 'bdw': 'build:dist:watch',
216
- 'bba': 'build:bundle:app',
217
- 'bbap': 'build:bundle:app:prod',
218
- 'bb': 'build:bundle',
219
- 'bbw': 'build:bundle:watch',
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
- 'ghpush': 'githubpush',
223
- 'ghpull': 'githubpull',
224
- 'l': 'last',
225
- 'sl': 'show:last',
226
- 'lb': 'last:build',
227
- 'i': 'install',
228
- 'si': 'sinstall',
229
- 'il': 'install:locally',
230
- 'rc': 'recommit',
231
- 'rp': 'release:prod',
232
- 'r': 'release',
233
- 'rmajor': 'release:major',
234
- 'rminor': 'release:minor',
235
- 'r:major': 'release:major',
236
- 'r:minor': 'release:minor',
237
- 'ar': 'auto:release',
238
- 're': 'reinstall',
239
- '--version': 'version',
240
- '-v': 'version',
241
- 'occ': 'open:core:container',
242
- 'ocp': 'open:core:project',
243
- 'twd': 'test:watch:debug',
244
- 'tdw': 'test:watch:debug',
245
- 'tw': 'test:watch',
246
- 'td': 'test:debug',
247
- 't': 'test',
248
- 'pt': 'push:tag',
249
- 'p': 'push',
250
- 'pa': 'pushalll',
251
- 'sj': 'select:java',
252
- 'scm': 'showcoremodules',
253
- 'tpu': 'target:proj:update',
254
- 'ugd': 'update:global:deps',
255
- 'ud': 'update:deps',
256
- 'dgl': 'detect:global:libs',
257
- 'pr': 'print:relatives',
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
- '@angular',
261
- '@ngrx',
262
- 'rxjs',
263
- 'zone.js',
264
- 'tslib',
265
- 'typescript',
266
- 'webpack'
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
- missingLibs: [
285
- 'react-native-sqlite-storage'
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
- UNIT_TEST_TIMEOUT: 30000,
301
- INTEGRATION_TEST: 30000,
302
- BACKEND_HTTP_REQUEST_TIMEOUT: 3000,
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
- cloud: {
425
- environment: {
426
- name: 'online'
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
- * Modify source: import,export, requires
443
- */
444
- get modificableByReplaceFn() {
445
- return [
446
- 'ts',
447
- 'js',
448
- ...stylesFilesExtension,
449
- ].map(f => `.${f}`);
450
- },
555
+ /* */
556
+ /* */
557
+ /* */
558
+ /* */
559
+ /* */
560
+ /* */
561
+ /* */
562
+ /* */
563
+ /* */
564
+ /* */
565
+ /* */
451
566
  },
452
567
  notFiredevProjects: [
453
- 'unknow', 'unknow-npm-project', 'scenario', 'navi'
568
+ /* */
569
+ /* */
454
570
  ],
455
571
  /**
456
572
  * Build allowed types
457
573
  */
458
574
  allowedTypes: {
459
- /**
460
- * Projects for build:app:watch command
461
- */
462
- app: [
463
- GlobalLibTypeName.angularClient,
464
- GlobalLibTypeName.angularLib,
465
- GlobalLibTypeName.isomorphicLib,
466
- GlobalLibTypeName.ionicClient,
467
- GlobalLibTypeName.docker,
468
- GlobalLibTypeName.container,
469
- GlobalLibTypeName.vscodeExt,
470
- ],
471
- /**
472
- * Projects for build:(dist|bundle):(watch) command
473
- */
474
- libs: [
475
- GlobalLibTypeName.angularLib,
476
- GlobalLibTypeName.isomorphicLib,
477
- GlobalLibTypeName.workspace,
478
- GlobalLibTypeName.container,
479
- GlobalLibTypeName.docker,
480
- GlobalLibTypeName.vscodeExt,
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
- forNpmLibs: [
491
- GlobalLibTypeName.angularLib,
492
- GlobalLibTypeName.isomorphicLib,
493
- ],
494
- with: {
495
- angularAsCore: [
496
- GlobalLibTypeName.angularClient,
497
- GlobalLibTypeName.angularLib,
498
- GlobalLibTypeName.ionicClient,
499
- ],
500
- componetsAsSrc: [
501
- GlobalLibTypeName.angularLib,
502
- ],
503
- }
607
+ /* */
608
+ /* */
609
+ /* */
610
+ /* */
611
+ /* */
612
+ /* */
613
+ /* */
614
+ /* */
615
+ /* */
616
+ /* */
617
+ /* */
618
+ /* */
619
+ /* */
620
+ /* */
621
+ /* */
504
622
  },
505
623
  localLibs: [
506
- 'eslint',
507
- 'mkdirp',
508
- 'gulp',
509
- 'npm-run',
510
- 'rimraf',
511
- 'nodemon',
512
- 'release-it',
513
- 'tsc',
514
- 'watch',
515
- 'http-server',
516
- 'ts-node',
517
- 'sort-package-json',
518
- 'concurrently',
519
- 'sloc',
520
- 'morphi'
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
- { name: '@angular/cli', version: '13' },
531
- { name: 'ncc', version: '0.36.0', installName: '@vercel/ncc' },
532
- { name: 'extract-zip', version: '1.6.7' },
533
- { name: 'watch', version: '1.0.2' },
534
- { name: 'cpr' },
535
- { name: 'check-node-version' },
536
- { name: 'npm-run', version: '4.1.2' },
537
- { name: 'rimraf' },
538
- { name: 'mkdirp' },
539
- { name: 'renamer', version: '2.0.1' },
540
- { name: 'nodemon' },
541
- { name: 'madge' },
542
- { name: 'yarn' },
543
- { name: 'http-server' },
544
- { name: 'increase-memory-limit' },
545
- { name: 'bower' },
546
- { name: 'fkill', installName: 'fkill-cli' },
547
- { name: 'mocha' },
548
- { name: 'ts-node' },
549
- { name: 'vsce' },
550
- { name: 'webpack-bundle-analyzer' },
551
- { name: 'babel', installName: 'babel-cli' },
552
- { name: 'javascript-obfuscator', version: '4' },
553
- { name: 'uglifyjs', installName: 'uglify-js' },
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
- { name: 'speed-test' },
557
- { name: 'npm-name' },
558
- { name: 'vantage', platform: 'linux' },
559
- { name: 'clinic', platform: 'linux' },
560
- { name: 'vtop', platform: 'linux' },
561
- { name: 'public-ip' },
562
- { name: 'empty-trash' },
563
- { name: 'is-up' },
564
- { name: 'is-online' },
565
- { name: 'ttystudio' },
566
- { name: 'bcat' },
567
- { name: 'wifi-password', installName: 'wifi-password-cli' },
568
- { name: 'wallpaper', installName: 'wallpaper-cli' },
569
- { name: 'brightness', installName: 'brightness-cli' },
570
- { name: 'subdownloader' },
571
- { name: 'rtail' },
572
- { name: 'iponmap' },
573
- { name: 'jsome' },
574
- { name: 'drawille', isNotCli: true },
575
- { name: 'columnify', isNotCli: true },
576
- { name: 'multispinner', isNotCli: true },
577
- { name: 'cfonts' }, // draw super nice fonts in console
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
- name: 'code',
582
- website: 'https://code.visualstudio.com/'
583
- }
707
+ /* */
708
+ /* */
709
+ /* */
710
+ /* */
711
+ /* */
584
712
  ]
585
713
  }
586
714
  };