tnp-helpers 16.0.9 → 16.0.10

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.
Files changed (49) hide show
  1. package/assets/shared/shared_folder_info.txt +1 -1
  2. package/browser/esm2022/lib/base-project.mjs +309 -0
  3. package/browser/esm2022/lib/index.mjs +2 -1
  4. package/browser/esm2022/lib/project.mjs +6 -1
  5. package/browser/fesm2022/tnp-helpers.mjs +315 -3
  6. package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
  7. package/browser/lib/base-project.d.ts +55 -0
  8. package/browser/lib/index.d.ts +1 -0
  9. package/browser/lib/project.d.ts +5 -0
  10. package/client/esm2022/lib/base-project.mjs +309 -0
  11. package/client/esm2022/lib/index.mjs +2 -1
  12. package/client/esm2022/lib/project.mjs +6 -1
  13. package/client/fesm2022/tnp-helpers.mjs +315 -3
  14. package/client/fesm2022/tnp-helpers.mjs.map +1 -1
  15. package/client/lib/base-project.d.ts +55 -0
  16. package/client/lib/index.d.ts +1 -0
  17. package/client/lib/project.d.ts +5 -0
  18. package/client/package.json +17 -10
  19. package/lib/base-project.d.ts +64 -0
  20. package/lib/base-project.js +365 -0
  21. package/lib/base-project.js.map +1 -0
  22. package/lib/for-backend/helpers-file-folders.backend.d.ts +6 -0
  23. package/lib/for-backend/helpers-file-folders.backend.js +12 -1
  24. package/lib/for-backend/helpers-file-folders.backend.js.map +1 -1
  25. package/lib/for-backend/helpers-git.backend.js +9 -0
  26. package/lib/for-backend/helpers-git.backend.js.map +1 -1
  27. package/lib/for-browser/angular.helper.js +3 -3
  28. package/lib/git-project.d.ts +2 -1
  29. package/lib/git-project.js +3 -0
  30. package/lib/git-project.js.map +1 -1
  31. package/lib/index.d.ts +1 -0
  32. package/lib/index.js +1 -0
  33. package/lib/index.js.map +1 -1
  34. package/lib/old/base-component.js +3 -3
  35. package/lib/old/base-formly-component.js +3 -3
  36. package/lib/old/dual-component-ctrl.js +3 -3
  37. package/lib/project.d.ts +5 -0
  38. package/lib/project.js +5 -0
  39. package/lib/project.js.map +1 -1
  40. package/package.json +3 -3
  41. package/tmp-environment.json +21 -14
  42. package/websql/esm2022/lib/base-project.mjs +296 -0
  43. package/websql/esm2022/lib/index.mjs +2 -1
  44. package/websql/esm2022/lib/project.mjs +6 -1
  45. package/websql/fesm2022/tnp-helpers.mjs +301 -4
  46. package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
  47. package/websql/lib/base-project.d.ts +55 -0
  48. package/websql/lib/index.d.ts +1 -0
  49. package/websql/lib/project.d.ts +5 -0
@@ -959,7 +959,12 @@ applyMixins(HelpersFiredev, [
959
959
  /* */
960
960
  /* */
961
961
  /* */
962
- const Helpers$1 = HelpersFiredev.Instance;
962
+ const Helpers$2 = HelpersFiredev.Instance;
963
+ /**
964
+ * @deprecated
965
+ *
966
+ * use BaseProject instead
967
+ */
963
968
  class Project {
964
969
  constructor() {
965
970
  this.cache = {};
@@ -1222,7 +1227,7 @@ class Project {
1222
1227
  }
1223
1228
  }
1224
1229
  static get isBundleMode() {
1225
- if (Helpers$1.isBrowser) {
1230
+ if (Helpers$2.isBrowser) {
1226
1231
  return true;
1227
1232
  }
1228
1233
  /* */
@@ -1361,6 +1366,313 @@ class Project {
1361
1366
  ;
1362
1367
  ({}); // @--end-of-file-for-module=tnp-helpers lib/project.ts
1363
1368
 
1369
+ /* */
1370
+ /* */
1371
+ /* */
1372
+ /* */
1373
+ /* */
1374
+ const Helpers$1 = HelpersFiredev.Instance;
1375
+ const takenPorts = [];
1376
+ class BaseProjectResolver {
1377
+ constructor(classFn) {
1378
+ this.classFn = classFn;
1379
+ this.NPM_PROJECT_KEY = 'npm';
1380
+ this.projects = [];
1381
+ this.emptyLocations = [];
1382
+ }
1383
+ get allowedTypes() {
1384
+ /* */
1385
+ /* */
1386
+ /* */
1387
+ return (void 0);
1388
+ }
1389
+ get Current() {
1390
+ /* */
1391
+ /* */
1392
+ /* */
1393
+ /* */
1394
+ /* */
1395
+ /* */
1396
+ /* */
1397
+ /* */
1398
+ /* */
1399
+ /* */
1400
+ /* */
1401
+ return (void 0);
1402
+ }
1403
+ /**
1404
+ * override this
1405
+ */
1406
+ typeFrom(location) {
1407
+ /* */
1408
+ /* */
1409
+ /* */
1410
+ /* */
1411
+ /* */
1412
+ return (void 0);
1413
+ }
1414
+ From(locationOfProject) {
1415
+ /* */
1416
+ /* */
1417
+ /* */
1418
+ /* */
1419
+ /* */
1420
+ /* */
1421
+ /* */
1422
+ /* */
1423
+ /* */
1424
+ /* */
1425
+ /* */
1426
+ /* */
1427
+ /* */
1428
+ /* */
1429
+ /* */
1430
+ /* */
1431
+ /* */
1432
+ /* */
1433
+ /* */
1434
+ /* */
1435
+ /* */
1436
+ /* */
1437
+ /* */
1438
+ /* */
1439
+ /* */
1440
+ /* */
1441
+ /* */
1442
+ /* */
1443
+ /* */
1444
+ /* */
1445
+ /* */
1446
+ /* */
1447
+ /* */
1448
+ /* */
1449
+ /* */
1450
+ /* */
1451
+ /* */
1452
+ /* */
1453
+ /* */
1454
+ /* */
1455
+ /* */
1456
+ /* */
1457
+ /* */
1458
+ /* */
1459
+ /* */
1460
+ /* */
1461
+ /* */
1462
+ /* */
1463
+ /* */
1464
+ return (void 0);
1465
+ }
1466
+ nearestTo(absoluteLocation, options) {
1467
+ /* */
1468
+ /* */
1469
+ /* */
1470
+ /* */
1471
+ /* */
1472
+ /* */
1473
+ /* */
1474
+ /* */
1475
+ /* */
1476
+ /* */
1477
+ /* */
1478
+ /* */
1479
+ /* */
1480
+ /* */
1481
+ /* */
1482
+ /* */
1483
+ /* */
1484
+ /* */
1485
+ /* */
1486
+ /* */
1487
+ /* */
1488
+ /* */
1489
+ /* */
1490
+ /* */
1491
+ /* */
1492
+ /* */
1493
+ /* */
1494
+ /* */
1495
+ /* */
1496
+ /* */
1497
+ /* */
1498
+ /* */
1499
+ /* */
1500
+ /* */
1501
+ /* */
1502
+ /* */
1503
+ /* */
1504
+ /* */
1505
+ /* */
1506
+ /* */
1507
+ /* */
1508
+ /* */
1509
+ /* */
1510
+ /* */
1511
+ /* */
1512
+ /* */
1513
+ /* */
1514
+ /* */
1515
+ /* */
1516
+ /* */
1517
+ /* */
1518
+ /* */
1519
+ /* */
1520
+ /* */
1521
+ /* */
1522
+ /* */
1523
+ /* */
1524
+ /* */
1525
+ return (void 0);
1526
+ }
1527
+ unload(project) {
1528
+ this.projects = this.projects.filter(f => f !== project);
1529
+ }
1530
+ allProjectFrom(absoluteLocation, stopOnCwd = '/') {
1531
+ /* */
1532
+ /* */
1533
+ /* */
1534
+ /* */
1535
+ /* */
1536
+ /* */
1537
+ /* */
1538
+ /* */
1539
+ /* */
1540
+ /* */
1541
+ /* */
1542
+ /* */
1543
+ /* */
1544
+ /* */
1545
+ /* */
1546
+ /* */
1547
+ /* */
1548
+ /* */
1549
+ /* */
1550
+ /* */
1551
+ /* */
1552
+ /* */
1553
+ /* */
1554
+ /* */
1555
+ /* */
1556
+ /* */
1557
+ return (void 0);
1558
+ }
1559
+ }
1560
+ class BaseProject {
1561
+ static { this.ins = new BaseProjectResolver(BaseProject); }
1562
+ get name() {
1563
+ return this.packageJSON?.name;
1564
+ }
1565
+ get version() {
1566
+ return this.packageJSON?.version;
1567
+ }
1568
+ get parent() {
1569
+ /* */
1570
+ /* */
1571
+ return (void 0);
1572
+ }
1573
+ get genericName() {
1574
+ /* */
1575
+ /* */
1576
+ /* */
1577
+ /* */
1578
+ /* */
1579
+ /* */
1580
+ /* */
1581
+ /* */
1582
+ /* */
1583
+ /* */
1584
+ /* */
1585
+ /* */
1586
+ return (void 0);
1587
+ }
1588
+ /**
1589
+ * try run but continue when it fails
1590
+ * @param command
1591
+ * @param options
1592
+ * @returns
1593
+ */
1594
+ tryRunSync(command
1595
+ /* */
1596
+ /* */
1597
+ ) {
1598
+ /* */
1599
+ /* */
1600
+ /* */
1601
+ /* */
1602
+ /* */
1603
+ /* */
1604
+ return (void 0);
1605
+ }
1606
+ pathFor(relativePath) {
1607
+ /* */
1608
+ /* */
1609
+ /* */
1610
+ /* */
1611
+ /* */
1612
+ return (void 0);
1613
+ }
1614
+ writeJson(relativePath, json) {
1615
+ /* */
1616
+ /* */
1617
+ /* */
1618
+ /* */
1619
+ /* */
1620
+ return (void 0);
1621
+ }
1622
+ run(command
1623
+ /* */
1624
+ /* */
1625
+ ) {
1626
+ /* */
1627
+ /* */
1628
+ /* */
1629
+ /* */
1630
+ /* */
1631
+ return (void 0);
1632
+ }
1633
+ outputFrom(command
1634
+ /* */
1635
+ /* */
1636
+ ) {
1637
+ /* */
1638
+ /* */
1639
+ return (void 0);
1640
+ }
1641
+ remove(relativePath, exactPath = true) {
1642
+ /* */
1643
+ /* */
1644
+ return (void 0);
1645
+ }
1646
+ async assignFreePort(startFrom = 4200) {
1647
+ /* */
1648
+ /* */
1649
+ /* */
1650
+ /* */
1651
+ /* */
1652
+ /* */
1653
+ /* */
1654
+ /* */
1655
+ /* */
1656
+ /* */
1657
+ /* */
1658
+ /* */
1659
+ /* */
1660
+ /* */
1661
+ /* */
1662
+ /* */
1663
+ /* */
1664
+ /* */
1665
+ /* */
1666
+ /* */
1667
+ /* */
1668
+ /* */
1669
+ /* */
1670
+ return (void 0);
1671
+ }
1672
+ }
1673
+ ;
1674
+ ({}); // @--end-of-file-for-module=tnp-helpers lib/base-project.ts
1675
+
1364
1676
  ;
1365
1677
  ({}); // @--end-of-file-for-module=tnp-helpers lib/models.ts
1366
1678
 
@@ -1375,5 +1687,5 @@ const Helpers = HelpersFiredev.Instance;
1375
1687
  * Generated bundle index. Do not edit.
1376
1688
  */
1377
1689
 
1378
- export { Helpers, HelpersAngular, Project, Validators };
1690
+ export { BaseProject, BaseProjectResolver, Helpers, HelpersAngular, Project, Validators };
1379
1691
  //# sourceMappingURL=tnp-helpers.mjs.map