tnp-helpers 18.0.16 → 18.0.18
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/README.md +24 -24
- package/browser/esm2022/lib/base/classes/base-cli-worker-config.mjs +40 -0
- package/browser/esm2022/lib/base/classes/base-cli-worker-controller.mjs +125 -0
- package/browser/esm2022/lib/base/classes/base-cli-worker.mjs +466 -0
- package/browser/esm2022/lib/base/classes/base-compiler-for-project.mjs +61 -0
- package/browser/esm2022/lib/base/classes/base-db.mjs +31 -0
- package/browser/esm2022/lib/base/classes/base-debounce-compiler-for-project.mjs +56 -0
- package/browser/esm2022/lib/base/classes/base-feature-for-project.mjs +8 -0
- package/{websql/esm2022/lib/base → browser/esm2022/lib/base/classes}/base-git.mjs +2 -2
- package/{websql/esm2022/lib/base → browser/esm2022/lib/base/classes}/base-github-pages.mjs +2 -2
- package/{websql/esm2022/lib/base → browser/esm2022/lib/base/classes}/base-library-build.mjs +3 -3
- package/browser/esm2022/lib/base/classes/base-linked-projects.mjs +320 -0
- package/browser/esm2022/lib/base/classes/base-npm-helpers.mjs +630 -0
- package/browser/esm2022/lib/base/classes/base-project-resolver.mjs +291 -0
- package/browser/esm2022/lib/base/classes/base-project.mjs +926 -0
- package/browser/esm2022/lib/base/classes/base-quick-fixes.mjs +24 -0
- package/{websql/esm2022/lib/base → browser/esm2022/lib/base/classes}/base-release-process.mjs +4 -4
- package/browser/esm2022/lib/base/classes/base-vscode.mjs +488 -0
- package/browser/esm2022/lib/base/classes/index.mjs +22 -0
- package/browser/esm2022/lib/base/commit-data.mjs +1 -1
- package/browser/esm2022/lib/base/config-database.mjs +5 -2
- package/browser/esm2022/lib/base/core-project.mjs +1 -1
- package/browser/esm2022/lib/base/index.mjs +3 -19
- package/browser/esm2022/lib/base/project-database.mjs +2 -2
- package/browser/esm2022/lib/base/tcp-udp-ports/index.mjs +7 -0
- package/browser/esm2022/lib/base/tcp-udp-ports/not-assignable-port.entity.mjs +19 -0
- package/browser/esm2022/lib/base/tcp-udp-ports/ports.controller.mjs +108 -0
- package/browser/esm2022/lib/base/tcp-udp-ports/ports.entity.mjs +26 -0
- package/browser/esm2022/lib/base/tcp-udp-ports/tcp-udp-ports.context.mjs +35 -0
- package/browser/esm2022/lib/base/tcp-udp-ports/tcp-upd-ports.worker.mjs +122 -0
- package/browser/esm2022/lib/utils.mjs +33 -144
- package/browser/esm2022/migrations/1736198527297_init.mjs +41 -0
- package/browser/esm2022/migrations/1736199486472_addingNotAssignablePorts.mjs +55 -0
- package/browser/esm2022/migrations/1736454437350_addFreePorts.mjs +37 -0
- package/browser/esm2022/migrations/index.mjs +5 -0
- package/browser/esm2022/migrations/migrations_index._auto-generated_.mjs +16 -0
- package/browser/fesm2022/tnp-helpers.mjs +2136 -1591
- package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
- package/{client/lib/base → browser/lib/base/classes}/base-cli-worker-controller.d.ts +2 -2
- package/browser/lib/base/{base-cli-worker.d.ts → classes/base-cli-worker.d.ts} +7 -1
- package/browser/lib/base/{base-git.d.ts → classes/base-git.d.ts} +1 -1
- package/{client/lib/base → browser/lib/base/classes}/base-library-build.d.ts +1 -1
- package/{websql/lib/base → browser/lib/base/classes}/base-linked-projects.d.ts +1 -1
- package/{client/lib/base → browser/lib/base/classes}/base-project-resolver.d.ts +4 -4
- package/browser/lib/base/{base-project.d.ts → classes/base-project.d.ts} +11 -4
- package/browser/lib/base/{base-release-process.d.ts → classes/base-release-process.d.ts} +1 -1
- package/browser/lib/base/classes/base-vscode.d.ts +24 -0
- package/browser/lib/base/classes/index.d.ts +16 -0
- package/browser/lib/base/config-database.d.ts +2 -2
- package/browser/lib/base/core-project.d.ts +1 -1
- package/browser/lib/base/index.d.ts +3 -16
- package/browser/lib/base/project-database.d.ts +2 -2
- package/browser/lib/base/tcp-udp-ports/index.d.ts +5 -0
- package/browser/lib/base/tcp-udp-ports/not-assignable-port.entity.d.ts +7 -0
- package/browser/lib/base/tcp-udp-ports/ports.controller.d.ts +20 -0
- package/browser/lib/base/tcp-udp-ports/ports.entity.d.ts +15 -0
- package/browser/lib/base/tcp-udp-ports/tcp-udp-ports.context.d.ts +59 -0
- package/browser/lib/base/tcp-udp-ports/tcp-upd-ports.worker.d.ts +23 -0
- package/browser/lib/utils.d.ts +2 -38
- package/browser/migrations/1736198527297_init.d.ts +19 -0
- package/browser/migrations/1736199486472_addingNotAssignablePorts.d.ts +11 -0
- package/browser/migrations/1736454437350_addFreePorts.d.ts +10 -0
- package/browser/migrations/index.d.ts +2 -0
- package/browser/migrations/migrations_index._auto-generated_.d.ts +12 -0
- package/client/README.md +24 -24
- package/client/esm2022/lib/base/classes/base-cli-worker-config.mjs +40 -0
- package/client/esm2022/lib/base/classes/base-cli-worker-controller.mjs +125 -0
- package/client/esm2022/lib/base/classes/base-cli-worker.mjs +466 -0
- package/client/esm2022/lib/base/classes/base-compiler-for-project.mjs +61 -0
- package/client/esm2022/lib/base/classes/base-db.mjs +31 -0
- package/client/esm2022/lib/base/classes/base-debounce-compiler-for-project.mjs +56 -0
- package/client/esm2022/lib/base/classes/base-feature-for-project.mjs +8 -0
- package/client/esm2022/lib/base/classes/base-git.mjs +932 -0
- package/client/esm2022/lib/base/classes/base-github-pages.mjs +110 -0
- package/{browser/esm2022/lib/base → client/esm2022/lib/base/classes}/base-library-build.mjs +2 -2
- package/client/esm2022/lib/base/classes/base-linked-projects.mjs +320 -0
- package/client/esm2022/lib/base/classes/base-npm-helpers.mjs +630 -0
- package/client/esm2022/lib/base/classes/base-project-resolver.mjs +291 -0
- package/client/esm2022/lib/base/classes/base-project.mjs +926 -0
- package/client/esm2022/lib/base/classes/base-quick-fixes.mjs +24 -0
- package/{browser/esm2022/lib/base → client/esm2022/lib/base/classes}/base-release-process.mjs +3 -3
- package/client/esm2022/lib/base/classes/base-vscode.mjs +488 -0
- package/client/esm2022/lib/base/classes/index.mjs +22 -0
- package/client/esm2022/lib/base/commit-data.mjs +1 -1
- package/client/esm2022/lib/base/config-database.mjs +5 -2
- package/client/esm2022/lib/base/core-project.mjs +1 -1
- package/client/esm2022/lib/base/index.mjs +3 -19
- package/client/esm2022/lib/base/project-database.mjs +2 -2
- package/client/esm2022/lib/base/tcp-udp-ports/index.mjs +7 -0
- package/client/esm2022/lib/base/tcp-udp-ports/not-assignable-port.entity.mjs +19 -0
- package/client/esm2022/lib/base/tcp-udp-ports/ports.controller.mjs +108 -0
- package/client/esm2022/lib/base/tcp-udp-ports/ports.entity.mjs +26 -0
- package/client/esm2022/lib/base/tcp-udp-ports/tcp-udp-ports.context.mjs +35 -0
- package/client/esm2022/lib/base/tcp-udp-ports/tcp-upd-ports.worker.mjs +122 -0
- package/client/esm2022/lib/utils.mjs +33 -144
- package/client/esm2022/migrations/1736198527297_init.mjs +41 -0
- package/client/esm2022/migrations/1736199486472_addingNotAssignablePorts.mjs +55 -0
- package/client/esm2022/migrations/1736454437350_addFreePorts.mjs +37 -0
- package/client/esm2022/migrations/index.mjs +5 -0
- package/client/esm2022/migrations/migrations_index._auto-generated_.mjs +16 -0
- package/client/fesm2022/tnp-helpers.mjs +2136 -1591
- package/client/fesm2022/tnp-helpers.mjs.map +1 -1
- package/{browser/lib/base → client/lib/base/classes}/base-cli-worker-controller.d.ts +2 -2
- package/client/lib/base/{base-cli-worker.d.ts → classes/base-cli-worker.d.ts} +7 -1
- package/{websql/lib/base → client/lib/base/classes}/base-git.d.ts +1 -1
- package/{browser/lib/base → client/lib/base/classes}/base-library-build.d.ts +1 -1
- package/{browser/lib/base → client/lib/base/classes}/base-linked-projects.d.ts +1 -1
- package/{websql/lib/base → client/lib/base/classes}/base-project-resolver.d.ts +4 -4
- package/client/lib/base/{base-project.d.ts → classes/base-project.d.ts} +11 -4
- package/client/lib/base/{base-release-process.d.ts → classes/base-release-process.d.ts} +1 -1
- package/client/lib/base/classes/base-vscode.d.ts +24 -0
- package/client/lib/base/classes/index.d.ts +16 -0
- package/client/lib/base/config-database.d.ts +2 -2
- package/client/lib/base/core-project.d.ts +1 -1
- package/client/lib/base/index.d.ts +3 -16
- package/client/lib/base/project-database.d.ts +2 -2
- package/client/lib/base/tcp-udp-ports/index.d.ts +5 -0
- package/client/lib/base/tcp-udp-ports/not-assignable-port.entity.d.ts +7 -0
- package/client/lib/base/tcp-udp-ports/ports.controller.d.ts +20 -0
- package/client/lib/base/tcp-udp-ports/ports.entity.d.ts +15 -0
- package/client/lib/base/tcp-udp-ports/tcp-udp-ports.context.d.ts +59 -0
- package/client/lib/base/tcp-udp-ports/tcp-upd-ports.worker.d.ts +23 -0
- package/client/lib/utils.d.ts +2 -38
- package/client/migrations/1736198527297_init.d.ts +19 -0
- package/client/migrations/1736199486472_addingNotAssignablePorts.d.ts +11 -0
- package/client/migrations/1736454437350_addFreePorts.d.ts +10 -0
- package/client/migrations/index.d.ts +2 -0
- package/client/migrations/migrations_index._auto-generated_.d.ts +12 -0
- package/lib/base/{base-cli-worker-controller.d.ts → classes/base-cli-worker-controller.d.ts} +4 -4
- package/lib/base/{base-cli-worker-controller.js → classes/base-cli-worker-controller.js} +3 -3
- package/lib/base/classes/base-cli-worker-controller.js.map +1 -0
- package/lib/base/{base-cli-worker.d.ts → classes/base-cli-worker.d.ts} +7 -1
- package/lib/base/{base-cli-worker.js → classes/base-cli-worker.js} +48 -29
- package/lib/base/classes/base-cli-worker.js.map +1 -0
- package/lib/base/{command-line-feature.backend.d.ts → classes/base-command-line-feature.backend.d.ts} +1 -1
- package/lib/base/{command-line-feature.backend.js → classes/base-command-line-feature.backend.js} +15 -15
- package/lib/base/classes/base-command-line-feature.backend.js.map +1 -0
- package/lib/base/{base-compiler-for-project.d.ts → classes/base-compiler-for-project.d.ts} +2 -2
- package/lib/base/{base-compiler-for-project.js → classes/base-compiler-for-project.js} +1 -1
- package/lib/base/{base-compiler-for-project.js.map → classes/base-compiler-for-project.js.map} +1 -1
- package/lib/base/{base-db.d.ts → classes/base-db.d.ts} +1 -1
- package/lib/base/{base-db.js → classes/base-db.js} +1 -1
- package/lib/base/{base-db.js.map → classes/base-db.js.map} +1 -1
- package/lib/base/{base-debounce-compiler-for-project.d.ts → classes/base-debounce-compiler-for-project.d.ts} +2 -2
- package/lib/base/{base-debounce-compiler-for-project.js.map → classes/base-debounce-compiler-for-project.js.map} +1 -1
- package/lib/base/{base-git.d.ts → classes/base-git.d.ts} +1 -1
- package/lib/base/{base-git.js → classes/base-git.js} +3 -3
- package/lib/base/{base-git.js.map → classes/base-git.js.map} +1 -1
- package/lib/base/{base-github-pages.js → classes/base-github-pages.js} +1 -1
- package/lib/base/{base-github-pages.js.map → classes/base-github-pages.js.map} +1 -1
- package/lib/base/{base-command-line.backend.d.ts → classes/base-global-command-line.backend.d.ts} +17 -4
- package/lib/base/{base-command-line.backend.js → classes/base-global-command-line.backend.js} +236 -161
- package/lib/base/classes/base-global-command-line.backend.js.map +1 -0
- package/lib/base/{base-ignore-hide.js → classes/base-ignore-hide.js} +1 -1
- package/lib/base/{base-ignore-hide.js.map → classes/base-ignore-hide.js.map} +1 -1
- package/lib/base/{base-library-build.d.ts → classes/base-library-build.d.ts} +3 -3
- package/lib/base/{base-library-build.js → classes/base-library-build.js} +2 -2
- package/lib/base/{base-library-build.js.map → classes/base-library-build.js.map} +1 -1
- package/lib/base/{base-linked-projects.d.ts → classes/base-linked-projects.d.ts} +1 -1
- package/lib/base/{base-linked-projects.js → classes/base-linked-projects.js} +1 -1
- package/lib/base/{base-linked-projects.js.map → classes/base-linked-projects.js.map} +1 -1
- package/lib/base/{base-npm-helpers.d.ts → classes/base-npm-helpers.d.ts} +3 -3
- package/lib/base/{base-npm-helpers.js → classes/base-npm-helpers.js} +1 -1
- package/lib/base/{base-npm-helpers.js.map → classes/base-npm-helpers.js.map} +1 -1
- package/lib/base/{base-project-resolver.d.ts → classes/base-project-resolver.d.ts} +4 -4
- package/lib/base/{base-project-resolver.js → classes/base-project-resolver.js} +6 -6
- package/lib/base/{base-project-resolver.js.map → classes/base-project-resolver.js.map} +1 -1
- package/lib/base/{base-project.d.ts → classes/base-project.d.ts} +14 -7
- package/lib/base/{base-project.js → classes/base-project.js} +34 -5
- package/lib/base/classes/base-project.js.map +1 -0
- package/lib/base/{base-quick-fixes.js → classes/base-quick-fixes.js} +1 -1
- package/lib/base/{base-quick-fixes.js.map → classes/base-quick-fixes.js.map} +1 -1
- package/lib/base/{base-release-process.d.ts → classes/base-release-process.d.ts} +3 -3
- package/lib/base/{base-release-process.js → classes/base-release-process.js} +2 -2
- package/lib/base/{base-release-process.js.map → classes/base-release-process.js.map} +1 -1
- package/lib/base/{base-start-config.backend.js → classes/base-start-config.backend.js} +2 -2
- package/lib/base/{base-start-config.backend.js.map → classes/base-start-config.backend.js.map} +1 -1
- package/lib/base/classes/base-vscode.d.ts +23 -0
- package/lib/base/classes/base-vscode.js +451 -0
- package/lib/base/classes/base-vscode.js.map +1 -0
- package/lib/base/classes/index.d.ts +18 -0
- package/lib/base/classes/index.js +24 -0
- package/lib/base/classes/index.js.map +1 -0
- package/lib/base/commit-data.js.map +1 -1
- package/lib/base/config-database.d.ts +2 -2
- package/lib/base/config-database.js +5 -8
- package/lib/base/config-database.js.map +1 -1
- package/lib/base/core-project.d.ts +3 -3
- package/lib/base/gh-temp-code.d.ts +1 -1
- package/lib/base/index.d.ts +2 -18
- package/lib/base/index.js +2 -18
- package/lib/base/index.js.map +1 -1
- package/lib/base/project-database.d.ts +2 -2
- package/lib/base/project-database.js +1 -1
- package/lib/base/project-database.js.map +1 -1
- package/lib/base/tcp-udp-ports/index.d.ts +4 -0
- package/lib/base/tcp-udp-ports/index.js +8 -0
- package/lib/base/tcp-udp-ports/index.js.map +1 -0
- package/lib/base/tcp-udp-ports/not-assignable-port.entity.d.ts +6 -0
- package/lib/base/tcp-udp-ports/not-assignable-port.entity.js +45 -0
- package/lib/base/tcp-udp-ports/not-assignable-port.entity.js.map +1 -0
- package/lib/base/tcp-udp-ports/ports.controller.d.ts +19 -0
- package/lib/base/tcp-udp-ports/ports.controller.js +135 -0
- package/lib/base/tcp-udp-ports/ports.controller.js.map +1 -0
- package/lib/base/tcp-udp-ports/ports.entity.d.ts +14 -0
- package/lib/base/tcp-udp-ports/ports.entity.js +45 -0
- package/lib/base/tcp-udp-ports/ports.entity.js.map +1 -0
- package/lib/base/tcp-udp-ports/tcp-udp-ports.context.d.ts +58 -0
- package/lib/base/tcp-udp-ports/tcp-udp-ports.context.js +41 -0
- package/lib/base/tcp-udp-ports/tcp-udp-ports.context.js.map +1 -0
- package/lib/base/tcp-udp-ports/tcp-upd-ports.worker.d.ts +31 -0
- package/lib/base/tcp-udp-ports/tcp-upd-ports.worker.js +215 -0
- package/lib/base/tcp-udp-ports/tcp-upd-ports.worker.js.map +1 -0
- package/lib/helpers/for-backend/helpers-cli-tool.backend.d.ts +1 -1
- package/lib/helpers/for-backend/helpers-cli-tool.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-console-gui.js +2 -1
- package/lib/helpers/for-backend/helpers-console-gui.js.map +1 -1
- package/lib/helpers/for-backend/helpers-file-folders.backend.d.ts +2 -2
- package/lib/helpers/for-backend/helpers-git.backend.js +2 -2
- package/lib/helpers/for-backend/helpers-git.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-process.backend.d.ts +3 -3
- package/lib/helpers/for-backend/helpers-process.backend.js +4 -26
- package/lib/helpers/for-backend/helpers-process.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-vscode.backend.d.ts +2 -2
- package/lib/helpers/for-browser/angular.helper.js +2 -2
- package/lib/helpers/helpers.d.ts +1 -1
- package/lib/models.d.ts +2 -2
- package/lib/old/base-component.js +2 -2
- package/lib/old/base-formly-component.js +2 -2
- package/lib/old/dual-component-ctrl.js +2 -2
- package/lib/utils.d.ts +2 -38
- package/lib/utils.js +51 -158
- package/lib/utils.js.map +1 -1
- package/migrations/1736198527297_init.d.ts +18 -0
- package/migrations/1736198527297_init.js +72 -0
- package/migrations/1736198527297_init.js.map +1 -0
- package/migrations/1736199486472_addingNotAssignablePorts.d.ts +10 -0
- package/migrations/1736199486472_addingNotAssignablePorts.js +94 -0
- package/migrations/1736199486472_addingNotAssignablePorts.js.map +1 -0
- package/migrations/1736454437350_addFreePorts.d.ts +9 -0
- package/migrations/1736454437350_addFreePorts.js +78 -0
- package/migrations/1736454437350_addFreePorts.js.map +1 -0
- package/migrations/migrations_index._auto-generated_.d.ts +11 -0
- package/migrations/migrations_index._auto-generated_.js +14 -0
- package/migrations/migrations_index._auto-generated_.js.map +1 -1
- package/package.json +5 -5
- package/taon.jsonc +49 -49
- package/tmp-environment.json +30 -29
- package/websql/README.md +24 -24
- package/websql/esm2022/lib/base/classes/base-cli-worker-config.mjs +40 -0
- package/websql/esm2022/lib/base/classes/base-cli-worker-controller.mjs +125 -0
- package/websql/esm2022/lib/base/classes/base-cli-worker.mjs +466 -0
- package/websql/esm2022/lib/base/classes/base-compiler-for-project.mjs +61 -0
- package/websql/esm2022/lib/base/classes/base-db.mjs +31 -0
- package/websql/esm2022/lib/base/classes/base-debounce-compiler-for-project.mjs +56 -0
- package/websql/esm2022/lib/base/classes/base-feature-for-project.mjs +8 -0
- package/{browser/esm2022/lib/base → websql/esm2022/lib/base/classes}/base-git.mjs +2 -2
- package/{client/esm2022/lib/base → websql/esm2022/lib/base/classes}/base-github-pages.mjs +2 -2
- package/{client/esm2022/lib/base → websql/esm2022/lib/base/classes}/base-library-build.mjs +3 -3
- package/websql/esm2022/lib/base/classes/base-linked-projects.mjs +320 -0
- package/websql/esm2022/lib/base/classes/base-npm-helpers.mjs +630 -0
- package/websql/esm2022/lib/base/classes/base-project-resolver.mjs +280 -0
- package/websql/esm2022/lib/base/classes/base-project.mjs +896 -0
- package/websql/esm2022/lib/base/classes/base-quick-fixes.mjs +24 -0
- package/{client/esm2022/lib/base → websql/esm2022/lib/base/classes}/base-release-process.mjs +4 -4
- package/websql/esm2022/lib/base/classes/base-vscode.mjs +488 -0
- package/websql/esm2022/lib/base/classes/index.mjs +22 -0
- package/websql/esm2022/lib/base/commit-data.mjs +1 -1
- package/websql/esm2022/lib/base/config-database.mjs +5 -2
- package/websql/esm2022/lib/base/core-project.mjs +1 -1
- package/websql/esm2022/lib/base/index.mjs +3 -19
- package/websql/esm2022/lib/base/project-database.mjs +2 -2
- package/websql/esm2022/lib/base/tcp-udp-ports/index.mjs +7 -0
- package/websql/esm2022/lib/base/tcp-udp-ports/not-assignable-port.entity.mjs +34 -0
- package/websql/esm2022/lib/base/tcp-udp-ports/ports.controller.mjs +108 -0
- package/websql/esm2022/lib/base/tcp-udp-ports/ports.entity.mjs +34 -0
- package/websql/esm2022/lib/base/tcp-udp-ports/tcp-udp-ports.context.mjs +35 -0
- package/websql/esm2022/lib/base/tcp-udp-ports/tcp-upd-ports.worker.mjs +122 -0
- package/websql/esm2022/lib/utils.mjs +33 -144
- package/websql/esm2022/migrations/1736198527297_init.mjs +41 -0
- package/websql/esm2022/migrations/1736199486472_addingNotAssignablePorts.mjs +55 -0
- package/websql/esm2022/migrations/1736454437350_addFreePorts.mjs +37 -0
- package/websql/esm2022/migrations/index.mjs +5 -0
- package/websql/esm2022/migrations/migrations_index._auto-generated_.mjs +16 -0
- package/websql/fesm2022/tnp-helpers.mjs +1942 -1379
- package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
- package/websql/lib/base/{base-cli-worker-controller.d.ts → classes/base-cli-worker-controller.d.ts} +2 -2
- package/websql/lib/base/{base-cli-worker.d.ts → classes/base-cli-worker.d.ts} +7 -1
- package/{client/lib/base → websql/lib/base/classes}/base-git.d.ts +1 -1
- package/websql/lib/base/{base-library-build.d.ts → classes/base-library-build.d.ts} +1 -1
- package/{client/lib/base → websql/lib/base/classes}/base-linked-projects.d.ts +1 -1
- package/{browser/lib/base → websql/lib/base/classes}/base-project-resolver.d.ts +4 -4
- package/websql/lib/base/{base-project.d.ts → classes/base-project.d.ts} +11 -4
- package/websql/lib/base/{base-release-process.d.ts → classes/base-release-process.d.ts} +1 -1
- package/websql/lib/base/classes/base-vscode.d.ts +24 -0
- package/websql/lib/base/classes/index.d.ts +16 -0
- package/websql/lib/base/config-database.d.ts +2 -2
- package/websql/lib/base/core-project.d.ts +1 -1
- package/websql/lib/base/index.d.ts +3 -16
- package/websql/lib/base/project-database.d.ts +2 -2
- package/websql/lib/base/tcp-udp-ports/index.d.ts +5 -0
- package/websql/lib/base/tcp-udp-ports/not-assignable-port.entity.d.ts +7 -0
- package/websql/lib/base/tcp-udp-ports/ports.controller.d.ts +20 -0
- package/websql/lib/base/tcp-udp-ports/ports.entity.d.ts +15 -0
- package/websql/lib/base/tcp-udp-ports/tcp-udp-ports.context.d.ts +59 -0
- package/websql/lib/base/tcp-udp-ports/tcp-upd-ports.worker.d.ts +23 -0
- package/websql/lib/utils.d.ts +2 -38
- package/websql/migrations/1736198527297_init.d.ts +19 -0
- package/websql/migrations/1736199486472_addingNotAssignablePorts.d.ts +11 -0
- package/websql/migrations/1736454437350_addFreePorts.d.ts +10 -0
- package/websql/migrations/index.d.ts +2 -0
- package/websql/migrations/migrations_index._auto-generated_.d.ts +12 -0
- package/browser/esm2022/lib/base/base-cli-worker-config.mjs +0 -40
- package/browser/esm2022/lib/base/base-cli-worker-controller.mjs +0 -125
- package/browser/esm2022/lib/base/base-cli-worker.mjs +0 -451
- package/browser/esm2022/lib/base/base-compiler-for-project.mjs +0 -61
- package/browser/esm2022/lib/base/base-db.mjs +0 -31
- package/browser/esm2022/lib/base/base-debounce-compiler-for-project.mjs +0 -56
- package/browser/esm2022/lib/base/base-feature-for-project.mjs +0 -8
- package/browser/esm2022/lib/base/base-github-pages.mjs +0 -110
- package/browser/esm2022/lib/base/base-linked-projects.mjs +0 -321
- package/browser/esm2022/lib/base/base-npm-helpers.mjs +0 -630
- package/browser/esm2022/lib/base/base-project-resolver.mjs +0 -291
- package/browser/esm2022/lib/base/base-project.mjs +0 -911
- package/browser/esm2022/lib/base/base-quick-fixes.mjs +0 -24
- package/browser/esm2022/lib/base/base-vscode.mjs +0 -145
- package/browser/esm2022/lib/base/ports-worker.mjs +0 -162
- package/browser/lib/base/base-vscode.d.ts +0 -13
- package/browser/lib/base/ports-worker.d.ts +0 -33
- package/client/esm2022/lib/base/base-cli-worker-config.mjs +0 -40
- package/client/esm2022/lib/base/base-cli-worker-controller.mjs +0 -125
- package/client/esm2022/lib/base/base-cli-worker.mjs +0 -451
- package/client/esm2022/lib/base/base-compiler-for-project.mjs +0 -61
- package/client/esm2022/lib/base/base-db.mjs +0 -31
- package/client/esm2022/lib/base/base-debounce-compiler-for-project.mjs +0 -56
- package/client/esm2022/lib/base/base-feature-for-project.mjs +0 -8
- package/client/esm2022/lib/base/base-git.mjs +0 -932
- package/client/esm2022/lib/base/base-linked-projects.mjs +0 -321
- package/client/esm2022/lib/base/base-npm-helpers.mjs +0 -630
- package/client/esm2022/lib/base/base-project-resolver.mjs +0 -291
- package/client/esm2022/lib/base/base-project.mjs +0 -911
- package/client/esm2022/lib/base/base-quick-fixes.mjs +0 -24
- package/client/esm2022/lib/base/base-vscode.mjs +0 -145
- package/client/esm2022/lib/base/ports-worker.mjs +0 -162
- package/client/lib/base/base-vscode.d.ts +0 -13
- package/client/lib/base/ports-worker.d.ts +0 -33
- package/lib/base/base-cli-worker-controller.js.map +0 -1
- package/lib/base/base-cli-worker.js.map +0 -1
- package/lib/base/base-command-line.backend.js.map +0 -1
- package/lib/base/base-project.js.map +0 -1
- package/lib/base/base-vscode.d.ts +0 -12
- package/lib/base/base-vscode.js +0 -139
- package/lib/base/base-vscode.js.map +0 -1
- package/lib/base/command-line-feature.backend.js.map +0 -1
- package/lib/base/ports-worker.d.ts +0 -32
- package/lib/base/ports-worker.js +0 -244
- package/lib/base/ports-worker.js.map +0 -1
- package/websql/esm2022/lib/base/base-cli-worker-config.mjs +0 -40
- package/websql/esm2022/lib/base/base-cli-worker-controller.mjs +0 -125
- package/websql/esm2022/lib/base/base-cli-worker.mjs +0 -451
- package/websql/esm2022/lib/base/base-compiler-for-project.mjs +0 -61
- package/websql/esm2022/lib/base/base-db.mjs +0 -31
- package/websql/esm2022/lib/base/base-debounce-compiler-for-project.mjs +0 -56
- package/websql/esm2022/lib/base/base-feature-for-project.mjs +0 -8
- package/websql/esm2022/lib/base/base-linked-projects.mjs +0 -321
- package/websql/esm2022/lib/base/base-npm-helpers.mjs +0 -630
- package/websql/esm2022/lib/base/base-project-resolver.mjs +0 -280
- package/websql/esm2022/lib/base/base-project.mjs +0 -883
- package/websql/esm2022/lib/base/base-quick-fixes.mjs +0 -24
- package/websql/esm2022/lib/base/base-vscode.mjs +0 -145
- package/websql/esm2022/lib/base/ports-worker.mjs +0 -165
- package/websql/lib/base/base-vscode.d.ts +0 -13
- package/websql/lib/base/ports-worker.d.ts +0 -33
- /package/browser/lib/base/{base-cli-worker-config.d.ts → classes/base-cli-worker-config.d.ts} +0 -0
- /package/browser/lib/base/{base-compiler-for-project.d.ts → classes/base-compiler-for-project.d.ts} +0 -0
- /package/browser/lib/base/{base-db.d.ts → classes/base-db.d.ts} +0 -0
- /package/browser/lib/base/{base-debounce-compiler-for-project.d.ts → classes/base-debounce-compiler-for-project.d.ts} +0 -0
- /package/browser/lib/base/{base-feature-for-project.d.ts → classes/base-feature-for-project.d.ts} +0 -0
- /package/browser/lib/base/{base-github-pages.d.ts → classes/base-github-pages.d.ts} +0 -0
- /package/browser/lib/base/{base-npm-helpers.d.ts → classes/base-npm-helpers.d.ts} +0 -0
- /package/browser/lib/base/{base-quick-fixes.d.ts → classes/base-quick-fixes.d.ts} +0 -0
- /package/client/lib/base/{base-cli-worker-config.d.ts → classes/base-cli-worker-config.d.ts} +0 -0
- /package/client/lib/base/{base-compiler-for-project.d.ts → classes/base-compiler-for-project.d.ts} +0 -0
- /package/client/lib/base/{base-db.d.ts → classes/base-db.d.ts} +0 -0
- /package/client/lib/base/{base-debounce-compiler-for-project.d.ts → classes/base-debounce-compiler-for-project.d.ts} +0 -0
- /package/client/lib/base/{base-feature-for-project.d.ts → classes/base-feature-for-project.d.ts} +0 -0
- /package/client/lib/base/{base-github-pages.d.ts → classes/base-github-pages.d.ts} +0 -0
- /package/client/lib/base/{base-npm-helpers.d.ts → classes/base-npm-helpers.d.ts} +0 -0
- /package/client/lib/base/{base-quick-fixes.d.ts → classes/base-quick-fixes.d.ts} +0 -0
- /package/lib/base/{base-cli-worker-config.d.ts → classes/base-cli-worker-config.d.ts} +0 -0
- /package/lib/base/{base-cli-worker-config.js → classes/base-cli-worker-config.js} +0 -0
- /package/lib/base/{base-cli-worker-config.js.map → classes/base-cli-worker-config.js.map} +0 -0
- /package/lib/base/{base-debounce-compiler-for-project.js → classes/base-debounce-compiler-for-project.js} +0 -0
- /package/lib/base/{base-detached-service.d.ts → classes/base-detached-service.d.ts} +0 -0
- /package/lib/base/{base-detached-service.js → classes/base-detached-service.js} +0 -0
- /package/lib/base/{base-detached-service.js.map → classes/base-detached-service.js.map} +0 -0
- /package/lib/base/{base-feature-for-project.d.ts → classes/base-feature-for-project.d.ts} +0 -0
- /package/lib/base/{base-feature-for-project.js → classes/base-feature-for-project.js} +0 -0
- /package/lib/base/{base-feature-for-project.js.map → classes/base-feature-for-project.js.map} +0 -0
- /package/lib/base/{base-github-pages.d.ts → classes/base-github-pages.d.ts} +0 -0
- /package/lib/base/{base-ignore-hide.d.ts → classes/base-ignore-hide.d.ts} +0 -0
- /package/lib/base/{base-quick-fixes.d.ts → classes/base-quick-fixes.d.ts} +0 -0
- /package/lib/base/{base-start-config.backend.d.ts → classes/base-start-config.backend.d.ts} +0 -0
- /package/websql/lib/base/{base-cli-worker-config.d.ts → classes/base-cli-worker-config.d.ts} +0 -0
- /package/websql/lib/base/{base-compiler-for-project.d.ts → classes/base-compiler-for-project.d.ts} +0 -0
- /package/websql/lib/base/{base-db.d.ts → classes/base-db.d.ts} +0 -0
- /package/websql/lib/base/{base-debounce-compiler-for-project.d.ts → classes/base-debounce-compiler-for-project.d.ts} +0 -0
- /package/websql/lib/base/{base-feature-for-project.d.ts → classes/base-feature-for-project.d.ts} +0 -0
- /package/websql/lib/base/{base-github-pages.d.ts → classes/base-github-pages.d.ts} +0 -0
- /package/websql/lib/base/{base-npm-helpers.d.ts → classes/base-npm-helpers.d.ts} +0 -0
- /package/websql/lib/base/{base-quick-fixes.d.ts → classes/base-quick-fixes.d.ts} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as core from 'tnp-core/websql';
|
|
2
|
-
import { _, CoreModels, Utils, CoreHelpers, crossPlatformPath, path, chalk } from 'tnp-core/websql';
|
|
2
|
+
import { _, CoreModels, Utils, CoreHelpers, UtilsTerminal, crossPlatformPath, path, chalk } from 'tnp-core/websql';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import * as fuzzy from 'fuzzy';
|
|
5
5
|
import { CLASS } from 'typescript-class-helpers/websql';
|
|
6
|
-
import { __decorate,
|
|
6
|
+
import { __decorate, __metadata, __param } from 'tslib';
|
|
7
7
|
import { Taon, BaseContext } from 'taon/websql';
|
|
8
8
|
import { config } from 'tnp-config/websql';
|
|
9
9
|
import { IncCompiler, ChangeOfFile } from 'incremental-compiler/websql';
|
|
@@ -167,6 +167,9 @@ var HelpersAngular;
|
|
|
167
167
|
/* */
|
|
168
168
|
/* */
|
|
169
169
|
/* */
|
|
170
|
+
/* */
|
|
171
|
+
/* */
|
|
172
|
+
/* */
|
|
170
173
|
var UtilsNpm;
|
|
171
174
|
(function (UtilsNpm) {
|
|
172
175
|
UtilsNpm.isSpecialVersion = (version) => {
|
|
@@ -208,24 +211,16 @@ var UtilsNpm;
|
|
|
208
211
|
return `${major}.${minor}.${patch}${alphaOrBetaOrRc ? '.' + alphaOrBetaOrRc : ''}`;
|
|
209
212
|
};
|
|
210
213
|
})(UtilsNpm || (UtilsNpm = {}));
|
|
211
|
-
var
|
|
212
|
-
(function (
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
/* */
|
|
222
|
-
/* */
|
|
223
|
-
/* */
|
|
224
|
-
/* */
|
|
225
|
-
/* */
|
|
226
|
-
return (void 0);
|
|
227
|
-
};
|
|
228
|
-
UtilsTerminal.multiselect = async (options) => {
|
|
214
|
+
var UtilsTypescript;
|
|
215
|
+
(function (UtilsTypescript) {
|
|
216
|
+
/**
|
|
217
|
+
* Remove TypeScript region blocks by their name, including nested regions.
|
|
218
|
+
*
|
|
219
|
+
* @param sourceCode - The TypeScript source code as a string.
|
|
220
|
+
* @param regionName - The name of the region to remove.
|
|
221
|
+
* @returns Modified TypeScript code without the specified regions.
|
|
222
|
+
*/
|
|
223
|
+
UtilsTypescript.removeRegionByName = (sourceCode, regionName) => {
|
|
229
224
|
/* */
|
|
230
225
|
/* */
|
|
231
226
|
/* */
|
|
@@ -301,9 +296,6 @@ var UtilsTerminal;
|
|
|
301
296
|
/* */
|
|
302
297
|
/* */
|
|
303
298
|
/* */
|
|
304
|
-
return (void 0);
|
|
305
|
-
};
|
|
306
|
-
UtilsTerminal.select = async (options) => {
|
|
307
299
|
/* */
|
|
308
300
|
/* */
|
|
309
301
|
/* */
|
|
@@ -347,33 +339,7 @@ var UtilsTerminal;
|
|
|
347
339
|
/* */
|
|
348
340
|
return (void 0);
|
|
349
341
|
};
|
|
350
|
-
|
|
351
|
-
}) => {
|
|
352
|
-
/* */
|
|
353
|
-
/* */
|
|
354
|
-
/* */
|
|
355
|
-
/* */
|
|
356
|
-
/* */
|
|
357
|
-
/* */
|
|
358
|
-
/* */
|
|
359
|
-
/* */
|
|
360
|
-
/* */
|
|
361
|
-
/* */
|
|
362
|
-
/* */
|
|
363
|
-
/* */
|
|
364
|
-
/* */
|
|
365
|
-
/* */
|
|
366
|
-
/* */
|
|
367
|
-
/* */
|
|
368
|
-
/* */
|
|
369
|
-
/* */
|
|
370
|
-
/* */
|
|
371
|
-
/* */
|
|
372
|
-
/* */
|
|
373
|
-
/* */
|
|
374
|
-
/* */
|
|
375
|
-
/* */
|
|
376
|
-
/* */
|
|
342
|
+
const isExported = (node) => {
|
|
377
343
|
/* */
|
|
378
344
|
/* */
|
|
379
345
|
/* */
|
|
@@ -381,21 +347,10 @@ var UtilsTerminal;
|
|
|
381
347
|
/* */
|
|
382
348
|
return (void 0);
|
|
383
349
|
};
|
|
384
|
-
})(UtilsTerminal || (UtilsTerminal = {}));
|
|
385
|
-
var UtilsTypescript;
|
|
386
|
-
(function (UtilsTypescript) {
|
|
387
350
|
/**
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
* @param sourceCode - The TypeScript source code as a string.
|
|
391
|
-
* @param regionName - The name of the region to remove.
|
|
392
|
-
* @returns Modified TypeScript code without the specified regions.
|
|
351
|
+
* Function to extract exports from a TypeScript file
|
|
393
352
|
*/
|
|
394
|
-
UtilsTypescript.
|
|
395
|
-
/* */
|
|
396
|
-
/* */
|
|
397
|
-
/* */
|
|
398
|
-
/* */
|
|
353
|
+
UtilsTypescript.exportsFromFile = (filePath) => {
|
|
399
354
|
/* */
|
|
400
355
|
/* */
|
|
401
356
|
/* */
|
|
@@ -469,6 +424,9 @@ var UtilsTypescript;
|
|
|
469
424
|
/* */
|
|
470
425
|
/* */
|
|
471
426
|
/* */
|
|
427
|
+
return (void 0);
|
|
428
|
+
};
|
|
429
|
+
UtilsTypescript.extractDefaultClassNameFromString = (sourceCode) => {
|
|
472
430
|
/* */
|
|
473
431
|
/* */
|
|
474
432
|
/* */
|
|
@@ -490,6 +448,9 @@ var UtilsTypescript;
|
|
|
490
448
|
/* */
|
|
491
449
|
/* */
|
|
492
450
|
/* */
|
|
451
|
+
return (void 0);
|
|
452
|
+
};
|
|
453
|
+
UtilsTypescript.extractClassNameFromString = (sourceCode) => {
|
|
493
454
|
/* */
|
|
494
455
|
/* */
|
|
495
456
|
/* */
|
|
@@ -510,70 +471,19 @@ var UtilsTypescript;
|
|
|
510
471
|
/* */
|
|
511
472
|
return (void 0);
|
|
512
473
|
};
|
|
513
|
-
|
|
514
|
-
/* */
|
|
515
|
-
/* */
|
|
474
|
+
UtilsTypescript.extractClassNamesFromFile = (absoluteFilePath) => {
|
|
516
475
|
/* */
|
|
517
476
|
/* */
|
|
518
477
|
/* */
|
|
519
478
|
return (void 0);
|
|
520
479
|
};
|
|
521
|
-
|
|
522
|
-
* Function to extract exports from a TypeScript file
|
|
523
|
-
*/
|
|
524
|
-
UtilsTypescript.exportsFromFile = (filePath) => {
|
|
525
|
-
/* */
|
|
526
|
-
/* */
|
|
527
|
-
/* */
|
|
528
|
-
/* */
|
|
529
|
-
/* */
|
|
530
|
-
/* */
|
|
531
|
-
/* */
|
|
532
|
-
/* */
|
|
533
|
-
/* */
|
|
534
|
-
/* */
|
|
535
|
-
/* */
|
|
536
|
-
/* */
|
|
537
|
-
/* */
|
|
538
|
-
/* */
|
|
539
|
-
/* */
|
|
540
|
-
/* */
|
|
541
|
-
/* */
|
|
542
|
-
/* */
|
|
543
|
-
/* */
|
|
544
|
-
/* */
|
|
545
|
-
/* */
|
|
546
|
-
/* */
|
|
547
|
-
/* */
|
|
548
|
-
/* */
|
|
549
|
-
/* */
|
|
550
|
-
/* */
|
|
551
|
-
/* */
|
|
552
|
-
/* */
|
|
553
|
-
/* */
|
|
554
|
-
/* */
|
|
555
|
-
/* */
|
|
556
|
-
/* */
|
|
557
|
-
/* */
|
|
558
|
-
/* */
|
|
559
|
-
/* */
|
|
560
|
-
/* */
|
|
561
|
-
/* */
|
|
562
|
-
/* */
|
|
563
|
-
/* */
|
|
564
|
-
/* */
|
|
565
|
-
/* */
|
|
566
|
-
/* */
|
|
567
|
-
/* */
|
|
568
|
-
/* */
|
|
569
|
-
/* */
|
|
570
|
-
/* */
|
|
571
|
-
/* */
|
|
572
|
-
/* */
|
|
573
|
-
/* */
|
|
480
|
+
UtilsTypescript.extractDefaultClassNameFromFile = (absoluteFilePath) => {
|
|
574
481
|
/* */
|
|
575
482
|
/* */
|
|
576
483
|
/* */
|
|
484
|
+
return (void 0);
|
|
485
|
+
};
|
|
486
|
+
UtilsTypescript.formatFile = (absPathToFile) => {
|
|
577
487
|
/* */
|
|
578
488
|
/* */
|
|
579
489
|
/* */
|
|
@@ -586,6 +496,9 @@ var UtilsTypescript;
|
|
|
586
496
|
/* */
|
|
587
497
|
/* */
|
|
588
498
|
/* */
|
|
499
|
+
return (void 0);
|
|
500
|
+
};
|
|
501
|
+
UtilsTypescript.formatAllFilesInsideFolder = (absPathToFolder) => {
|
|
589
502
|
/* */
|
|
590
503
|
/* */
|
|
591
504
|
/* */
|
|
@@ -597,11 +510,7 @@ var UtilsTypescript;
|
|
|
597
510
|
/* */
|
|
598
511
|
return (void 0);
|
|
599
512
|
};
|
|
600
|
-
UtilsTypescript.
|
|
601
|
-
/* */
|
|
602
|
-
/* */
|
|
603
|
-
/* */
|
|
604
|
-
/* */
|
|
513
|
+
UtilsTypescript.getTaonContextFromContent = (fileContent) => {
|
|
605
514
|
/* */
|
|
606
515
|
/* */
|
|
607
516
|
/* */
|
|
@@ -618,10 +527,6 @@ var UtilsTypescript;
|
|
|
618
527
|
/* */
|
|
619
528
|
/* */
|
|
620
529
|
/* */
|
|
621
|
-
/* */
|
|
622
|
-
return (void 0);
|
|
623
|
-
};
|
|
624
|
-
UtilsTypescript.extractClassNameFromString = (sourceCode) => {
|
|
625
530
|
/* */
|
|
626
531
|
/* */
|
|
627
532
|
/* */
|
|
@@ -640,21 +545,12 @@ var UtilsTypescript;
|
|
|
640
545
|
/* */
|
|
641
546
|
/* */
|
|
642
547
|
/* */
|
|
643
|
-
return (void 0);
|
|
644
|
-
};
|
|
645
|
-
UtilsTypescript.extractClassNamesFromFile = (absoluteFilePath) => {
|
|
646
548
|
/* */
|
|
647
549
|
/* */
|
|
648
550
|
/* */
|
|
649
|
-
return (void 0);
|
|
650
|
-
};
|
|
651
|
-
UtilsTypescript.extractDefaultClassNameFromFile = (absoluteFilePath) => {
|
|
652
551
|
/* */
|
|
653
552
|
/* */
|
|
654
553
|
/* */
|
|
655
|
-
return (void 0);
|
|
656
|
-
};
|
|
657
|
-
UtilsTypescript.formatFile = (absPathToFile) => {
|
|
658
554
|
/* */
|
|
659
555
|
/* */
|
|
660
556
|
/* */
|
|
@@ -669,14 +565,7 @@ var UtilsTypescript;
|
|
|
669
565
|
/* */
|
|
670
566
|
return (void 0);
|
|
671
567
|
};
|
|
672
|
-
UtilsTypescript.
|
|
673
|
-
/* */
|
|
674
|
-
/* */
|
|
675
|
-
/* */
|
|
676
|
-
/* */
|
|
677
|
-
/* */
|
|
678
|
-
/* */
|
|
679
|
-
/* */
|
|
568
|
+
UtilsTypescript.getTaonContextsNamesFromFile = (tsAbsFilePath) => {
|
|
680
569
|
/* */
|
|
681
570
|
/* */
|
|
682
571
|
return (void 0);
|
|
@@ -1764,7 +1653,7 @@ class BaseDb {
|
|
|
1764
1653
|
}
|
|
1765
1654
|
}
|
|
1766
1655
|
;
|
|
1767
|
-
({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-db.ts
|
|
1656
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/classes/base-db.ts
|
|
1768
1657
|
|
|
1769
1658
|
/* */
|
|
1770
1659
|
/* */
|
|
@@ -1792,6 +1681,9 @@ class ConfigDatabase extends BaseDb {
|
|
|
1792
1681
|
/* */
|
|
1793
1682
|
/* */
|
|
1794
1683
|
/* */
|
|
1684
|
+
/* */
|
|
1685
|
+
/* */
|
|
1686
|
+
/* */
|
|
1795
1687
|
return (void 0);
|
|
1796
1688
|
}
|
|
1797
1689
|
async getCodeEditor() {
|
|
@@ -1825,50 +1717,73 @@ class ProjectDatabase extends BaseDb {
|
|
|
1825
1717
|
;
|
|
1826
1718
|
({}); // @--end-of-file-for-module=tnp-helpers lib/base/project-database.ts
|
|
1827
1719
|
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
/**
|
|
1833
|
-
* unique id for service
|
|
1834
|
-
*/
|
|
1835
|
-
serviceID,
|
|
1836
|
-
/**
|
|
1837
|
-
* external command that will start service
|
|
1838
|
-
*/
|
|
1839
|
-
startCommand,
|
|
1840
|
-
/**
|
|
1841
|
-
* unique id for service
|
|
1842
|
-
*/
|
|
1843
|
-
serviceVersion) {
|
|
1844
|
-
this.serviceID = serviceID;
|
|
1845
|
-
this.startCommand = startCommand;
|
|
1846
|
-
this.serviceVersion = serviceVersion;
|
|
1720
|
+
var NotAssignablePort_1;
|
|
1721
|
+
let NotAssignablePort = NotAssignablePort_1 = class NotAssignablePort extends Taon.Base.Entity {
|
|
1722
|
+
static from(opt) {
|
|
1723
|
+
return _.merge(new NotAssignablePort_1(), opt);
|
|
1847
1724
|
}
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1725
|
+
};
|
|
1726
|
+
__decorate([
|
|
1727
|
+
Taon.Orm.Column.Primary({
|
|
1728
|
+
type: 'int',
|
|
1729
|
+
unique: true,
|
|
1730
|
+
}),
|
|
1731
|
+
__metadata("design:type", Number)
|
|
1732
|
+
], NotAssignablePort.prototype, "port", void 0);
|
|
1733
|
+
__decorate([
|
|
1734
|
+
Taon.Orm.Column.Custom({
|
|
1735
|
+
type: 'varchar',
|
|
1736
|
+
length: 1000,
|
|
1737
|
+
unique: true,
|
|
1738
|
+
}),
|
|
1739
|
+
__metadata("design:type", String)
|
|
1740
|
+
], NotAssignablePort.prototype, "serviceId", void 0);
|
|
1741
|
+
NotAssignablePort = NotAssignablePort_1 = __decorate([
|
|
1742
|
+
Taon.Entity({
|
|
1743
|
+
className: 'NotAssignablePort',
|
|
1744
|
+
uniqueKeyProp: 'port',
|
|
1745
|
+
})
|
|
1746
|
+
], NotAssignablePort);
|
|
1747
|
+
;
|
|
1748
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/tcp-udp-ports/not-assignable-port.entity.ts
|
|
1749
|
+
|
|
1750
|
+
var Port_1;
|
|
1751
|
+
const PortStatusArr = [
|
|
1752
|
+
'unassigned',
|
|
1753
|
+
'assigned',
|
|
1754
|
+
'assigned-not-registered',
|
|
1755
|
+
'assigned-taken-by-os',
|
|
1756
|
+
];
|
|
1757
|
+
let Port = Port_1 = class Port extends NotAssignablePort {
|
|
1758
|
+
static from(opt) {
|
|
1759
|
+
return _.merge(new Port_1(), opt);
|
|
1858
1760
|
}
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1761
|
+
};
|
|
1762
|
+
__decorate([
|
|
1763
|
+
Taon.Orm.Column.String500('unassigned'),
|
|
1764
|
+
__metadata("design:type", String)
|
|
1765
|
+
], Port.prototype, "status", void 0);
|
|
1766
|
+
__decorate([
|
|
1767
|
+
Taon.Orm.Column.Number(),
|
|
1768
|
+
__metadata("design:type", Number)
|
|
1769
|
+
], Port.prototype, "whenAssignedTimestamp", void 0);
|
|
1770
|
+
Port = Port_1 = __decorate([
|
|
1771
|
+
Taon.Entity({
|
|
1772
|
+
className: 'Port',
|
|
1773
|
+
uniqueKeyProp: 'port',
|
|
1774
|
+
})
|
|
1775
|
+
], Port);
|
|
1776
|
+
;
|
|
1777
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/tcp-udp-ports/ports.entity.ts
|
|
1778
|
+
|
|
1779
|
+
/* */
|
|
1780
|
+
/* */
|
|
1781
|
+
/* */
|
|
1782
|
+
class BaseCliWorkerConfig {
|
|
1783
|
+
static from(opt) {
|
|
1784
|
+
return _.merge(new BaseCliWorkerConfig(), opt);
|
|
1867
1785
|
}
|
|
1868
|
-
|
|
1869
|
-
/* */
|
|
1870
|
-
/* */
|
|
1871
|
-
/* */
|
|
1786
|
+
hasBiggerOrEqualWorkerVersionThan(other) {
|
|
1872
1787
|
/* */
|
|
1873
1788
|
/* */
|
|
1874
1789
|
/* */
|
|
@@ -1884,12 +1799,41 @@ class BaseCliWorker {
|
|
|
1884
1799
|
/* */
|
|
1885
1800
|
return (void 0);
|
|
1886
1801
|
}
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1802
|
+
isEquals(other) {
|
|
1803
|
+
other = BaseCliWorkerConfig.from(other);
|
|
1804
|
+
return (!!this.serviceID &&
|
|
1805
|
+
!!this.port &&
|
|
1806
|
+
!!this.pid &&
|
|
1807
|
+
this.serviceID === other.serviceID &&
|
|
1808
|
+
this.port === other.port &&
|
|
1809
|
+
this.pid === other.pid);
|
|
1810
|
+
}
|
|
1811
|
+
get isEmpty() {
|
|
1812
|
+
return !this.serviceID && !this.port && !this.pid;
|
|
1813
|
+
}
|
|
1814
|
+
}
|
|
1815
|
+
;
|
|
1816
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/classes/base-cli-worker-config.ts
|
|
1817
|
+
|
|
1818
|
+
let BaseCliWorkerController = class BaseCliWorkerController extends Taon.Base
|
|
1819
|
+
.Controller {
|
|
1820
|
+
constructor() {
|
|
1821
|
+
super(...arguments);
|
|
1822
|
+
/**
|
|
1823
|
+
* service id
|
|
1824
|
+
*/
|
|
1825
|
+
this.cliWorkerServiceId = null;
|
|
1826
|
+
this.cliWorkerServiceVersion = null;
|
|
1827
|
+
}
|
|
1828
|
+
baseCLiWorkerCommand_initializeMetadata(serviceId, serviceVersion) {
|
|
1829
|
+
/* */
|
|
1830
|
+
/* */
|
|
1831
|
+
/* */
|
|
1891
1832
|
/* */
|
|
1892
1833
|
/* */
|
|
1834
|
+
return (void 0);
|
|
1835
|
+
}
|
|
1836
|
+
baseCLiWorkerCommand_kill() {
|
|
1893
1837
|
/* */
|
|
1894
1838
|
/* */
|
|
1895
1839
|
/* */
|
|
@@ -1898,6 +1842,9 @@ class BaseCliWorker {
|
|
|
1898
1842
|
/* */
|
|
1899
1843
|
/* */
|
|
1900
1844
|
/* */
|
|
1845
|
+
return (void 0);
|
|
1846
|
+
}
|
|
1847
|
+
info() {
|
|
1901
1848
|
/* */
|
|
1902
1849
|
/* */
|
|
1903
1850
|
/* */
|
|
@@ -1910,35 +1857,23 @@ class BaseCliWorker {
|
|
|
1910
1857
|
/* */
|
|
1911
1858
|
return (void 0);
|
|
1912
1859
|
}
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
options = options || {};
|
|
1919
|
-
options.detached = _.isUndefined(options.detached) ? true : false;
|
|
1920
|
-
await this.kill();
|
|
1921
|
-
//longer because os is disposing process previous process
|
|
1922
|
-
if (options.detached) {
|
|
1923
|
-
Helpers.info(`Restarting service "${this.serviceID}" in detached mode...`);
|
|
1924
|
-
await this.startDetached();
|
|
1925
|
-
}
|
|
1926
|
-
else {
|
|
1927
|
-
Helpers.info(`Restarting service "${this.serviceID}" in current process...`);
|
|
1928
|
-
await this.startNormallyInCurrentProcess();
|
|
1929
|
-
}
|
|
1930
|
-
}
|
|
1931
|
-
/**
|
|
1932
|
-
* only for cli start
|
|
1933
|
-
* @param cliParams on from cli
|
|
1934
|
-
*/
|
|
1935
|
-
async cliStartProcedure(cliParams) {
|
|
1936
|
-
const instance = this;
|
|
1937
|
-
const detached = !!cliParams['detached'] || !!cliParams['detach'];
|
|
1860
|
+
baseCLiWorkerCommand_isHealthy(checkingProcessConfig) {
|
|
1861
|
+
/* */
|
|
1862
|
+
/* */
|
|
1863
|
+
/* */
|
|
1864
|
+
/* */
|
|
1938
1865
|
/* */
|
|
1939
1866
|
/* */
|
|
1940
1867
|
/* */
|
|
1941
1868
|
/* */
|
|
1869
|
+
/* */
|
|
1870
|
+
/* */
|
|
1871
|
+
/* */
|
|
1872
|
+
/* */
|
|
1873
|
+
/* */
|
|
1874
|
+
return (void 0);
|
|
1875
|
+
}
|
|
1876
|
+
baseCLiWorkerCommand_hasUpToDateVersion(checkingProcessConfig) {
|
|
1942
1877
|
/* */
|
|
1943
1878
|
/* */
|
|
1944
1879
|
/* */
|
|
@@ -1956,8 +1891,85 @@ class BaseCliWorker {
|
|
|
1956
1891
|
/* */
|
|
1957
1892
|
return (void 0);
|
|
1958
1893
|
}
|
|
1959
|
-
|
|
1960
|
-
|
|
1894
|
+
};
|
|
1895
|
+
__decorate([
|
|
1896
|
+
Taon.Http.PUT(),
|
|
1897
|
+
__param(0, Taon.Http.Param.Body('serviceId')),
|
|
1898
|
+
__param(1, Taon.Http.Param.Body('serviceVersion')),
|
|
1899
|
+
__metadata("design:type", Function),
|
|
1900
|
+
__metadata("design:paramtypes", [String, String]),
|
|
1901
|
+
__metadata("design:returntype", Object)
|
|
1902
|
+
], BaseCliWorkerController.prototype, "baseCLiWorkerCommand_initializeMetadata", null);
|
|
1903
|
+
__decorate([
|
|
1904
|
+
Taon.Http.GET(),
|
|
1905
|
+
__metadata("design:type", Function),
|
|
1906
|
+
__metadata("design:paramtypes", []),
|
|
1907
|
+
__metadata("design:returntype", Object)
|
|
1908
|
+
], BaseCliWorkerController.prototype, "baseCLiWorkerCommand_kill", null);
|
|
1909
|
+
__decorate([
|
|
1910
|
+
Taon.Http.GET({
|
|
1911
|
+
pathIsGlobal: true,
|
|
1912
|
+
}),
|
|
1913
|
+
__metadata("design:type", Function),
|
|
1914
|
+
__metadata("design:paramtypes", []),
|
|
1915
|
+
__metadata("design:returntype", Object)
|
|
1916
|
+
], BaseCliWorkerController.prototype, "info", null);
|
|
1917
|
+
__decorate([
|
|
1918
|
+
Taon.Http.POST(),
|
|
1919
|
+
__param(0, Taon.Http.Param.Body()),
|
|
1920
|
+
__metadata("design:type", Function),
|
|
1921
|
+
__metadata("design:paramtypes", [BaseCliWorkerConfig]),
|
|
1922
|
+
__metadata("design:returntype", Object)
|
|
1923
|
+
], BaseCliWorkerController.prototype, "baseCLiWorkerCommand_isHealthy", null);
|
|
1924
|
+
__decorate([
|
|
1925
|
+
Taon.Http.POST(),
|
|
1926
|
+
__param(0, Taon.Http.Param.Body()),
|
|
1927
|
+
__metadata("design:type", Function),
|
|
1928
|
+
__metadata("design:paramtypes", [BaseCliWorkerConfig]),
|
|
1929
|
+
__metadata("design:returntype", Object)
|
|
1930
|
+
], BaseCliWorkerController.prototype, "baseCLiWorkerCommand_hasUpToDateVersion", null);
|
|
1931
|
+
BaseCliWorkerController = __decorate([
|
|
1932
|
+
Taon.Controller({
|
|
1933
|
+
className: 'BaseCliWorkerController',
|
|
1934
|
+
})
|
|
1935
|
+
], BaseCliWorkerController);
|
|
1936
|
+
;
|
|
1937
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/classes/base-cli-worker-controller.ts
|
|
1938
|
+
|
|
1939
|
+
let PortsController = class PortsController extends BaseCliWorkerController {
|
|
1940
|
+
constructor() {
|
|
1941
|
+
super(...arguments);
|
|
1942
|
+
this.START_PORT = 3000;
|
|
1943
|
+
this.END_PORT = 6000;
|
|
1944
|
+
this.takenByOsPorts = new Map();
|
|
1945
|
+
this.assignedPorts = new Map();
|
|
1946
|
+
}
|
|
1947
|
+
get firstFreePort() {
|
|
1948
|
+
if (!this.assignedPorts) {
|
|
1949
|
+
return null;
|
|
1950
|
+
}
|
|
1951
|
+
return Array.from(this.assignedPorts.values()).find(p => p.status === 'unassigned');
|
|
1952
|
+
}
|
|
1953
|
+
firstUnassignedPortMoreThan(port) {
|
|
1954
|
+
if (!this.assignedPorts) {
|
|
1955
|
+
return null;
|
|
1956
|
+
}
|
|
1957
|
+
return Array.from(this.assignedPorts.values()).find(p => p.status === 'unassigned' && p.port > port);
|
|
1958
|
+
}
|
|
1959
|
+
getPortByStatus(status) {
|
|
1960
|
+
return async () => {
|
|
1961
|
+
if (status === 'assigned-taken-by-os') {
|
|
1962
|
+
return Array.from(this.takenByOsPorts.values());
|
|
1963
|
+
}
|
|
1964
|
+
return Array.from(this.assignedPorts.values()).filter(f => f.status === status);
|
|
1965
|
+
};
|
|
1966
|
+
}
|
|
1967
|
+
/**
|
|
1968
|
+
* @param uniqueServiceName unique service name
|
|
1969
|
+
* @param startFrom start searching for free port from this number
|
|
1970
|
+
* @returns
|
|
1971
|
+
*/
|
|
1972
|
+
registerAndAssignPort(uniqueServiceName, startFrom) {
|
|
1961
1973
|
/* */
|
|
1962
1974
|
/* */
|
|
1963
1975
|
/* */
|
|
@@ -1970,9 +1982,6 @@ class BaseCliWorker {
|
|
|
1970
1982
|
/* */
|
|
1971
1983
|
/* */
|
|
1972
1984
|
/* */
|
|
1973
|
-
return (void 0);
|
|
1974
|
-
}
|
|
1975
|
-
async preventStartIfAlreadyStarted() {
|
|
1976
1985
|
/* */
|
|
1977
1986
|
/* */
|
|
1978
1987
|
/* */
|
|
@@ -1986,9 +1995,6 @@ class BaseCliWorker {
|
|
|
1986
1995
|
/* */
|
|
1987
1996
|
/* */
|
|
1988
1997
|
/* */
|
|
1989
|
-
return (void 0);
|
|
1990
|
-
}
|
|
1991
|
-
async killWorkerWithLowerVersion() {
|
|
1992
1998
|
/* */
|
|
1993
1999
|
/* */
|
|
1994
2000
|
/* */
|
|
@@ -2010,12 +2016,51 @@ class BaseCliWorker {
|
|
|
2010
2016
|
/* */
|
|
2011
2017
|
return (void 0);
|
|
2012
2018
|
}
|
|
2019
|
+
};
|
|
2020
|
+
__decorate([
|
|
2021
|
+
Taon.Http.GET(),
|
|
2022
|
+
__param(0, Taon.Http.Param.Query('status')),
|
|
2023
|
+
__metadata("design:type", Function),
|
|
2024
|
+
__metadata("design:paramtypes", [String]),
|
|
2025
|
+
__metadata("design:returntype", Object)
|
|
2026
|
+
], PortsController.prototype, "getPortByStatus", null);
|
|
2027
|
+
__decorate([
|
|
2028
|
+
Taon.Http.PUT(),
|
|
2029
|
+
__param(0, Taon.Http.Param.Query('uniqueServiceName')),
|
|
2030
|
+
__param(1, Taon.Http.Param.Query('startFrom')),
|
|
2031
|
+
__metadata("design:type", Function),
|
|
2032
|
+
__metadata("design:paramtypes", [String, Number]),
|
|
2033
|
+
__metadata("design:returntype", Object)
|
|
2034
|
+
], PortsController.prototype, "registerAndAssignPort", null);
|
|
2035
|
+
PortsController = __decorate([
|
|
2036
|
+
Taon.Controller({
|
|
2037
|
+
className: 'PortsController',
|
|
2038
|
+
})
|
|
2039
|
+
], PortsController);
|
|
2040
|
+
;
|
|
2041
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/tcp-udp-ports/ports.controller.ts
|
|
2042
|
+
|
|
2043
|
+
const WORKER_INIT_START_TIME_LIMIT = 25; // 15 seconds max to start worker
|
|
2044
|
+
const START_PORT_FOR_SERVICES = 3600;
|
|
2045
|
+
class BaseCliWorker {
|
|
2046
|
+
constructor(
|
|
2013
2047
|
/**
|
|
2014
|
-
*
|
|
2015
|
-
* - infinite check when when detached process finished starting
|
|
2016
|
-
* - quick check if service is healthy / already started
|
|
2048
|
+
* unique id for service
|
|
2017
2049
|
*/
|
|
2018
|
-
|
|
2050
|
+
serviceID,
|
|
2051
|
+
/**
|
|
2052
|
+
* external command that will start service
|
|
2053
|
+
*/
|
|
2054
|
+
startCommand,
|
|
2055
|
+
/**
|
|
2056
|
+
* unique id for service
|
|
2057
|
+
*/
|
|
2058
|
+
serviceVersion) {
|
|
2059
|
+
this.serviceID = serviceID;
|
|
2060
|
+
this.startCommand = startCommand;
|
|
2061
|
+
this.serviceVersion = serviceVersion;
|
|
2062
|
+
}
|
|
2063
|
+
get pathToProcessLocalInfoJson() {
|
|
2019
2064
|
/* */
|
|
2020
2065
|
/* */
|
|
2021
2066
|
/* */
|
|
@@ -2024,12 +2069,18 @@ class BaseCliWorker {
|
|
|
2024
2069
|
/* */
|
|
2025
2070
|
/* */
|
|
2026
2071
|
/* */
|
|
2072
|
+
return (void 0);
|
|
2073
|
+
}
|
|
2074
|
+
get processLocalInfoObj() {
|
|
2027
2075
|
/* */
|
|
2028
2076
|
/* */
|
|
2029
2077
|
/* */
|
|
2030
2078
|
/* */
|
|
2031
2079
|
/* */
|
|
2032
2080
|
/* */
|
|
2081
|
+
return (void 0);
|
|
2082
|
+
}
|
|
2083
|
+
async startDetachedIfNeedsToBeStarted() {
|
|
2033
2084
|
/* */
|
|
2034
2085
|
/* */
|
|
2035
2086
|
/* */
|
|
@@ -2046,6 +2097,12 @@ class BaseCliWorker {
|
|
|
2046
2097
|
/* */
|
|
2047
2098
|
/* */
|
|
2048
2099
|
/* */
|
|
2100
|
+
return (void 0);
|
|
2101
|
+
}
|
|
2102
|
+
/**
|
|
2103
|
+
* stop if started
|
|
2104
|
+
*/
|
|
2105
|
+
async kill(options) {
|
|
2049
2106
|
/* */
|
|
2050
2107
|
/* */
|
|
2051
2108
|
/* */
|
|
@@ -2066,6 +2123,33 @@ class BaseCliWorker {
|
|
|
2066
2123
|
/* */
|
|
2067
2124
|
/* */
|
|
2068
2125
|
/* */
|
|
2126
|
+
return (void 0);
|
|
2127
|
+
}
|
|
2128
|
+
/**
|
|
2129
|
+
* kill detached process and start again
|
|
2130
|
+
* @param options.detached - default true
|
|
2131
|
+
*/
|
|
2132
|
+
async restart(options) {
|
|
2133
|
+
options = options || {};
|
|
2134
|
+
options.detached = _.isUndefined(options.detached) ? true : false;
|
|
2135
|
+
await this.kill();
|
|
2136
|
+
//longer because os is disposing process previous process
|
|
2137
|
+
if (options.detached) {
|
|
2138
|
+
Helpers.info(`Restarting service "${this.serviceID}" in detached mode...`);
|
|
2139
|
+
await this.startDetached();
|
|
2140
|
+
}
|
|
2141
|
+
else {
|
|
2142
|
+
Helpers.info(`Restarting service "${this.serviceID}" in current process...`);
|
|
2143
|
+
await this.startNormallyInCurrentProcess();
|
|
2144
|
+
}
|
|
2145
|
+
}
|
|
2146
|
+
/**
|
|
2147
|
+
* only for cli start
|
|
2148
|
+
* @param cliParams on from cli
|
|
2149
|
+
*/
|
|
2150
|
+
async cliStartProcedure(cliParams) {
|
|
2151
|
+
const instance = this;
|
|
2152
|
+
const detached = !!cliParams['detached'] || !!cliParams['detach'];
|
|
2069
2153
|
/* */
|
|
2070
2154
|
/* */
|
|
2071
2155
|
/* */
|
|
@@ -2087,13 +2171,7 @@ class BaseCliWorker {
|
|
|
2087
2171
|
/* */
|
|
2088
2172
|
return (void 0);
|
|
2089
2173
|
}
|
|
2090
|
-
|
|
2091
|
-
* start if not started detached process
|
|
2092
|
-
*/
|
|
2093
|
-
async startDetached() {
|
|
2094
|
-
/* */
|
|
2095
|
-
/* */
|
|
2096
|
-
/* */
|
|
2174
|
+
preventExternalConfigChange() {
|
|
2097
2175
|
/* */
|
|
2098
2176
|
/* */
|
|
2099
2177
|
/* */
|
|
@@ -2107,24 +2185,12 @@ class BaseCliWorker {
|
|
|
2107
2185
|
/* */
|
|
2108
2186
|
/* */
|
|
2109
2187
|
/* */
|
|
2188
|
+
return (void 0);
|
|
2189
|
+
}
|
|
2190
|
+
async preventStartIfAlreadyStarted() {
|
|
2110
2191
|
/* */
|
|
2111
2192
|
/* */
|
|
2112
2193
|
/* */
|
|
2113
|
-
return (void 0);
|
|
2114
|
-
}
|
|
2115
|
-
async headerText() {
|
|
2116
|
-
return _.startCase(this.serviceID);
|
|
2117
|
-
}
|
|
2118
|
-
textHeaderStyle() {
|
|
2119
|
-
return 'block';
|
|
2120
|
-
}
|
|
2121
|
-
headerTextAlign() {
|
|
2122
|
-
return 'left';
|
|
2123
|
-
}
|
|
2124
|
-
/**
|
|
2125
|
-
* override whole terminal header
|
|
2126
|
-
*/
|
|
2127
|
-
async header() {
|
|
2128
2194
|
/* */
|
|
2129
2195
|
/* */
|
|
2130
2196
|
/* */
|
|
@@ -2135,6 +2201,9 @@ class BaseCliWorker {
|
|
|
2135
2201
|
/* */
|
|
2136
2202
|
/* */
|
|
2137
2203
|
/* */
|
|
2204
|
+
return (void 0);
|
|
2205
|
+
}
|
|
2206
|
+
async killWorkerWithLowerVersion() {
|
|
2138
2207
|
/* */
|
|
2139
2208
|
/* */
|
|
2140
2209
|
/* */
|
|
@@ -2142,9 +2211,6 @@ class BaseCliWorker {
|
|
|
2142
2211
|
/* */
|
|
2143
2212
|
/* */
|
|
2144
2213
|
/* */
|
|
2145
|
-
return (void 0);
|
|
2146
|
-
}
|
|
2147
|
-
async infoMessageBelowHeader() {
|
|
2148
2214
|
/* */
|
|
2149
2215
|
/* */
|
|
2150
2216
|
/* */
|
|
@@ -2159,35 +2225,12 @@ class BaseCliWorker {
|
|
|
2159
2225
|
/* */
|
|
2160
2226
|
return (void 0);
|
|
2161
2227
|
}
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
openBrowser: {
|
|
2169
|
-
name: 'Open browser with service info',
|
|
2170
|
-
},
|
|
2171
|
-
exit: {
|
|
2172
|
-
name: `Shut down service`,
|
|
2173
|
-
},
|
|
2174
|
-
};
|
|
2175
|
-
const choice = await UtilsTerminal.select({
|
|
2176
|
-
choices,
|
|
2177
|
-
question: 'Choose action',
|
|
2178
|
-
});
|
|
2179
|
-
if (choice === 'openBrowser') {
|
|
2180
|
-
const openInBrowser = require('open');
|
|
2181
|
-
openInBrowser(`http://localhost:${this.processLocalInfoObj.port}/info`);
|
|
2182
|
-
}
|
|
2183
|
-
if (choice === 'exit') {
|
|
2184
|
-
process.exit(0);
|
|
2185
|
-
}
|
|
2186
|
-
switch (choice) {
|
|
2187
|
-
}
|
|
2188
|
-
}
|
|
2189
|
-
}
|
|
2190
|
-
saveProcessInfo(processConfig) {
|
|
2228
|
+
/**
|
|
2229
|
+
* This has 2 purposes:
|
|
2230
|
+
* - infinite check when when detached process finished starting
|
|
2231
|
+
* - quick check if service is healthy / already started
|
|
2232
|
+
*/
|
|
2233
|
+
async isServiceHealthy(options) {
|
|
2191
2234
|
/* */
|
|
2192
2235
|
/* */
|
|
2193
2236
|
/* */
|
|
@@ -2203,9 +2246,6 @@ class BaseCliWorker {
|
|
|
2203
2246
|
/* */
|
|
2204
2247
|
/* */
|
|
2205
2248
|
/* */
|
|
2206
|
-
return (void 0);
|
|
2207
|
-
}
|
|
2208
|
-
async initializeWorkerMetadata() {
|
|
2209
2249
|
/* */
|
|
2210
2250
|
/* */
|
|
2211
2251
|
/* */
|
|
@@ -2227,9 +2267,6 @@ class BaseCliWorker {
|
|
|
2227
2267
|
/* */
|
|
2228
2268
|
/* */
|
|
2229
2269
|
/* */
|
|
2230
|
-
return (void 0);
|
|
2231
|
-
}
|
|
2232
|
-
async waitForProcessPortSavedToDisk() {
|
|
2233
2270
|
/* */
|
|
2234
2271
|
/* */
|
|
2235
2272
|
/* */
|
|
@@ -2252,9 +2289,6 @@ class BaseCliWorker {
|
|
|
2252
2289
|
/* */
|
|
2253
2290
|
/* */
|
|
2254
2291
|
/* */
|
|
2255
|
-
return (void 0);
|
|
2256
|
-
}
|
|
2257
|
-
async getServicePort() {
|
|
2258
2292
|
/* */
|
|
2259
2293
|
/* */
|
|
2260
2294
|
/* */
|
|
@@ -2270,18 +2304,16 @@ class BaseCliWorker {
|
|
|
2270
2304
|
/* */
|
|
2271
2305
|
return (void 0);
|
|
2272
2306
|
}
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
/* */
|
|
2278
|
-
/* */
|
|
2279
|
-
/* */
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
}
|
|
2284
|
-
hasBiggerOrEqualWorkerVersionThan(other) {
|
|
2307
|
+
/**
|
|
2308
|
+
* start if not started detached process
|
|
2309
|
+
*/
|
|
2310
|
+
async startDetached() {
|
|
2311
|
+
/* */
|
|
2312
|
+
/* */
|
|
2313
|
+
/* */
|
|
2314
|
+
/* */
|
|
2315
|
+
/* */
|
|
2316
|
+
/* */
|
|
2285
2317
|
/* */
|
|
2286
2318
|
/* */
|
|
2287
2319
|
/* */
|
|
@@ -2297,41 +2329,28 @@ class BaseCliWorkerConfig {
|
|
|
2297
2329
|
/* */
|
|
2298
2330
|
return (void 0);
|
|
2299
2331
|
}
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
return (!!this.serviceID &&
|
|
2303
|
-
!!this.port &&
|
|
2304
|
-
!!this.pid &&
|
|
2305
|
-
this.serviceID === other.serviceID &&
|
|
2306
|
-
this.port === other.port &&
|
|
2307
|
-
this.pid === other.pid);
|
|
2332
|
+
async headerText() {
|
|
2333
|
+
return _.startCase(this.serviceID);
|
|
2308
2334
|
}
|
|
2309
|
-
|
|
2310
|
-
return
|
|
2335
|
+
textHeaderStyle() {
|
|
2336
|
+
return 'block';
|
|
2311
2337
|
}
|
|
2312
|
-
|
|
2313
|
-
;
|
|
2314
|
-
({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-cli-worker-config.ts
|
|
2315
|
-
|
|
2316
|
-
let BaseCliWorkerController = class BaseCliWorkerController extends Taon.Base
|
|
2317
|
-
.CrudController {
|
|
2318
|
-
constructor() {
|
|
2319
|
-
super(...arguments);
|
|
2320
|
-
/**
|
|
2321
|
-
* service id
|
|
2322
|
-
*/
|
|
2323
|
-
this.cliWorkerServiceId = null;
|
|
2324
|
-
this.cliWorkerServiceVersion = null;
|
|
2338
|
+
headerTextAlign() {
|
|
2339
|
+
return 'left';
|
|
2325
2340
|
}
|
|
2326
|
-
|
|
2341
|
+
/**
|
|
2342
|
+
* override whole terminal header
|
|
2343
|
+
*/
|
|
2344
|
+
async header() {
|
|
2345
|
+
/* */
|
|
2346
|
+
/* */
|
|
2347
|
+
/* */
|
|
2348
|
+
/* */
|
|
2327
2349
|
/* */
|
|
2328
2350
|
/* */
|
|
2329
2351
|
/* */
|
|
2330
2352
|
/* */
|
|
2331
2353
|
/* */
|
|
2332
|
-
return (void 0);
|
|
2333
|
-
}
|
|
2334
|
-
baseCLiWorkerCommand_kill() {
|
|
2335
2354
|
/* */
|
|
2336
2355
|
/* */
|
|
2337
2356
|
/* */
|
|
@@ -2342,7 +2361,9 @@ let BaseCliWorkerController = class BaseCliWorkerController extends Taon.Base
|
|
|
2342
2361
|
/* */
|
|
2343
2362
|
return (void 0);
|
|
2344
2363
|
}
|
|
2345
|
-
|
|
2364
|
+
async infoMessageBelowHeader() {
|
|
2365
|
+
/* */
|
|
2366
|
+
/* */
|
|
2346
2367
|
/* */
|
|
2347
2368
|
/* */
|
|
2348
2369
|
/* */
|
|
@@ -2355,7 +2376,7 @@ let BaseCliWorkerController = class BaseCliWorkerController extends Taon.Base
|
|
|
2355
2376
|
/* */
|
|
2356
2377
|
return (void 0);
|
|
2357
2378
|
}
|
|
2358
|
-
|
|
2379
|
+
getWorkerTerminalActions() {
|
|
2359
2380
|
/* */
|
|
2360
2381
|
/* */
|
|
2361
2382
|
/* */
|
|
@@ -2369,9 +2390,6 @@ let BaseCliWorkerController = class BaseCliWorkerController extends Taon.Base
|
|
|
2369
2390
|
/* */
|
|
2370
2391
|
/* */
|
|
2371
2392
|
/* */
|
|
2372
|
-
return (void 0);
|
|
2373
|
-
}
|
|
2374
|
-
baseCLiWorkerCommand_hasUpToDateVersion(checkingProcessConfig) {
|
|
2375
2393
|
/* */
|
|
2376
2394
|
/* */
|
|
2377
2395
|
/* */
|
|
@@ -2382,100 +2400,29 @@ let BaseCliWorkerController = class BaseCliWorkerController extends Taon.Base
|
|
|
2382
2400
|
/* */
|
|
2383
2401
|
/* */
|
|
2384
2402
|
/* */
|
|
2403
|
+
/* */
|
|
2404
|
+
return (void 0);
|
|
2405
|
+
}
|
|
2406
|
+
async _infoScreen() {
|
|
2407
|
+
while (true) {
|
|
2408
|
+
Helpers.clearConsole();
|
|
2409
|
+
await this.header();
|
|
2410
|
+
await this.infoMessageBelowHeader();
|
|
2411
|
+
const choices = this.getWorkerTerminalActions();
|
|
2412
|
+
const choice = await UtilsTerminal.select({
|
|
2413
|
+
choices,
|
|
2414
|
+
question: 'Choose action',
|
|
2415
|
+
});
|
|
2416
|
+
const action = choices[choice].action;
|
|
2417
|
+
await action();
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
saveProcessInfo(processConfig) {
|
|
2385
2421
|
/* */
|
|
2386
2422
|
/* */
|
|
2387
2423
|
/* */
|
|
2388
2424
|
/* */
|
|
2389
2425
|
/* */
|
|
2390
|
-
return (void 0);
|
|
2391
|
-
}
|
|
2392
|
-
};
|
|
2393
|
-
__decorate([
|
|
2394
|
-
Taon.Http.PUT(),
|
|
2395
|
-
__param(0, Taon.Http.Param.Body('serviceId')),
|
|
2396
|
-
__param(1, Taon.Http.Param.Body('serviceVersion')),
|
|
2397
|
-
__metadata("design:type", Function),
|
|
2398
|
-
__metadata("design:paramtypes", [String, String]),
|
|
2399
|
-
__metadata("design:returntype", Object)
|
|
2400
|
-
], BaseCliWorkerController.prototype, "baseCLiWorkerCommand_initializeMetadata", null);
|
|
2401
|
-
__decorate([
|
|
2402
|
-
Taon.Http.GET(),
|
|
2403
|
-
__metadata("design:type", Function),
|
|
2404
|
-
__metadata("design:paramtypes", []),
|
|
2405
|
-
__metadata("design:returntype", Object)
|
|
2406
|
-
], BaseCliWorkerController.prototype, "baseCLiWorkerCommand_kill", null);
|
|
2407
|
-
__decorate([
|
|
2408
|
-
Taon.Http.GET({
|
|
2409
|
-
pathIsGlobal: true,
|
|
2410
|
-
}),
|
|
2411
|
-
__metadata("design:type", Function),
|
|
2412
|
-
__metadata("design:paramtypes", []),
|
|
2413
|
-
__metadata("design:returntype", Object)
|
|
2414
|
-
], BaseCliWorkerController.prototype, "info", null);
|
|
2415
|
-
__decorate([
|
|
2416
|
-
Taon.Http.POST(),
|
|
2417
|
-
__param(0, Taon.Http.Param.Body()),
|
|
2418
|
-
__metadata("design:type", Function),
|
|
2419
|
-
__metadata("design:paramtypes", [BaseCliWorkerConfig]),
|
|
2420
|
-
__metadata("design:returntype", Object)
|
|
2421
|
-
], BaseCliWorkerController.prototype, "baseCLiWorkerCommand_isHealthy", null);
|
|
2422
|
-
__decorate([
|
|
2423
|
-
Taon.Http.POST(),
|
|
2424
|
-
__param(0, Taon.Http.Param.Body()),
|
|
2425
|
-
__metadata("design:type", Function),
|
|
2426
|
-
__metadata("design:paramtypes", [BaseCliWorkerConfig]),
|
|
2427
|
-
__metadata("design:returntype", Object)
|
|
2428
|
-
], BaseCliWorkerController.prototype, "baseCLiWorkerCommand_hasUpToDateVersion", null);
|
|
2429
|
-
BaseCliWorkerController = __decorate([
|
|
2430
|
-
Taon.Controller({
|
|
2431
|
-
className: 'BaseCliWorkerController',
|
|
2432
|
-
})
|
|
2433
|
-
], BaseCliWorkerController);
|
|
2434
|
-
;
|
|
2435
|
-
({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-cli-worker-controller.ts
|
|
2436
|
-
|
|
2437
|
-
var Port_1;
|
|
2438
|
-
let Port = Port_1 = class Port extends Taon.Base.Entity {
|
|
2439
|
-
static from(opt) {
|
|
2440
|
-
return _.merge(new Port_1(), opt);
|
|
2441
|
-
}
|
|
2442
|
-
};
|
|
2443
|
-
__decorate([
|
|
2444
|
-
Taon.Orm.Column.Primary({
|
|
2445
|
-
type: 'int',
|
|
2446
|
-
unique: true,
|
|
2447
|
-
}),
|
|
2448
|
-
__metadata("design:type", Number)
|
|
2449
|
-
], Port.prototype, "port", void 0);
|
|
2450
|
-
__decorate([
|
|
2451
|
-
Taon.Orm.Column.Boolean(false),
|
|
2452
|
-
__metadata("design:type", Boolean)
|
|
2453
|
-
], Port.prototype, "assigned", void 0);
|
|
2454
|
-
__decorate([
|
|
2455
|
-
Taon.Orm.Column.Custom({
|
|
2456
|
-
type: 'varchar',
|
|
2457
|
-
length: 150,
|
|
2458
|
-
}),
|
|
2459
|
-
__metadata("design:type", String)
|
|
2460
|
-
], Port.prototype, "serviceId", void 0);
|
|
2461
|
-
Port = Port_1 = __decorate([
|
|
2462
|
-
Taon.Entity({
|
|
2463
|
-
className: 'Port',
|
|
2464
|
-
uniqueKeyProp: 'port',
|
|
2465
|
-
})
|
|
2466
|
-
], Port);
|
|
2467
|
-
let PortsController = class PortsController extends BaseCliWorkerController {
|
|
2468
|
-
constructor() {
|
|
2469
|
-
super(...arguments);
|
|
2470
|
-
this.entityClassResolveFn = () => Port;
|
|
2471
|
-
this.portsCacheByServiceId = new Map();
|
|
2472
|
-
}
|
|
2473
|
-
/**
|
|
2474
|
-
* @param uniqueServiceName unique service name
|
|
2475
|
-
* @param startFrom start searching for free port from this number
|
|
2476
|
-
* @returns
|
|
2477
|
-
*/
|
|
2478
|
-
registerAndAssignPort(uniqueServiceName, startFrom) {
|
|
2479
2426
|
/* */
|
|
2480
2427
|
/* */
|
|
2481
2428
|
/* */
|
|
@@ -2488,85 +2435,7 @@ let PortsController = class PortsController extends BaseCliWorkerController {
|
|
|
2488
2435
|
/* */
|
|
2489
2436
|
return (void 0);
|
|
2490
2437
|
}
|
|
2491
|
-
async
|
|
2492
|
-
const commonPortsFrom3000to6000 = [
|
|
2493
|
-
3000, // Commonly used for development servers (e.g., React, Node.js)
|
|
2494
|
-
3001, // Alternate development server port
|
|
2495
|
-
3306, // MySQL
|
|
2496
|
-
3389, // Remote Desktop Protocol (RDP)
|
|
2497
|
-
3478, // STUN (Session Traversal Utilities for NAT)
|
|
2498
|
-
4000, // Alternative development server port
|
|
2499
|
-
4200, // Angular CLI Development Server
|
|
2500
|
-
4500, // IPSec NAT traversal
|
|
2501
|
-
4567, // Sinatra Default Port
|
|
2502
|
-
5000, // Flask, Python development server, or Node.js apps
|
|
2503
|
-
5432, // PostgreSQL
|
|
2504
|
-
5500, // Live Server (VS Code Extension)
|
|
2505
|
-
5672, // RabbitMQ
|
|
2506
|
-
5800, // VNC Remote Desktop
|
|
2507
|
-
5900, // VNC Remote Desktop
|
|
2508
|
-
5984, // CouchDB
|
|
2509
|
-
6000, // in use by something in macos
|
|
2510
|
-
];
|
|
2511
|
-
}
|
|
2512
|
-
};
|
|
2513
|
-
__decorate([
|
|
2514
|
-
Taon.Http.PUT(),
|
|
2515
|
-
__param(0, Taon.Http.Param.Query('uniqueServiceName')),
|
|
2516
|
-
__param(1, Taon.Http.Param.Query('startFrom')),
|
|
2517
|
-
__metadata("design:type", Function),
|
|
2518
|
-
__metadata("design:paramtypes", [String, String]),
|
|
2519
|
-
__metadata("design:returntype", Object)
|
|
2520
|
-
], PortsController.prototype, "registerAndAssignPort", null);
|
|
2521
|
-
PortsController = __decorate([
|
|
2522
|
-
Taon.Controller({
|
|
2523
|
-
className: 'PortsController',
|
|
2524
|
-
})
|
|
2525
|
-
], PortsController);
|
|
2526
|
-
/* */
|
|
2527
|
-
/* */
|
|
2528
|
-
/* */
|
|
2529
|
-
/* */
|
|
2530
|
-
/* */
|
|
2531
|
-
/* */
|
|
2532
|
-
/* */
|
|
2533
|
-
/* */
|
|
2534
|
-
/* */
|
|
2535
|
-
var PortsContext = Taon.createContext(() => ({
|
|
2536
|
-
contextName: 'PortsContext',
|
|
2537
|
-
contexts: { BaseContext },
|
|
2538
|
-
controllers: { PortsController },
|
|
2539
|
-
entities: { Port },
|
|
2540
|
-
/* */
|
|
2541
|
-
/* */
|
|
2542
|
-
/* */
|
|
2543
|
-
/* */
|
|
2544
|
-
/* */
|
|
2545
|
-
logs: {},
|
|
2546
|
-
}));
|
|
2547
|
-
class PortsWorker extends BaseCliWorker {
|
|
2548
|
-
async getControllerForRemoteConnection() {
|
|
2549
|
-
if (this.portsController) {
|
|
2550
|
-
return this.portsController;
|
|
2551
|
-
}
|
|
2552
|
-
await this.waitForProcessPortSavedToDisk();
|
|
2553
|
-
const refRemote = await PortsContext.initialize({
|
|
2554
|
-
overrideRemoteHost: `http://localhost:${this.processLocalInfoObj.port}`,
|
|
2555
|
-
});
|
|
2556
|
-
this.portsController = refRemote.getInstanceBy(PortsController);
|
|
2557
|
-
return this.portsController;
|
|
2558
|
-
}
|
|
2559
|
-
async headerText() {
|
|
2560
|
-
return 'TCP/UDP|Ports DB';
|
|
2561
|
-
}
|
|
2562
|
-
textHeaderStyle() {
|
|
2563
|
-
return 'block';
|
|
2564
|
-
}
|
|
2565
|
-
/**
|
|
2566
|
-
* start normally process
|
|
2567
|
-
* this will crash if process already started
|
|
2568
|
-
*/
|
|
2569
|
-
async startNormallyInCurrentProcess() {
|
|
2438
|
+
async initializeWorkerMetadata() {
|
|
2570
2439
|
/* */
|
|
2571
2440
|
/* */
|
|
2572
2441
|
/* */
|
|
@@ -2582,11 +2451,345 @@ class PortsWorker extends BaseCliWorker {
|
|
|
2582
2451
|
/* */
|
|
2583
2452
|
/* */
|
|
2584
2453
|
/* */
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2454
|
+
/* */
|
|
2455
|
+
/* */
|
|
2456
|
+
/* */
|
|
2457
|
+
/* */
|
|
2458
|
+
/* */
|
|
2459
|
+
/* */
|
|
2460
|
+
return (void 0);
|
|
2461
|
+
}
|
|
2462
|
+
async waitForProcessPortSavedToDisk() {
|
|
2463
|
+
/* */
|
|
2464
|
+
/* */
|
|
2465
|
+
/* */
|
|
2466
|
+
/* */
|
|
2467
|
+
/* */
|
|
2468
|
+
/* */
|
|
2469
|
+
/* */
|
|
2470
|
+
/* */
|
|
2471
|
+
/* */
|
|
2472
|
+
/* */
|
|
2473
|
+
/* */
|
|
2474
|
+
/* */
|
|
2475
|
+
/* */
|
|
2476
|
+
/* */
|
|
2477
|
+
/* */
|
|
2478
|
+
/* */
|
|
2479
|
+
/* */
|
|
2480
|
+
/* */
|
|
2481
|
+
/* */
|
|
2482
|
+
/* */
|
|
2483
|
+
/* */
|
|
2484
|
+
/* */
|
|
2485
|
+
return (void 0);
|
|
2486
|
+
}
|
|
2487
|
+
async getServicePort() {
|
|
2488
|
+
/* */
|
|
2489
|
+
/* */
|
|
2490
|
+
/* */
|
|
2491
|
+
/* */
|
|
2492
|
+
/* */
|
|
2493
|
+
/* */
|
|
2494
|
+
/* */
|
|
2495
|
+
/* */
|
|
2496
|
+
/* */
|
|
2497
|
+
/* */
|
|
2498
|
+
/* */
|
|
2499
|
+
/* */
|
|
2500
|
+
/* */
|
|
2501
|
+
return (void 0);
|
|
2502
|
+
}
|
|
2503
|
+
}
|
|
2504
|
+
;
|
|
2505
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/classes/base-cli-worker.ts
|
|
2506
|
+
|
|
2507
|
+
let MainContext_1736198527297_init = class MainContext_1736198527297_init extends Taon.Base.Migration {
|
|
2508
|
+
/**
|
|
2509
|
+
* remove this method if you are ready to run this migration
|
|
2510
|
+
*/
|
|
2511
|
+
isReadyToRun() {
|
|
2512
|
+
return false;
|
|
2513
|
+
}
|
|
2514
|
+
async up(queryRunner) {
|
|
2515
|
+
}
|
|
2516
|
+
async down(queryRunner) {
|
|
2517
|
+
}
|
|
2518
|
+
};
|
|
2519
|
+
MainContext_1736198527297_init = __decorate([
|
|
2520
|
+
Taon.Migration({
|
|
2521
|
+
className: 'MainContext_1736198527297_init',
|
|
2522
|
+
})
|
|
2523
|
+
], MainContext_1736198527297_init);
|
|
2524
|
+
let PortsContext_1736198527297_init = class PortsContext_1736198527297_init extends Taon.Base.Migration {
|
|
2525
|
+
/**
|
|
2526
|
+
* remove this method if you are ready to run this migration
|
|
2527
|
+
*/
|
|
2528
|
+
isReadyToRun() {
|
|
2529
|
+
return true;
|
|
2530
|
+
}
|
|
2531
|
+
async up(queryRunner) {
|
|
2532
|
+
}
|
|
2533
|
+
async down(queryRunner) {
|
|
2534
|
+
}
|
|
2535
|
+
};
|
|
2536
|
+
PortsContext_1736198527297_init = __decorate([
|
|
2537
|
+
Taon.Migration({
|
|
2538
|
+
className: 'PortsContext_1736198527297_init',
|
|
2539
|
+
})
|
|
2540
|
+
], PortsContext_1736198527297_init);
|
|
2541
|
+
;
|
|
2542
|
+
({}); // @--end-of-file-for-module=tnp-helpers migrations/1736198527297_init.ts
|
|
2543
|
+
|
|
2544
|
+
const portsWithDescription = {
|
|
2545
|
+
3000: 'Commonly used for development servers',
|
|
2546
|
+
3001: 'Alternate development server port',
|
|
2547
|
+
3306: 'MySQL',
|
|
2548
|
+
3389: 'Remote Desktop Protocol (RDP)',
|
|
2549
|
+
3478: 'STUN (Session Traversal Utilities for NAT)',
|
|
2550
|
+
4000: 'Alternative development server port',
|
|
2551
|
+
4200: 'Angular CLI Development Server',
|
|
2552
|
+
4500: 'IPSec NAT traversal',
|
|
2553
|
+
4567: 'Sinatra Default Port',
|
|
2554
|
+
5000: 'Flask, Python development server, or Node.js apps',
|
|
2555
|
+
5432: 'PostgreSQL',
|
|
2556
|
+
5500: 'Live Server (VS Code Extension)',
|
|
2557
|
+
5672: 'RabbitMQ',
|
|
2558
|
+
5800: 'VNC Remote Desktop (HTTP)',
|
|
2559
|
+
5900: 'VNC Remote Desktop',
|
|
2560
|
+
5984: 'CouchDB',
|
|
2561
|
+
6000: 'in use by something in macos',
|
|
2562
|
+
};
|
|
2563
|
+
let PortsContext_1736199486472_addingNotAssignablePorts = class PortsContext_1736199486472_addingNotAssignablePorts extends Taon
|
|
2564
|
+
.Base.Migration {
|
|
2565
|
+
constructor() {
|
|
2566
|
+
super(...arguments);
|
|
2567
|
+
this.portsController = this.injectController(PortsController);
|
|
2568
|
+
this.commonPortsFrom3000to6000 = Object.keys(portsWithDescription).map(Number);
|
|
2569
|
+
}
|
|
2570
|
+
async up(queryRunner) {
|
|
2571
|
+
const db = await queryRunner.manager.getRepository(NotAssignablePort);
|
|
2572
|
+
const allPorts = this.commonPortsFrom3000to6000.map(port => NotAssignablePort.from({
|
|
2573
|
+
port,
|
|
2574
|
+
serviceId: `not assignable (${portsWithDescription[port]})`,
|
|
2575
|
+
}));
|
|
2576
|
+
await db.save(allPorts);
|
|
2577
|
+
for (const commonPortObj of allPorts) {
|
|
2578
|
+
this.portsController.takenByOsPorts.set(commonPortObj.port, commonPortObj);
|
|
2579
|
+
}
|
|
2580
|
+
}
|
|
2581
|
+
async down(queryRunner) {
|
|
2582
|
+
const db = await queryRunner.manager.getRepository(NotAssignablePort);
|
|
2583
|
+
db.clear();
|
|
2584
|
+
this.portsController.takenByOsPorts.clear();
|
|
2585
|
+
}
|
|
2586
|
+
};
|
|
2587
|
+
PortsContext_1736199486472_addingNotAssignablePorts = __decorate([
|
|
2588
|
+
Taon.Migration({
|
|
2589
|
+
className: 'PortsContext_1736199486472_addingNotAssignablePorts',
|
|
2590
|
+
})
|
|
2591
|
+
], PortsContext_1736199486472_addingNotAssignablePorts);
|
|
2592
|
+
;
|
|
2593
|
+
({}); // @--end-of-file-for-module=tnp-helpers migrations/1736199486472_addingNotAssignablePorts.ts
|
|
2594
|
+
|
|
2595
|
+
let PortsContext_1736454437350_addFreePorts = class PortsContext_1736454437350_addFreePorts extends Taon.Base
|
|
2596
|
+
.Migration {
|
|
2597
|
+
constructor() {
|
|
2598
|
+
super(...arguments);
|
|
2599
|
+
this.portsController = this.injectController(PortsController);
|
|
2600
|
+
}
|
|
2601
|
+
async up(queryRunner) {
|
|
2602
|
+
const portsTableRepo = await queryRunner.manager.getRepository(Port);
|
|
2603
|
+
const addFreePortsInRange = _.range(this.portsController.START_PORT, this.portsController.END_PORT + 1);
|
|
2604
|
+
const freePortsInRange = addFreePortsInRange.map(port => Port.from({
|
|
2605
|
+
port: port,
|
|
2606
|
+
serviceId: `free port ${port}`,
|
|
2607
|
+
}));
|
|
2608
|
+
await portsTableRepo.save(freePortsInRange);
|
|
2609
|
+
for (const port of freePortsInRange) {
|
|
2610
|
+
this.portsController.assignedPorts.set(port.serviceId, port);
|
|
2611
|
+
}
|
|
2612
|
+
}
|
|
2613
|
+
async down(queryRunner) {
|
|
2614
|
+
this.portsController.assignedPorts.clear();
|
|
2615
|
+
const portsTableRepo = await queryRunner.manager.getRepository(Port);
|
|
2616
|
+
portsTableRepo.clear();
|
|
2617
|
+
}
|
|
2618
|
+
};
|
|
2619
|
+
PortsContext_1736454437350_addFreePorts = __decorate([
|
|
2620
|
+
Taon.Migration({
|
|
2621
|
+
className: 'PortsContext_1736454437350_addFreePorts',
|
|
2622
|
+
})
|
|
2623
|
+
], PortsContext_1736454437350_addFreePorts);
|
|
2624
|
+
;
|
|
2625
|
+
({}); // @--end-of-file-for-module=tnp-helpers migrations/1736454437350_addFreePorts.ts
|
|
2626
|
+
|
|
2627
|
+
const MIGRATIONS_CLASSES_FOR_MainContext = {
|
|
2628
|
+
/* 06-01-2025 22:22:07 */ MainContext_1736198527297_init,
|
|
2629
|
+
};
|
|
2630
|
+
const MIGRATIONS_CLASSES_FOR_PortsContext = {
|
|
2631
|
+
/* 06-01-2025 22:22:07 */ PortsContext_1736198527297_init,
|
|
2632
|
+
/* 06-01-2025 22:38:06 */ PortsContext_1736199486472_addingNotAssignablePorts,
|
|
2633
|
+
/* 09-01-2025 21:27:17 */ PortsContext_1736454437350_addFreePorts,
|
|
2634
|
+
};
|
|
2635
|
+
;
|
|
2636
|
+
({}); // @--end-of-file-for-module=tnp-helpers migrations/migrations_index._auto-generated_.ts
|
|
2637
|
+
|
|
2638
|
+
//@ts-nocheck
|
|
2639
|
+
;
|
|
2640
|
+
({}); // @--end-of-file-for-module=tnp-helpers migrations/index.ts
|
|
2641
|
+
|
|
2642
|
+
/* */
|
|
2643
|
+
/* */
|
|
2644
|
+
/* */
|
|
2645
|
+
/* */
|
|
2646
|
+
/* */
|
|
2647
|
+
/* */
|
|
2648
|
+
/* */
|
|
2649
|
+
/* */
|
|
2650
|
+
/* */
|
|
2651
|
+
/* */
|
|
2652
|
+
/* */
|
|
2653
|
+
const PortsContext = Taon.createContext(() => ({
|
|
2654
|
+
contextName: 'PortsContext',
|
|
2655
|
+
contexts: { BaseContext },
|
|
2656
|
+
controllers: { PortsController },
|
|
2657
|
+
entities: { Port, NotAssignablePort },
|
|
2658
|
+
migrations: { ...MIGRATIONS_CLASSES_FOR_PortsContext },
|
|
2659
|
+
skipWritingServerRoutes: true,
|
|
2660
|
+
/* */
|
|
2661
|
+
/* */
|
|
2662
|
+
/* */
|
|
2663
|
+
/* */
|
|
2664
|
+
/* */
|
|
2665
|
+
logs: {
|
|
2666
|
+
migrations: true,
|
|
2667
|
+
},
|
|
2668
|
+
}));
|
|
2669
|
+
;
|
|
2670
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/tcp-udp-ports/tcp-udp-ports.context.ts
|
|
2671
|
+
|
|
2672
|
+
class PortsWorker extends BaseCliWorker {
|
|
2673
|
+
async getControllerForRemoteConnection() {
|
|
2674
|
+
if (this.portsController) {
|
|
2675
|
+
return this.portsController;
|
|
2676
|
+
}
|
|
2677
|
+
await this.waitForProcessPortSavedToDisk();
|
|
2678
|
+
const refRemote = await PortsContext.initialize({
|
|
2679
|
+
overrideRemoteHost: `http://localhost:${this.processLocalInfoObj.port}`,
|
|
2680
|
+
});
|
|
2681
|
+
this.portsController = refRemote.getInstanceBy(PortsController);
|
|
2682
|
+
return this.portsController;
|
|
2683
|
+
}
|
|
2684
|
+
async headerText() {
|
|
2685
|
+
return 'TCP/UDP|Ports DB';
|
|
2686
|
+
}
|
|
2687
|
+
textHeaderStyle() {
|
|
2688
|
+
return 'block';
|
|
2689
|
+
}
|
|
2690
|
+
/**
|
|
2691
|
+
* start normally process
|
|
2692
|
+
* this will crash if process already started
|
|
2693
|
+
*/
|
|
2694
|
+
async startNormallyInCurrentProcess() {
|
|
2695
|
+
/* */
|
|
2696
|
+
/* */
|
|
2697
|
+
/* */
|
|
2698
|
+
/* */
|
|
2699
|
+
/* */
|
|
2700
|
+
/* */
|
|
2701
|
+
/* */
|
|
2702
|
+
/* */
|
|
2703
|
+
/* */
|
|
2704
|
+
/* */
|
|
2705
|
+
/* */
|
|
2706
|
+
/* */
|
|
2707
|
+
/* */
|
|
2708
|
+
/* */
|
|
2709
|
+
/* */
|
|
2710
|
+
/* */
|
|
2711
|
+
return (void 0);
|
|
2712
|
+
}
|
|
2713
|
+
async displayItemsForPortsStatus(status) {
|
|
2714
|
+
/* */
|
|
2715
|
+
/* */
|
|
2716
|
+
/* */
|
|
2717
|
+
/* */
|
|
2718
|
+
/* */
|
|
2719
|
+
/* */
|
|
2720
|
+
/* */
|
|
2721
|
+
/* */
|
|
2722
|
+
/* */
|
|
2723
|
+
/* */
|
|
2724
|
+
/* */
|
|
2725
|
+
/* */
|
|
2726
|
+
/* */
|
|
2727
|
+
/* */
|
|
2728
|
+
/* */
|
|
2729
|
+
/* */
|
|
2730
|
+
/* */
|
|
2731
|
+
/* */
|
|
2732
|
+
/* */
|
|
2733
|
+
return (void 0);
|
|
2734
|
+
}
|
|
2735
|
+
get backAction() {
|
|
2736
|
+
return {
|
|
2737
|
+
back: {
|
|
2738
|
+
name: 'Back',
|
|
2739
|
+
action: async () => {
|
|
2740
|
+
return true;
|
|
2741
|
+
},
|
|
2742
|
+
},
|
|
2743
|
+
};
|
|
2744
|
+
}
|
|
2745
|
+
getWorkerTerminalActions() {
|
|
2746
|
+
/* */
|
|
2747
|
+
/* */
|
|
2748
|
+
/* */
|
|
2749
|
+
/* */
|
|
2750
|
+
/* */
|
|
2751
|
+
/* */
|
|
2752
|
+
/* */
|
|
2753
|
+
/* */
|
|
2754
|
+
/* */
|
|
2755
|
+
/* */
|
|
2756
|
+
/* */
|
|
2757
|
+
/* */
|
|
2758
|
+
/* */
|
|
2759
|
+
/* */
|
|
2760
|
+
/* */
|
|
2761
|
+
/* */
|
|
2762
|
+
/* */
|
|
2763
|
+
/* */
|
|
2764
|
+
/* */
|
|
2765
|
+
/* */
|
|
2766
|
+
/* */
|
|
2767
|
+
/* */
|
|
2768
|
+
/* */
|
|
2769
|
+
/* */
|
|
2770
|
+
/* */
|
|
2771
|
+
/* */
|
|
2772
|
+
/* */
|
|
2773
|
+
/* */
|
|
2774
|
+
/* */
|
|
2775
|
+
/* */
|
|
2776
|
+
/* */
|
|
2777
|
+
/* */
|
|
2778
|
+
/* */
|
|
2779
|
+
/* */
|
|
2780
|
+
/* */
|
|
2781
|
+
/* */
|
|
2782
|
+
/* */
|
|
2783
|
+
/* */
|
|
2784
|
+
/* */
|
|
2785
|
+
return (void 0);
|
|
2786
|
+
}
|
|
2787
|
+
}
|
|
2788
|
+
;
|
|
2789
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/tcp-udp-ports/tcp-upd-ports.worker.ts
|
|
2790
|
+
|
|
2791
|
+
;
|
|
2792
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/tcp-udp-ports/index.ts
|
|
2590
2793
|
|
|
2591
2794
|
/* */
|
|
2592
2795
|
/* */
|
|
@@ -2606,7 +2809,7 @@ class BaseProjectResolver {
|
|
|
2606
2809
|
this.NPM_PROJECT_KEY = 'npm';
|
|
2607
2810
|
this.projects = [];
|
|
2608
2811
|
/**
|
|
2609
|
-
* To speed up checking folder I am keeping
|
|
2812
|
+
* To speed up checking folder I am keeping paths for already checked folder
|
|
2610
2813
|
* This may break things that are creating new projects
|
|
2611
2814
|
*/
|
|
2612
2815
|
this.emptyLocations = [];
|
|
@@ -2614,7 +2817,7 @@ class BaseProjectResolver {
|
|
|
2614
2817
|
if (!this.cliToolName) {
|
|
2615
2818
|
Helpers.throw(`cliToolName is not provided`);
|
|
2616
2819
|
}
|
|
2617
|
-
this.portsWorker = new PortsWorker('ports-worker', `${this.cliToolName} startCliServicePortsWorker --skipCoreCheck`, '0.0.
|
|
2820
|
+
this.portsWorker = new PortsWorker('ports-worker', `${this.cliToolName} startCliServicePortsWorker --skipCoreCheck`, '0.0.1');
|
|
2618
2821
|
}
|
|
2619
2822
|
get allowedTypes() {
|
|
2620
2823
|
return [this.NPM_PROJECT_KEY];
|
|
@@ -2860,7 +3063,7 @@ class BaseProjectResolver {
|
|
|
2860
3063
|
}
|
|
2861
3064
|
}
|
|
2862
3065
|
;
|
|
2863
|
-
({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-project-resolver.ts
|
|
3066
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/classes/base-project-resolver.ts
|
|
2864
3067
|
|
|
2865
3068
|
/* */
|
|
2866
3069
|
/* */
|
|
@@ -2985,6 +3188,12 @@ class BaseProject {
|
|
|
2985
3188
|
get basename() {
|
|
2986
3189
|
return path.basename(this.location);
|
|
2987
3190
|
}
|
|
3191
|
+
/**
|
|
3192
|
+
* project folder parent basename
|
|
3193
|
+
*/
|
|
3194
|
+
get parentBasename() {
|
|
3195
|
+
return path.basename(path.dirname(this.location));
|
|
3196
|
+
}
|
|
2988
3197
|
/**
|
|
2989
3198
|
* name from package.json
|
|
2990
3199
|
*/
|
|
@@ -3375,19 +3584,528 @@ class BaseProject {
|
|
|
3375
3584
|
/* */
|
|
3376
3585
|
/* */
|
|
3377
3586
|
}
|
|
3378
|
-
|
|
3587
|
+
getUniqueForTask(task) {
|
|
3588
|
+
return `task(${task}) in ${this.genericName}`;
|
|
3589
|
+
}
|
|
3590
|
+
async registerAndAssignPort(taskName, options) {
|
|
3591
|
+
/* */
|
|
3592
|
+
/* */
|
|
3593
|
+
/* */
|
|
3594
|
+
/* */
|
|
3595
|
+
/* */
|
|
3596
|
+
/* */
|
|
3597
|
+
/* */
|
|
3598
|
+
/* */
|
|
3599
|
+
/* */
|
|
3600
|
+
/* */
|
|
3601
|
+
return (void 0);
|
|
3602
|
+
}
|
|
3603
|
+
/**
|
|
3604
|
+
* @deprecated use registerAndAssignPort() instead
|
|
3605
|
+
*/
|
|
3606
|
+
async assignFreePort(startFrom = 4200, howManyFreePortsAfterThatPort = 0) {
|
|
3607
|
+
/* */
|
|
3608
|
+
/* */
|
|
3609
|
+
/* */
|
|
3610
|
+
/* */
|
|
3611
|
+
/* */
|
|
3612
|
+
/* */
|
|
3613
|
+
/* */
|
|
3614
|
+
/* */
|
|
3615
|
+
/* */
|
|
3616
|
+
/* */
|
|
3617
|
+
/* */
|
|
3618
|
+
/* */
|
|
3619
|
+
/* */
|
|
3620
|
+
/* */
|
|
3621
|
+
/* */
|
|
3622
|
+
/* */
|
|
3623
|
+
/* */
|
|
3624
|
+
/* */
|
|
3625
|
+
/* */
|
|
3626
|
+
/* */
|
|
3627
|
+
/* */
|
|
3628
|
+
/* */
|
|
3629
|
+
/* */
|
|
3630
|
+
/* */
|
|
3631
|
+
/* */
|
|
3632
|
+
/* */
|
|
3633
|
+
/* */
|
|
3634
|
+
/* */
|
|
3635
|
+
/* */
|
|
3636
|
+
/* */
|
|
3637
|
+
return (void 0);
|
|
3638
|
+
}
|
|
3639
|
+
removeItself() {
|
|
3640
|
+
/* */
|
|
3641
|
+
/* */
|
|
3642
|
+
}
|
|
3643
|
+
/**
|
|
3644
|
+
* Purpose: not initializing all classes at the beginning
|
|
3645
|
+
* Only for BaseFeatureForProject class
|
|
3646
|
+
*/
|
|
3647
|
+
defineProperty(variableName, classFn, options) {
|
|
3648
|
+
/* */
|
|
3649
|
+
/* */
|
|
3650
|
+
/* */
|
|
3651
|
+
/* */
|
|
3652
|
+
/* */
|
|
3653
|
+
/* */
|
|
3654
|
+
/* */
|
|
3655
|
+
/* */
|
|
3656
|
+
/* */
|
|
3657
|
+
/* */
|
|
3658
|
+
/* */
|
|
3659
|
+
/* */
|
|
3660
|
+
/* */
|
|
3661
|
+
/* */
|
|
3662
|
+
/* */
|
|
3663
|
+
/* */
|
|
3664
|
+
/* */
|
|
3665
|
+
/* */
|
|
3666
|
+
/* */
|
|
3667
|
+
/* */
|
|
3668
|
+
/* */
|
|
3669
|
+
/* */
|
|
3670
|
+
/* */
|
|
3671
|
+
/* */
|
|
3672
|
+
/* */
|
|
3673
|
+
/* */
|
|
3674
|
+
/* */
|
|
3675
|
+
/* */
|
|
3676
|
+
return (void 0);
|
|
3677
|
+
}
|
|
3678
|
+
/**
|
|
3679
|
+
* fs.copy option filter function for copying only selected folders from project
|
|
3680
|
+
*/
|
|
3681
|
+
filterOnlyCopy(basePathFoldersOnlyToInclude) {
|
|
3682
|
+
/* */
|
|
3683
|
+
/* */
|
|
3684
|
+
return (void 0);
|
|
3685
|
+
}
|
|
3686
|
+
/**
|
|
3687
|
+
* fs.copy option filter function for copying only not selected folders from project
|
|
3688
|
+
*/
|
|
3689
|
+
filterDontCopy(basePathFoldersTosSkip) {
|
|
3690
|
+
/* */
|
|
3691
|
+
/* */
|
|
3692
|
+
return (void 0);
|
|
3693
|
+
}
|
|
3694
|
+
/**
|
|
3695
|
+
* general default development branch for all kinds of projects
|
|
3696
|
+
*/
|
|
3697
|
+
getDefaultDevelopmentBranch() {
|
|
3698
|
+
return 'develop';
|
|
3699
|
+
}
|
|
3700
|
+
/**
|
|
3701
|
+
* main/default hardcoded branches
|
|
3702
|
+
*/
|
|
3703
|
+
getMainBranches() {
|
|
3704
|
+
return ['master', 'develop', 'stage', 'prod', 'test'];
|
|
3705
|
+
}
|
|
3706
|
+
isUnsingActionCommit() {
|
|
3707
|
+
return false;
|
|
3708
|
+
}
|
|
3709
|
+
useFeatureInBranchNameForTests() {
|
|
3710
|
+
return false;
|
|
3711
|
+
}
|
|
3712
|
+
async resetProcess(overrideBranch, recrusive = false) {
|
|
3713
|
+
/* */
|
|
3714
|
+
/* */
|
|
3715
|
+
/* */
|
|
3716
|
+
/* */
|
|
3717
|
+
/* */
|
|
3718
|
+
/* */
|
|
3719
|
+
/* */
|
|
3720
|
+
/* */
|
|
3721
|
+
/* */
|
|
3722
|
+
/* */
|
|
3723
|
+
/* */
|
|
3724
|
+
/* */
|
|
3725
|
+
/* */
|
|
3726
|
+
/* */
|
|
3727
|
+
/* */
|
|
3728
|
+
/* */
|
|
3729
|
+
/* */
|
|
3730
|
+
/* */
|
|
3731
|
+
/* */
|
|
3732
|
+
/* */
|
|
3733
|
+
/* */
|
|
3734
|
+
/* */
|
|
3735
|
+
/* */
|
|
3736
|
+
/* */
|
|
3737
|
+
/* */
|
|
3738
|
+
/* */
|
|
3739
|
+
/* */
|
|
3740
|
+
/* */
|
|
3741
|
+
/* */
|
|
3742
|
+
/* */
|
|
3743
|
+
/* */
|
|
3744
|
+
/* */
|
|
3745
|
+
/* */
|
|
3746
|
+
/* */
|
|
3747
|
+
/* */
|
|
3748
|
+
/* */
|
|
3749
|
+
/* */
|
|
3750
|
+
/* */
|
|
3751
|
+
/* */
|
|
3752
|
+
/* */
|
|
3753
|
+
/* */
|
|
3754
|
+
}
|
|
3755
|
+
linkTo(destPackageLocation) {
|
|
3756
|
+
/* */
|
|
3757
|
+
/* */
|
|
3758
|
+
}
|
|
3759
|
+
setValueToJSON(relativePath, lodashGetPath, value) {
|
|
3760
|
+
/* */
|
|
3761
|
+
/* */
|
|
3762
|
+
/* */
|
|
3763
|
+
/* */
|
|
3764
|
+
/* */
|
|
3765
|
+
return (void 0);
|
|
3766
|
+
}
|
|
3767
|
+
setValueToJSONC(relativePath, lodashGetPath, value) {
|
|
3768
|
+
/* */
|
|
3769
|
+
/* */
|
|
3770
|
+
/* */
|
|
3771
|
+
/* */
|
|
3772
|
+
/* */
|
|
3773
|
+
return (void 0);
|
|
3774
|
+
}
|
|
3775
|
+
setValueToJSON5(relativePath, lodashGetPath, value) {
|
|
3776
|
+
/* */
|
|
3777
|
+
/* */
|
|
3778
|
+
/* */
|
|
3779
|
+
/* */
|
|
3780
|
+
/* */
|
|
3781
|
+
return (void 0);
|
|
3782
|
+
}
|
|
3783
|
+
getValueFromJSON(relativePath, lodashGetPath, defaultValue = void 0) {
|
|
3784
|
+
/* */
|
|
3785
|
+
/* */
|
|
3786
|
+
/* */
|
|
3787
|
+
/* */
|
|
3788
|
+
/* */
|
|
3789
|
+
/* */
|
|
3790
|
+
/* */
|
|
3791
|
+
/* */
|
|
3792
|
+
/* */
|
|
3793
|
+
return (void 0);
|
|
3794
|
+
}
|
|
3795
|
+
getValueFromJSONC(relativePath, lodashGetPath, defaultValue = void 0) {
|
|
3796
|
+
/* */
|
|
3797
|
+
/* */
|
|
3798
|
+
/* */
|
|
3799
|
+
/* */
|
|
3800
|
+
/* */
|
|
3801
|
+
/* */
|
|
3802
|
+
/* */
|
|
3803
|
+
/* */
|
|
3804
|
+
/* */
|
|
3805
|
+
return (void 0);
|
|
3806
|
+
}
|
|
3807
|
+
writeFile(relativePath, content) {
|
|
3808
|
+
/* */
|
|
3809
|
+
/* */
|
|
3810
|
+
/* */
|
|
3811
|
+
/* */
|
|
3812
|
+
/* */
|
|
3813
|
+
}
|
|
3814
|
+
runCommandGetString(command) {
|
|
3815
|
+
/* */
|
|
3816
|
+
/* */
|
|
3817
|
+
/* */
|
|
3818
|
+
/* */
|
|
3819
|
+
return (void 0);
|
|
3820
|
+
}
|
|
3821
|
+
get parentsNames() {
|
|
3822
|
+
/* */
|
|
3823
|
+
/* */
|
|
3824
|
+
return (void 0);
|
|
3825
|
+
}
|
|
3826
|
+
openLocation(relativeFolderPath) {
|
|
3827
|
+
/* */
|
|
3828
|
+
/* */
|
|
3829
|
+
return (void 0);
|
|
3830
|
+
}
|
|
3831
|
+
findParentsNames(project, parent, result = []) {
|
|
3832
|
+
/* */
|
|
3833
|
+
/* */
|
|
3834
|
+
/* */
|
|
3835
|
+
/* */
|
|
3836
|
+
/* */
|
|
3837
|
+
/* */
|
|
3838
|
+
/* */
|
|
3839
|
+
/* */
|
|
3840
|
+
/* */
|
|
3841
|
+
/* */
|
|
3842
|
+
/* */
|
|
3843
|
+
return (void 0);
|
|
3844
|
+
}
|
|
3845
|
+
tryKillAllElectronInstances() {
|
|
3846
|
+
/* */
|
|
3847
|
+
/* */
|
|
3848
|
+
/* */
|
|
3849
|
+
/* */
|
|
3850
|
+
/* */
|
|
3851
|
+
/* */
|
|
3852
|
+
/* */
|
|
3853
|
+
/* */
|
|
3854
|
+
/* */
|
|
3855
|
+
/* */
|
|
3856
|
+
return (void 0);
|
|
3857
|
+
}
|
|
3858
|
+
/**
|
|
3859
|
+
* init project files structure and depedencies
|
|
3860
|
+
*/
|
|
3861
|
+
async init(initOptions) {
|
|
3862
|
+
throw new Error('TODO IMPLEMENT');
|
|
3863
|
+
}
|
|
3864
|
+
/**
|
|
3865
|
+
* globally link npm as package
|
|
3866
|
+
*/
|
|
3867
|
+
async link() {
|
|
3868
|
+
throw new Error('TODO IMPLEMENT');
|
|
3869
|
+
}
|
|
3870
|
+
/**
|
|
3871
|
+
* init project files structure without depedencies
|
|
3872
|
+
*/
|
|
3873
|
+
async struct(initOptions) {
|
|
3874
|
+
throw new Error('TODO IMPLEMENT');
|
|
3875
|
+
}
|
|
3876
|
+
/**
|
|
3877
|
+
* init and build() project
|
|
3878
|
+
*/
|
|
3879
|
+
async test(testOptions) {
|
|
3880
|
+
throw new Error('TODO IMPLEMENT');
|
|
3881
|
+
}
|
|
3882
|
+
/**
|
|
3883
|
+
* init and build() project
|
|
3884
|
+
*/
|
|
3885
|
+
async build(buildOptions) {
|
|
3886
|
+
throw new Error('TODO IMPLEMENT');
|
|
3887
|
+
}
|
|
3888
|
+
/**
|
|
3889
|
+
* publish project to npm
|
|
3890
|
+
*/
|
|
3891
|
+
async publish(publishOptions) {
|
|
3892
|
+
throw new Error('TODO IMPLEMENT');
|
|
3893
|
+
}
|
|
3894
|
+
async release(releaseOptions) {
|
|
3895
|
+
throw new Error('TODO IMPLEMENT');
|
|
3896
|
+
}
|
|
3897
|
+
/**
|
|
3898
|
+
* lint porject
|
|
3899
|
+
*/
|
|
3900
|
+
async lint(lintOptions) {
|
|
3901
|
+
Helpers.info(`
|
|
3902
|
+
|
|
3903
|
+
|
|
3904
|
+
COMMIT LINT NOT IMPLEMENTED
|
|
3905
|
+
|
|
3906
|
+
|
|
3907
|
+
`);
|
|
3908
|
+
}
|
|
3909
|
+
/**
|
|
3910
|
+
* get info about porject
|
|
3911
|
+
*/
|
|
3912
|
+
async info() {
|
|
3913
|
+
/* */
|
|
3914
|
+
/* */
|
|
3915
|
+
/* */
|
|
3916
|
+
/* */
|
|
3917
|
+
/* */
|
|
3918
|
+
/* */
|
|
3919
|
+
/* */
|
|
3920
|
+
/* */
|
|
3921
|
+
/* */
|
|
3922
|
+
/* */
|
|
3923
|
+
/* */
|
|
3924
|
+
/* */
|
|
3925
|
+
/* */
|
|
3926
|
+
/* */
|
|
3927
|
+
/* */
|
|
3928
|
+
/* */
|
|
3929
|
+
/* */
|
|
3930
|
+
/* */
|
|
3931
|
+
/* */
|
|
3932
|
+
/* */
|
|
3933
|
+
/* */
|
|
3934
|
+
/* */
|
|
3935
|
+
/* */
|
|
3936
|
+
/* */
|
|
3937
|
+
/* */
|
|
3938
|
+
/* */
|
|
3939
|
+
/* */
|
|
3940
|
+
/* */
|
|
3941
|
+
/* */
|
|
3942
|
+
/* */
|
|
3943
|
+
/* */
|
|
3944
|
+
/* */
|
|
3945
|
+
/* */
|
|
3946
|
+
/* */
|
|
3947
|
+
return (void 0);
|
|
3948
|
+
}
|
|
3949
|
+
}
|
|
3950
|
+
;
|
|
3951
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/classes/base-project.ts
|
|
3952
|
+
|
|
3953
|
+
class BaseFeatureForProject {
|
|
3954
|
+
constructor(project) {
|
|
3955
|
+
this.project = project;
|
|
3956
|
+
}
|
|
3957
|
+
}
|
|
3958
|
+
;
|
|
3959
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/classes/base-feature-for-project.ts
|
|
3960
|
+
|
|
3961
|
+
/* */
|
|
3962
|
+
/* */
|
|
3963
|
+
/* */
|
|
3964
|
+
/**
|
|
3965
|
+
* Base library build for standard angular/typescript projects
|
|
3966
|
+
*/
|
|
3967
|
+
class BaseLibraryBuild extends BaseFeatureForProject {
|
|
3968
|
+
constructor() {
|
|
3969
|
+
super(...arguments);
|
|
3970
|
+
this.cache = {};
|
|
3971
|
+
this.tempOrgTsConfigFile = `tmp-original-${config.file.tsconfig_json}`;
|
|
3972
|
+
}
|
|
3973
|
+
sortByDeps(libraries) {
|
|
3974
|
+
/* */
|
|
3975
|
+
/* */
|
|
3976
|
+
/* */
|
|
3977
|
+
/* */
|
|
3978
|
+
/* */
|
|
3979
|
+
/* */
|
|
3980
|
+
/* */
|
|
3981
|
+
/* */
|
|
3982
|
+
/* */
|
|
3983
|
+
/* */
|
|
3984
|
+
/* */
|
|
3985
|
+
/* */
|
|
3986
|
+
/* */
|
|
3987
|
+
/* */
|
|
3988
|
+
/* */
|
|
3989
|
+
/* */
|
|
3990
|
+
/* */
|
|
3991
|
+
/* */
|
|
3992
|
+
/* */
|
|
3993
|
+
/* */
|
|
3994
|
+
/* */
|
|
3995
|
+
/* */
|
|
3996
|
+
/* */
|
|
3997
|
+
/* */
|
|
3998
|
+
/* */
|
|
3999
|
+
/* */
|
|
4000
|
+
return (void 0);
|
|
4001
|
+
}
|
|
4002
|
+
/**
|
|
4003
|
+
* Use cases:
|
|
4004
|
+
* 1. build all libraries in normal mode
|
|
4005
|
+
* 2. build all libraries in watch mode
|
|
4006
|
+
* 3. build selected libraries in normal mode
|
|
4007
|
+
* (with first time all libraries will be build)
|
|
4008
|
+
* 4. build selected libraries in watch mode
|
|
4009
|
+
* (use normal build for not selected libraries)
|
|
4010
|
+
* 5. build selected libraries in watch mode
|
|
4011
|
+
* (skip normal build for not selected libraries)
|
|
4012
|
+
*/
|
|
4013
|
+
async selectAndSaveLibraries({ selectedLibs, watch, watchBuildSupported, skipAllLibsQuestion, useLastUserConfiguration, }) {
|
|
4014
|
+
/* */
|
|
4015
|
+
/* */
|
|
4016
|
+
/* */
|
|
4017
|
+
/* */
|
|
4018
|
+
/* */
|
|
4019
|
+
/* */
|
|
4020
|
+
/* */
|
|
4021
|
+
/* */
|
|
4022
|
+
/* */
|
|
4023
|
+
/* */
|
|
4024
|
+
/* */
|
|
4025
|
+
/* */
|
|
4026
|
+
/* */
|
|
4027
|
+
/* */
|
|
4028
|
+
/* */
|
|
4029
|
+
/* */
|
|
4030
|
+
/* */
|
|
4031
|
+
/* */
|
|
4032
|
+
/* */
|
|
4033
|
+
/* */
|
|
4034
|
+
/* */
|
|
4035
|
+
/* */
|
|
4036
|
+
/* */
|
|
4037
|
+
/* */
|
|
4038
|
+
/* */
|
|
4039
|
+
/* */
|
|
4040
|
+
/* */
|
|
4041
|
+
/* */
|
|
4042
|
+
/* */
|
|
4043
|
+
/* */
|
|
4044
|
+
/* */
|
|
4045
|
+
/* */
|
|
4046
|
+
/* */
|
|
4047
|
+
/* */
|
|
4048
|
+
/* */
|
|
4049
|
+
/* */
|
|
4050
|
+
/* */
|
|
4051
|
+
/* */
|
|
4052
|
+
/* */
|
|
4053
|
+
/* */
|
|
4054
|
+
/* */
|
|
4055
|
+
/* */
|
|
4056
|
+
/* */
|
|
4057
|
+
/* */
|
|
4058
|
+
/* */
|
|
4059
|
+
/* */
|
|
4060
|
+
/* */
|
|
4061
|
+
/* */
|
|
4062
|
+
/* */
|
|
4063
|
+
/* */
|
|
4064
|
+
/* */
|
|
4065
|
+
/* */
|
|
4066
|
+
/* */
|
|
4067
|
+
/* */
|
|
4068
|
+
/* */
|
|
4069
|
+
/* */
|
|
4070
|
+
/* */
|
|
4071
|
+
/* */
|
|
4072
|
+
/* */
|
|
4073
|
+
/* */
|
|
4074
|
+
/* */
|
|
4075
|
+
/* */
|
|
4076
|
+
/* */
|
|
4077
|
+
/* */
|
|
4078
|
+
/* */
|
|
4079
|
+
/* */
|
|
4080
|
+
/* */
|
|
4081
|
+
/* */
|
|
4082
|
+
/* */
|
|
4083
|
+
/* */
|
|
4084
|
+
/* */
|
|
4085
|
+
/* */
|
|
4086
|
+
/* */
|
|
4087
|
+
/* */
|
|
4088
|
+
/* */
|
|
4089
|
+
/* */
|
|
4090
|
+
/* */
|
|
4091
|
+
/* */
|
|
4092
|
+
/* */
|
|
4093
|
+
/* */
|
|
4094
|
+
/* */
|
|
4095
|
+
/* */
|
|
4096
|
+
/* */
|
|
4097
|
+
/* */
|
|
4098
|
+
/* */
|
|
4099
|
+
/* */
|
|
4100
|
+
/* */
|
|
4101
|
+
/* */
|
|
4102
|
+
/* */
|
|
3379
4103
|
/* */
|
|
3380
4104
|
/* */
|
|
3381
4105
|
/* */
|
|
3382
4106
|
/* */
|
|
3383
4107
|
/* */
|
|
3384
4108
|
/* */
|
|
3385
|
-
return (void 0);
|
|
3386
|
-
}
|
|
3387
|
-
/**
|
|
3388
|
-
* @deprecated
|
|
3389
|
-
*/
|
|
3390
|
-
async assignFreePort(startFrom = 4200, howManyFreePortsAfterThatPort = 0) {
|
|
3391
4109
|
/* */
|
|
3392
4110
|
/* */
|
|
3393
4111
|
/* */
|
|
@@ -3399,6 +4117,12 @@ class BaseProject {
|
|
|
3399
4117
|
/* */
|
|
3400
4118
|
/* */
|
|
3401
4119
|
/* */
|
|
4120
|
+
return (void 0);
|
|
4121
|
+
}
|
|
4122
|
+
/**
|
|
4123
|
+
* angular libraries from angular.json
|
|
4124
|
+
*/
|
|
4125
|
+
get libraries() {
|
|
3402
4126
|
/* */
|
|
3403
4127
|
/* */
|
|
3404
4128
|
/* */
|
|
@@ -3406,6 +4130,9 @@ class BaseProject {
|
|
|
3406
4130
|
/* */
|
|
3407
4131
|
/* */
|
|
3408
4132
|
/* */
|
|
4133
|
+
return (void 0);
|
|
4134
|
+
}
|
|
4135
|
+
getLibraries() {
|
|
3409
4136
|
/* */
|
|
3410
4137
|
/* */
|
|
3411
4138
|
/* */
|
|
@@ -3418,17 +4145,15 @@ class BaseProject {
|
|
|
3418
4145
|
/* */
|
|
3419
4146
|
/* */
|
|
3420
4147
|
/* */
|
|
3421
|
-
return (void 0);
|
|
3422
|
-
}
|
|
3423
|
-
removeItself() {
|
|
3424
4148
|
/* */
|
|
3425
4149
|
/* */
|
|
4150
|
+
return (void 0);
|
|
3426
4151
|
}
|
|
3427
4152
|
/**
|
|
3428
|
-
*
|
|
3429
|
-
* Only for BaseFeatureForProject class
|
|
4153
|
+
* Angular library build
|
|
3430
4154
|
*/
|
|
3431
|
-
|
|
4155
|
+
async buildLibraries({ watch = false, strategy, releaseBuild = false, buildType, copylink_to_node_modules, outputLineReplace, libraries, useLastUserConfiguration, } = {}) {
|
|
4156
|
+
/* */
|
|
3432
4157
|
/* */
|
|
3433
4158
|
/* */
|
|
3434
4159
|
/* */
|
|
@@ -3457,43 +4182,10 @@ class BaseProject {
|
|
|
3457
4182
|
/* */
|
|
3458
4183
|
/* */
|
|
3459
4184
|
/* */
|
|
3460
|
-
return (void 0);
|
|
3461
|
-
}
|
|
3462
|
-
/**
|
|
3463
|
-
* fs.copy option filter function for copying only selected folders from project
|
|
3464
|
-
*/
|
|
3465
|
-
filterOnlyCopy(basePathFoldersOnlyToInclude) {
|
|
3466
4185
|
/* */
|
|
3467
4186
|
/* */
|
|
3468
|
-
return (void 0);
|
|
3469
|
-
}
|
|
3470
|
-
/**
|
|
3471
|
-
* fs.copy option filter function for copying only not selected folders from project
|
|
3472
|
-
*/
|
|
3473
|
-
filterDontCopy(basePathFoldersTosSkip) {
|
|
3474
4187
|
/* */
|
|
3475
4188
|
/* */
|
|
3476
|
-
return (void 0);
|
|
3477
|
-
}
|
|
3478
|
-
/**
|
|
3479
|
-
* general default development branch for all kinds of projects
|
|
3480
|
-
*/
|
|
3481
|
-
getDefaultDevelopmentBranch() {
|
|
3482
|
-
return 'develop';
|
|
3483
|
-
}
|
|
3484
|
-
/**
|
|
3485
|
-
* main/default hardcoded branches
|
|
3486
|
-
*/
|
|
3487
|
-
getMainBranches() {
|
|
3488
|
-
return ['master', 'develop', 'stage', 'prod', 'test'];
|
|
3489
|
-
}
|
|
3490
|
-
isUnsingActionCommit() {
|
|
3491
|
-
return false;
|
|
3492
|
-
}
|
|
3493
|
-
useFeatureInBranchNameForTests() {
|
|
3494
|
-
return false;
|
|
3495
|
-
}
|
|
3496
|
-
async resetProcess(overrideBranch, recrusive = false) {
|
|
3497
4189
|
/* */
|
|
3498
4190
|
/* */
|
|
3499
4191
|
/* */
|
|
@@ -3535,36 +4227,23 @@ class BaseProject {
|
|
|
3535
4227
|
/* */
|
|
3536
4228
|
/* */
|
|
3537
4229
|
/* */
|
|
3538
|
-
}
|
|
3539
|
-
linkTo(destPackageLocation) {
|
|
3540
4230
|
/* */
|
|
3541
4231
|
/* */
|
|
3542
|
-
}
|
|
3543
|
-
setValueToJSON(relativePath, lodashGetPath, value) {
|
|
3544
4232
|
/* */
|
|
3545
4233
|
/* */
|
|
3546
4234
|
/* */
|
|
3547
4235
|
/* */
|
|
3548
4236
|
/* */
|
|
3549
|
-
return (void 0);
|
|
3550
|
-
}
|
|
3551
|
-
setValueToJSONC(relativePath, lodashGetPath, value) {
|
|
3552
4237
|
/* */
|
|
3553
4238
|
/* */
|
|
3554
4239
|
/* */
|
|
3555
4240
|
/* */
|
|
3556
4241
|
/* */
|
|
3557
|
-
return (void 0);
|
|
3558
|
-
}
|
|
3559
|
-
setValueToJSON5(relativePath, lodashGetPath, value) {
|
|
3560
4242
|
/* */
|
|
3561
4243
|
/* */
|
|
3562
4244
|
/* */
|
|
3563
4245
|
/* */
|
|
3564
4246
|
/* */
|
|
3565
|
-
return (void 0);
|
|
3566
|
-
}
|
|
3567
|
-
getValueFromJSON(relativePath, lodashGetPath, defaultValue = void 0) {
|
|
3568
4247
|
/* */
|
|
3569
4248
|
/* */
|
|
3570
4249
|
/* */
|
|
@@ -3574,9 +4253,6 @@ class BaseProject {
|
|
|
3574
4253
|
/* */
|
|
3575
4254
|
/* */
|
|
3576
4255
|
/* */
|
|
3577
|
-
return (void 0);
|
|
3578
|
-
}
|
|
3579
|
-
getValueFromJSONC(relativePath, lodashGetPath, defaultValue = void 0) {
|
|
3580
4256
|
/* */
|
|
3581
4257
|
/* */
|
|
3582
4258
|
/* */
|
|
@@ -3586,33 +4262,21 @@ class BaseProject {
|
|
|
3586
4262
|
/* */
|
|
3587
4263
|
/* */
|
|
3588
4264
|
/* */
|
|
3589
|
-
return (void 0);
|
|
3590
|
-
}
|
|
3591
|
-
writeFile(relativePath, content) {
|
|
3592
4265
|
/* */
|
|
3593
4266
|
/* */
|
|
3594
4267
|
/* */
|
|
3595
4268
|
/* */
|
|
3596
4269
|
/* */
|
|
3597
|
-
}
|
|
3598
|
-
runCommandGetString(command) {
|
|
3599
4270
|
/* */
|
|
3600
4271
|
/* */
|
|
3601
4272
|
/* */
|
|
3602
4273
|
/* */
|
|
3603
|
-
return (void 0);
|
|
3604
4274
|
}
|
|
3605
|
-
|
|
4275
|
+
async libWatchBuildProcess({ lib, locationsForNodeModules, strategy, buildType, outputLineReplace, }) {
|
|
3606
4276
|
/* */
|
|
3607
4277
|
/* */
|
|
3608
|
-
return (void 0);
|
|
3609
|
-
}
|
|
3610
|
-
openLocation(relativeFolderPath) {
|
|
3611
4278
|
/* */
|
|
3612
4279
|
/* */
|
|
3613
|
-
return (void 0);
|
|
3614
|
-
}
|
|
3615
|
-
findParentsNames(project, parent, result = []) {
|
|
3616
4280
|
/* */
|
|
3617
4281
|
/* */
|
|
3618
4282
|
/* */
|
|
@@ -3624,9 +4288,6 @@ class BaseProject {
|
|
|
3624
4288
|
/* */
|
|
3625
4289
|
/* */
|
|
3626
4290
|
/* */
|
|
3627
|
-
return (void 0);
|
|
3628
|
-
}
|
|
3629
|
-
tryKillAllElectronInstances() {
|
|
3630
4291
|
/* */
|
|
3631
4292
|
/* */
|
|
3632
4293
|
/* */
|
|
@@ -3637,63 +4298,6 @@ class BaseProject {
|
|
|
3637
4298
|
/* */
|
|
3638
4299
|
/* */
|
|
3639
4300
|
/* */
|
|
3640
|
-
return (void 0);
|
|
3641
|
-
}
|
|
3642
|
-
/**
|
|
3643
|
-
* init project files structure and depedencies
|
|
3644
|
-
*/
|
|
3645
|
-
async init(initOptions) {
|
|
3646
|
-
throw new Error('TODO IMPLEMENT');
|
|
3647
|
-
}
|
|
3648
|
-
/**
|
|
3649
|
-
* globally link npm as package
|
|
3650
|
-
*/
|
|
3651
|
-
async link() {
|
|
3652
|
-
throw new Error('TODO IMPLEMENT');
|
|
3653
|
-
}
|
|
3654
|
-
/**
|
|
3655
|
-
* init project files structure without depedencies
|
|
3656
|
-
*/
|
|
3657
|
-
async struct(initOptions) {
|
|
3658
|
-
throw new Error('TODO IMPLEMENT');
|
|
3659
|
-
}
|
|
3660
|
-
/**
|
|
3661
|
-
* init and build() project
|
|
3662
|
-
*/
|
|
3663
|
-
async test(testOptions) {
|
|
3664
|
-
throw new Error('TODO IMPLEMENT');
|
|
3665
|
-
}
|
|
3666
|
-
/**
|
|
3667
|
-
* init and build() project
|
|
3668
|
-
*/
|
|
3669
|
-
async build(buildOptions) {
|
|
3670
|
-
throw new Error('TODO IMPLEMENT');
|
|
3671
|
-
}
|
|
3672
|
-
/**
|
|
3673
|
-
* publish project to npm
|
|
3674
|
-
*/
|
|
3675
|
-
async publish(publishOptions) {
|
|
3676
|
-
throw new Error('TODO IMPLEMENT');
|
|
3677
|
-
}
|
|
3678
|
-
async release(releaseOptions) {
|
|
3679
|
-
throw new Error('TODO IMPLEMENT');
|
|
3680
|
-
}
|
|
3681
|
-
/**
|
|
3682
|
-
* lint porject
|
|
3683
|
-
*/
|
|
3684
|
-
async lint(lintOptions) {
|
|
3685
|
-
Helpers.info(`
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
COMMIT LINT NOT IMPLEMENTED
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
`);
|
|
3692
|
-
}
|
|
3693
|
-
/**
|
|
3694
|
-
* get info about porject
|
|
3695
|
-
*/
|
|
3696
|
-
async info() {
|
|
3697
4301
|
/* */
|
|
3698
4302
|
/* */
|
|
3699
4303
|
/* */
|
|
@@ -3720,6 +4324,11 @@ class BaseProject {
|
|
|
3720
4324
|
/* */
|
|
3721
4325
|
/* */
|
|
3722
4326
|
/* */
|
|
4327
|
+
/* */
|
|
4328
|
+
/* */
|
|
4329
|
+
return (void 0);
|
|
4330
|
+
}
|
|
4331
|
+
async libNormalBuildProcess({ lib, locationsForNodeModules, strategy, buildType, outputLineReplace, }) {
|
|
3723
4332
|
/* */
|
|
3724
4333
|
/* */
|
|
3725
4334
|
/* */
|
|
@@ -3728,33 +4337,6 @@ class BaseProject {
|
|
|
3728
4337
|
/* */
|
|
3729
4338
|
/* */
|
|
3730
4339
|
/* */
|
|
3731
|
-
return (void 0);
|
|
3732
|
-
}
|
|
3733
|
-
}
|
|
3734
|
-
;
|
|
3735
|
-
({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-project.ts
|
|
3736
|
-
|
|
3737
|
-
class BaseFeatureForProject {
|
|
3738
|
-
constructor(project) {
|
|
3739
|
-
this.project = project;
|
|
3740
|
-
}
|
|
3741
|
-
}
|
|
3742
|
-
;
|
|
3743
|
-
({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-feature-for-project.ts
|
|
3744
|
-
|
|
3745
|
-
/* */
|
|
3746
|
-
/* */
|
|
3747
|
-
/* */
|
|
3748
|
-
/**
|
|
3749
|
-
* Base library build for standard angular/typescript projects
|
|
3750
|
-
*/
|
|
3751
|
-
class BaseLibraryBuild extends BaseFeatureForProject {
|
|
3752
|
-
constructor() {
|
|
3753
|
-
super(...arguments);
|
|
3754
|
-
this.cache = {};
|
|
3755
|
-
this.tempOrgTsConfigFile = `tmp-original-${config.file.tsconfig_json}`;
|
|
3756
|
-
}
|
|
3757
|
-
sortByDeps(libraries) {
|
|
3758
4340
|
/* */
|
|
3759
4341
|
/* */
|
|
3760
4342
|
/* */
|
|
@@ -3781,20 +4363,6 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
3781
4363
|
/* */
|
|
3782
4364
|
/* */
|
|
3783
4365
|
/* */
|
|
3784
|
-
return (void 0);
|
|
3785
|
-
}
|
|
3786
|
-
/**
|
|
3787
|
-
* Use cases:
|
|
3788
|
-
* 1. build all libraries in normal mode
|
|
3789
|
-
* 2. build all libraries in watch mode
|
|
3790
|
-
* 3. build selected libraries in normal mode
|
|
3791
|
-
* (with first time all libraries will be build)
|
|
3792
|
-
* 4. build selected libraries in watch mode
|
|
3793
|
-
* (use normal build for not selected libraries)
|
|
3794
|
-
* 5. build selected libraries in watch mode
|
|
3795
|
-
* (skip normal build for not selected libraries)
|
|
3796
|
-
*/
|
|
3797
|
-
async selectAndSaveLibraries({ selectedLibs, watch, watchBuildSupported, skipAllLibsQuestion, useLastUserConfiguration, }) {
|
|
3798
4366
|
/* */
|
|
3799
4367
|
/* */
|
|
3800
4368
|
/* */
|
|
@@ -3843,6 +4411,9 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
3843
4411
|
/* */
|
|
3844
4412
|
/* */
|
|
3845
4413
|
/* */
|
|
4414
|
+
return (void 0);
|
|
4415
|
+
}
|
|
4416
|
+
getLibraryBuildComamnd(options) {
|
|
3846
4417
|
/* */
|
|
3847
4418
|
/* */
|
|
3848
4419
|
/* */
|
|
@@ -3857,6 +4428,9 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
3857
4428
|
/* */
|
|
3858
4429
|
/* */
|
|
3859
4430
|
/* */
|
|
4431
|
+
return (void 0);
|
|
4432
|
+
}
|
|
4433
|
+
get getLibraryBuildSuccessComamnds() {
|
|
3860
4434
|
/* */
|
|
3861
4435
|
/* */
|
|
3862
4436
|
/* */
|
|
@@ -3869,6 +4443,9 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
3869
4443
|
/* */
|
|
3870
4444
|
/* */
|
|
3871
4445
|
/* */
|
|
4446
|
+
return (void 0);
|
|
4447
|
+
}
|
|
4448
|
+
async selectCopytoProjects() {
|
|
3872
4449
|
/* */
|
|
3873
4450
|
/* */
|
|
3874
4451
|
/* */
|
|
@@ -3893,6 +4470,9 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
3893
4470
|
/* */
|
|
3894
4471
|
/* */
|
|
3895
4472
|
/* */
|
|
4473
|
+
return (void 0);
|
|
4474
|
+
}
|
|
4475
|
+
async changeTsConfigForLibrariesTypes() {
|
|
3896
4476
|
/* */
|
|
3897
4477
|
/* */
|
|
3898
4478
|
/* */
|
|
@@ -3901,12 +4481,6 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
3901
4481
|
/* */
|
|
3902
4482
|
/* */
|
|
3903
4483
|
/* */
|
|
3904
|
-
return (void 0);
|
|
3905
|
-
}
|
|
3906
|
-
/**
|
|
3907
|
-
* angular libraries from angular.json
|
|
3908
|
-
*/
|
|
3909
|
-
get libraries() {
|
|
3910
4484
|
/* */
|
|
3911
4485
|
/* */
|
|
3912
4486
|
/* */
|
|
@@ -3916,7 +4490,7 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
3916
4490
|
/* */
|
|
3917
4491
|
return (void 0);
|
|
3918
4492
|
}
|
|
3919
|
-
|
|
4493
|
+
async replaceTsConfigsPathes() {
|
|
3920
4494
|
/* */
|
|
3921
4495
|
/* */
|
|
3922
4496
|
/* */
|
|
@@ -3931,12 +4505,6 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
3931
4505
|
/* */
|
|
3932
4506
|
/* */
|
|
3933
4507
|
/* */
|
|
3934
|
-
return (void 0);
|
|
3935
|
-
}
|
|
3936
|
-
/**
|
|
3937
|
-
* Angular library build
|
|
3938
|
-
*/
|
|
3939
|
-
async buildLibraries({ watch = false, strategy, releaseBuild = false, buildType, copylink_to_node_modules, outputLineReplace, libraries, useLastUserConfiguration, } = {}) {
|
|
3940
4508
|
/* */
|
|
3941
4509
|
/* */
|
|
3942
4510
|
/* */
|
|
@@ -3950,6 +4518,9 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
3950
4518
|
/* */
|
|
3951
4519
|
/* */
|
|
3952
4520
|
/* */
|
|
4521
|
+
return (void 0);
|
|
4522
|
+
}
|
|
4523
|
+
async restoreOriginalTsConfig() {
|
|
3953
4524
|
/* */
|
|
3954
4525
|
/* */
|
|
3955
4526
|
/* */
|
|
@@ -3967,6 +4538,27 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
3967
4538
|
/* */
|
|
3968
4539
|
/* */
|
|
3969
4540
|
/* */
|
|
4541
|
+
return (void 0);
|
|
4542
|
+
}
|
|
4543
|
+
}
|
|
4544
|
+
;
|
|
4545
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/classes/base-library-build.ts
|
|
4546
|
+
|
|
4547
|
+
/* */
|
|
4548
|
+
/* */
|
|
4549
|
+
/* */
|
|
4550
|
+
/* */
|
|
4551
|
+
/* */
|
|
4552
|
+
/* */
|
|
4553
|
+
/* */
|
|
4554
|
+
/* */
|
|
4555
|
+
class BaseNpmHelpers extends BaseFeatureForProject {
|
|
4556
|
+
constructor(project) {
|
|
4557
|
+
super(project);
|
|
4558
|
+
this.project = project;
|
|
4559
|
+
this.reloadPackageJsonInMemory();
|
|
4560
|
+
}
|
|
4561
|
+
updateDepsFrom(locations) {
|
|
3970
4562
|
/* */
|
|
3971
4563
|
/* */
|
|
3972
4564
|
/* */
|
|
@@ -3981,6 +4573,38 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
3981
4573
|
/* */
|
|
3982
4574
|
/* */
|
|
3983
4575
|
/* */
|
|
4576
|
+
return (void 0);
|
|
4577
|
+
}
|
|
4578
|
+
/**
|
|
4579
|
+
* if something else change package.json in this project
|
|
4580
|
+
* and you know that you need to reload it..
|
|
4581
|
+
*/
|
|
4582
|
+
reloadPackageJsonInMemory() {
|
|
4583
|
+
this.packageJSON = this.project.readJson(config.file.package_json);
|
|
4584
|
+
}
|
|
4585
|
+
get name() {
|
|
4586
|
+
return this.packageJSON?.name || '';
|
|
4587
|
+
}
|
|
4588
|
+
/**
|
|
4589
|
+
* version from package.json -> property version
|
|
4590
|
+
*/
|
|
4591
|
+
get version() {
|
|
4592
|
+
return this.packageJSON?.version;
|
|
4593
|
+
}
|
|
4594
|
+
/**
|
|
4595
|
+
* bin with cli config from package.json
|
|
4596
|
+
*/
|
|
4597
|
+
get bin() {
|
|
4598
|
+
return (this.packageJSON?.bin || {});
|
|
4599
|
+
}
|
|
4600
|
+
set version(newVersion) {
|
|
4601
|
+
this.packageJSON.version = newVersion;
|
|
4602
|
+
this.project.writeJson(config.file.package_json, this.packageJSON);
|
|
4603
|
+
}
|
|
4604
|
+
/**
|
|
4605
|
+
* @deprecated use updateDep
|
|
4606
|
+
*/
|
|
4607
|
+
updateDependency({ packageName, version, updateTaonJsonFirst, }) {
|
|
3984
4608
|
/* */
|
|
3985
4609
|
/* */
|
|
3986
4610
|
/* */
|
|
@@ -4017,6 +4641,12 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
4017
4641
|
/* */
|
|
4018
4642
|
/* */
|
|
4019
4643
|
/* */
|
|
4644
|
+
return (void 0);
|
|
4645
|
+
}
|
|
4646
|
+
/**
|
|
4647
|
+
* Update dependency in package.json
|
|
4648
|
+
*/
|
|
4649
|
+
async updateDep({ packageName, version, updateTaonJsonFirst, addIfNotExists, }) {
|
|
4020
4650
|
/* */
|
|
4021
4651
|
/* */
|
|
4022
4652
|
/* */
|
|
@@ -4055,8 +4685,6 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
4055
4685
|
/* */
|
|
4056
4686
|
/* */
|
|
4057
4687
|
/* */
|
|
4058
|
-
}
|
|
4059
|
-
async libWatchBuildProcess({ lib, locationsForNodeModules, strategy, buildType, outputLineReplace, }) {
|
|
4060
4688
|
/* */
|
|
4061
4689
|
/* */
|
|
4062
4690
|
/* */
|
|
@@ -4079,11 +4707,64 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
4079
4707
|
/* */
|
|
4080
4708
|
/* */
|
|
4081
4709
|
/* */
|
|
4710
|
+
return (void 0);
|
|
4711
|
+
}
|
|
4712
|
+
get versionWithPatchPlusOne() {
|
|
4713
|
+
const ver = this.version.split('.');
|
|
4714
|
+
if (ver.length > 0) {
|
|
4715
|
+
ver[ver.length - 1] = (parseInt(_.last(ver)) + 1).toString();
|
|
4716
|
+
}
|
|
4717
|
+
return ver.join('.');
|
|
4718
|
+
}
|
|
4719
|
+
get versionWithMinorPlusOneAndPatchZero() {
|
|
4720
|
+
const ver = this.version.split('.');
|
|
4721
|
+
if (ver.length > 1) {
|
|
4722
|
+
ver[1] = (parseInt(ver[1]) + 1).toString();
|
|
4723
|
+
for (let index = 2; index < ver.length; index++) {
|
|
4724
|
+
ver[index] = '0';
|
|
4725
|
+
}
|
|
4726
|
+
}
|
|
4727
|
+
else {
|
|
4728
|
+
Helpers.warn(`[npm-project] something went wrong with bumping minor version`);
|
|
4729
|
+
}
|
|
4730
|
+
return ver.join('.');
|
|
4731
|
+
}
|
|
4732
|
+
get versionWithMajorPlusOneAndMinorZeroAndPatchZero() {
|
|
4733
|
+
const ver = this.version.split('.');
|
|
4734
|
+
if (ver.length > 0) {
|
|
4735
|
+
ver[0] = (parseInt(_.first(ver)) + 1).toString();
|
|
4736
|
+
for (let index = 1; index < ver.length; index++) {
|
|
4737
|
+
ver[index] = '0';
|
|
4738
|
+
}
|
|
4739
|
+
}
|
|
4740
|
+
else {
|
|
4741
|
+
Helpers.warn(`[npm-project] something went wrong with bumping major version`);
|
|
4742
|
+
}
|
|
4743
|
+
return ver.join('.');
|
|
4744
|
+
}
|
|
4745
|
+
/**
|
|
4746
|
+
* Major Version from package.json
|
|
4747
|
+
*/
|
|
4748
|
+
// @ts-ignore
|
|
4749
|
+
get majorVersion() {
|
|
4082
4750
|
/* */
|
|
4083
4751
|
/* */
|
|
4752
|
+
return (void 0);
|
|
4753
|
+
}
|
|
4754
|
+
/**
|
|
4755
|
+
* Minor Version from package.json
|
|
4756
|
+
*/
|
|
4757
|
+
// @ts-ignore
|
|
4758
|
+
get minorVersion() {
|
|
4084
4759
|
/* */
|
|
4085
4760
|
/* */
|
|
4086
4761
|
/* */
|
|
4762
|
+
return (void 0);
|
|
4763
|
+
}
|
|
4764
|
+
/**
|
|
4765
|
+
* @deprecated
|
|
4766
|
+
*/
|
|
4767
|
+
async bumpPatchVersion() {
|
|
4087
4768
|
/* */
|
|
4088
4769
|
/* */
|
|
4089
4770
|
/* */
|
|
@@ -4112,28 +4793,74 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
4112
4793
|
/* */
|
|
4113
4794
|
return (void 0);
|
|
4114
4795
|
}
|
|
4115
|
-
|
|
4116
|
-
/* */
|
|
4117
|
-
/* */
|
|
4118
|
-
/* */
|
|
4119
|
-
/* */
|
|
4120
|
-
/* */
|
|
4121
|
-
/* */
|
|
4122
|
-
/* */
|
|
4123
|
-
/* */
|
|
4124
|
-
/* */
|
|
4125
|
-
/* */
|
|
4126
|
-
/* */
|
|
4127
|
-
/* */
|
|
4796
|
+
get versionPathAsNumber() {
|
|
4128
4797
|
/* */
|
|
4129
4798
|
/* */
|
|
4130
4799
|
/* */
|
|
4131
4800
|
/* */
|
|
4801
|
+
return (void 0);
|
|
4802
|
+
}
|
|
4803
|
+
/**
|
|
4804
|
+
* npm dependencies from package.json
|
|
4805
|
+
*/
|
|
4806
|
+
get dependencies() {
|
|
4807
|
+
return (this.packageJSON ? this.packageJSON.dependencies : {}) || {};
|
|
4808
|
+
}
|
|
4809
|
+
/**
|
|
4810
|
+
* peerDependencies dependencies
|
|
4811
|
+
*/
|
|
4812
|
+
get peerDependencies() {
|
|
4813
|
+
return (this.packageJSON ? this.packageJSON.peerDependencies : {}) || {};
|
|
4814
|
+
}
|
|
4815
|
+
/**
|
|
4816
|
+
* devDependencies dependencies
|
|
4817
|
+
*/
|
|
4818
|
+
get devDependencies() {
|
|
4819
|
+
return (this.packageJSON ? this.packageJSON.devDependencies : {}) || {};
|
|
4820
|
+
}
|
|
4821
|
+
/**
|
|
4822
|
+
* resolutions dependencies
|
|
4823
|
+
*/
|
|
4824
|
+
get resolutions() {
|
|
4825
|
+
return (this.packageJSON ? this.packageJSON['resolutions'] : {}) || {};
|
|
4826
|
+
}
|
|
4827
|
+
/**
|
|
4828
|
+
* @returns object witl all deps from current project package json
|
|
4829
|
+
*/
|
|
4830
|
+
get allDependencies() {
|
|
4831
|
+
return this.allDepsFromPackageJson(this.packageJSON);
|
|
4832
|
+
}
|
|
4833
|
+
/**
|
|
4834
|
+
* @returns object witl all deps from package json
|
|
4835
|
+
*/
|
|
4836
|
+
allDepsFromPackageJson(packageJson) {
|
|
4837
|
+
return _.merge({
|
|
4838
|
+
...(packageJson.devDependencies || {}),
|
|
4839
|
+
...(packageJson.peerDependencies || {}),
|
|
4840
|
+
...(packageJson.dependencies || {}),
|
|
4841
|
+
...(packageJson.resolutions || {}),
|
|
4842
|
+
});
|
|
4843
|
+
}
|
|
4844
|
+
linkNodeModulesTo(proj) {
|
|
4132
4845
|
/* */
|
|
4133
4846
|
/* */
|
|
4134
4847
|
/* */
|
|
4135
4848
|
/* */
|
|
4136
4849
|
/* */
|
|
4850
|
+
return (void 0);
|
|
4851
|
+
}
|
|
4852
|
+
preferYarnOverNpm() {
|
|
4853
|
+
return false;
|
|
4854
|
+
}
|
|
4855
|
+
async makeSureNodeModulesInstalled(options) {
|
|
4856
|
+
if (this.emptyNodeModules) {
|
|
4857
|
+
await this.reinstallNodeModules(options);
|
|
4858
|
+
}
|
|
4859
|
+
}
|
|
4860
|
+
deleteNodeModules() {
|
|
4861
|
+
this.project.remove(config.folder.node_modules);
|
|
4862
|
+
}
|
|
4863
|
+
async reinstallNodeModules(options) {
|
|
4137
4864
|
/* */
|
|
4138
4865
|
/* */
|
|
4139
4866
|
/* */
|
|
@@ -4197,10 +4924,10 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
4197
4924
|
/* */
|
|
4198
4925
|
return (void 0);
|
|
4199
4926
|
}
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4927
|
+
/**
|
|
4928
|
+
* @returns true if node_modules folder is empty
|
|
4929
|
+
*/
|
|
4930
|
+
get emptyNodeModules() {
|
|
4204
4931
|
/* */
|
|
4205
4932
|
/* */
|
|
4206
4933
|
/* */
|
|
@@ -4212,9 +4939,6 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
4212
4939
|
/* */
|
|
4213
4940
|
/* */
|
|
4214
4941
|
/* */
|
|
4215
|
-
return (void 0);
|
|
4216
|
-
}
|
|
4217
|
-
get getLibraryBuildSuccessComamnds() {
|
|
4218
4942
|
/* */
|
|
4219
4943
|
/* */
|
|
4220
4944
|
/* */
|
|
@@ -4227,9 +4951,6 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
4227
4951
|
/* */
|
|
4228
4952
|
/* */
|
|
4229
4953
|
/* */
|
|
4230
|
-
return (void 0);
|
|
4231
|
-
}
|
|
4232
|
-
async selectCopytoProjects() {
|
|
4233
4954
|
/* */
|
|
4234
4955
|
/* */
|
|
4235
4956
|
/* */
|
|
@@ -4254,9 +4975,6 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
4254
4975
|
/* */
|
|
4255
4976
|
/* */
|
|
4256
4977
|
/* */
|
|
4257
|
-
return (void 0);
|
|
4258
|
-
}
|
|
4259
|
-
async changeTsConfigForLibrariesTypes() {
|
|
4260
4978
|
/* */
|
|
4261
4979
|
/* */
|
|
4262
4980
|
/* */
|
|
@@ -4274,9 +4992,7 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
4274
4992
|
/* */
|
|
4275
4993
|
return (void 0);
|
|
4276
4994
|
}
|
|
4277
|
-
async
|
|
4278
|
-
/* */
|
|
4279
|
-
/* */
|
|
4995
|
+
async resetPackageLockJson() {
|
|
4280
4996
|
/* */
|
|
4281
4997
|
/* */
|
|
4282
4998
|
/* */
|
|
@@ -4297,14 +5013,70 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
4297
5013
|
/* */
|
|
4298
5014
|
/* */
|
|
4299
5015
|
/* */
|
|
5016
|
+
return (void 0);
|
|
5017
|
+
}
|
|
5018
|
+
startNpmTask(taskName, additionalArguments) {
|
|
5019
|
+
if (_.isObject(additionalArguments)) {
|
|
5020
|
+
additionalArguments = Object.keys(additionalArguments)
|
|
5021
|
+
.map(k => `--${k} ${additionalArguments[k]}`)
|
|
5022
|
+
.join(' ');
|
|
5023
|
+
}
|
|
5024
|
+
const command = `npm run ${taskName} ${additionalArguments ? ' -- ' + additionalArguments : ''}`;
|
|
5025
|
+
Helpers.info(`Starting npm task: "${command}"`);
|
|
5026
|
+
return this.project.run(command, {
|
|
5027
|
+
output: true,
|
|
5028
|
+
biggerBuffer: true,
|
|
5029
|
+
});
|
|
5030
|
+
}
|
|
5031
|
+
async prepareCommand(options) {
|
|
5032
|
+
let { pkg, silent, useYarn, force, removeYarnOrPackageJsonLock, generateYarnOrPackageJsonLock, } = options || {};
|
|
5033
|
+
force = true; // TODO QUICK_FIX
|
|
5034
|
+
let command = '';
|
|
5035
|
+
const commonOptions = `--ignore-engines`;
|
|
5036
|
+
if (useYarn) {
|
|
5037
|
+
const argsForFasterInstall = `${force ? '--force' : ''} ${commonOptions} `;
|
|
5038
|
+
command =
|
|
5039
|
+
`${removeYarnOrPackageJsonLock
|
|
5040
|
+
? `(rm ${config.file.yarn_lock} || true) ` +
|
|
5041
|
+
`&& touch ${config.file.yarn_lock} && `
|
|
5042
|
+
: ''}` +
|
|
5043
|
+
`yarn ${pkg ? (pkg?.installType === 'remove' ? 'remove' : 'add') : 'install'} ${pkg ? pkg.name : ''} ` +
|
|
5044
|
+
` ${generateYarnOrPackageJsonLock ? '' : '--no-lockfile'} ` +
|
|
5045
|
+
` ${argsForFasterInstall} ` +
|
|
5046
|
+
` ${pkg && pkg.installType && pkg.installType === '--save-dev' ? '-dev' : ''} `;
|
|
5047
|
+
}
|
|
5048
|
+
else {
|
|
5049
|
+
const argsForFasterInstall = `${force ? '--force' : ''} ${commonOptions} --no-audit ` +
|
|
5050
|
+
`${silent ? '--silent --no-progress' : ''} `;
|
|
5051
|
+
command =
|
|
5052
|
+
`${removeYarnOrPackageJsonLock
|
|
5053
|
+
? `(rm ${config.file.package_lock_json} || true) ` +
|
|
5054
|
+
`&& touch ${config.file.package_lock_json} && `
|
|
5055
|
+
: ''}` +
|
|
5056
|
+
`npx --node-options=--max-old-space-size=8000 npm ` +
|
|
5057
|
+
`${pkg?.installType === 'remove' ? 'uninstall' : 'install'} ${pkg ? pkg.name : ''} ` +
|
|
5058
|
+
` ${generateYarnOrPackageJsonLock ? '' : '--no-package-lock'} ` +
|
|
5059
|
+
` ${pkg && pkg.installType ? pkg.installType : ''} ` +
|
|
5060
|
+
` ${argsForFasterInstall} `;
|
|
5061
|
+
}
|
|
5062
|
+
Helpers.info(`Command for npm install:
|
|
5063
|
+
|
|
5064
|
+
${command}
|
|
5065
|
+
|
|
5066
|
+
`);
|
|
5067
|
+
return command;
|
|
5068
|
+
}
|
|
5069
|
+
/**
|
|
5070
|
+
*
|
|
5071
|
+
* @param registry without specified registr is checking npm registry
|
|
5072
|
+
* @returns
|
|
5073
|
+
*/
|
|
5074
|
+
async isLoggedInToRegistry(registry) {
|
|
4300
5075
|
/* */
|
|
4301
5076
|
/* */
|
|
4302
5077
|
/* */
|
|
4303
5078
|
/* */
|
|
4304
5079
|
/* */
|
|
4305
|
-
return (void 0);
|
|
4306
|
-
}
|
|
4307
|
-
async restoreOriginalTsConfig() {
|
|
4308
5080
|
/* */
|
|
4309
5081
|
/* */
|
|
4310
5082
|
/* */
|
|
@@ -4324,25 +5096,16 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
4324
5096
|
/* */
|
|
4325
5097
|
return (void 0);
|
|
4326
5098
|
}
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
/* */
|
|
4334
|
-
/* */
|
|
4335
|
-
/* */
|
|
4336
|
-
/* */
|
|
4337
|
-
/* */
|
|
4338
|
-
/* */
|
|
4339
|
-
class BaseNpmHelpers extends BaseFeatureForProject {
|
|
4340
|
-
constructor(project) {
|
|
4341
|
-
super(project);
|
|
4342
|
-
this.project = project;
|
|
4343
|
-
this.reloadPackageJsonInMemory();
|
|
4344
|
-
}
|
|
4345
|
-
updateDepsFrom(locations) {
|
|
5099
|
+
/**
|
|
5100
|
+
* Prompt the user to log in to a specific npm registry.
|
|
5101
|
+
* @param {string} [registry] - Optional npm registry URL.
|
|
5102
|
+
* @returns {Promise<void>} - A promise that resolves when the login process completes.
|
|
5103
|
+
*/
|
|
5104
|
+
async loginToRegistry(registry) {
|
|
5105
|
+
/* */
|
|
5106
|
+
/* */
|
|
5107
|
+
/* */
|
|
5108
|
+
/* */
|
|
4346
5109
|
/* */
|
|
4347
5110
|
/* */
|
|
4348
5111
|
/* */
|
|
@@ -4359,36 +5122,7 @@ class BaseNpmHelpers extends BaseFeatureForProject {
|
|
|
4359
5122
|
/* */
|
|
4360
5123
|
return (void 0);
|
|
4361
5124
|
}
|
|
4362
|
-
|
|
4363
|
-
* if something else change package.json in this project
|
|
4364
|
-
* and you know that you need to reload it..
|
|
4365
|
-
*/
|
|
4366
|
-
reloadPackageJsonInMemory() {
|
|
4367
|
-
this.packageJSON = this.project.readJson(config.file.package_json);
|
|
4368
|
-
}
|
|
4369
|
-
get name() {
|
|
4370
|
-
return this.packageJSON?.name || '';
|
|
4371
|
-
}
|
|
4372
|
-
/**
|
|
4373
|
-
* version from package.json -> property version
|
|
4374
|
-
*/
|
|
4375
|
-
get version() {
|
|
4376
|
-
return this.packageJSON?.version;
|
|
4377
|
-
}
|
|
4378
|
-
/**
|
|
4379
|
-
* bin with cli config from package.json
|
|
4380
|
-
*/
|
|
4381
|
-
get bin() {
|
|
4382
|
-
return (this.packageJSON?.bin || {});
|
|
4383
|
-
}
|
|
4384
|
-
set version(newVersion) {
|
|
4385
|
-
this.packageJSON.version = newVersion;
|
|
4386
|
-
this.project.writeJson(config.file.package_json, this.packageJSON);
|
|
4387
|
-
}
|
|
4388
|
-
/**
|
|
4389
|
-
* @deprecated use updateDep
|
|
4390
|
-
*/
|
|
4391
|
-
updateDependency({ packageName, version, updateTaonJsonFirst, }) {
|
|
5125
|
+
async makeSureLoggedInToNpmRegistry(registry) {
|
|
4392
5126
|
/* */
|
|
4393
5127
|
/* */
|
|
4394
5128
|
/* */
|
|
@@ -4414,6 +5148,13 @@ class BaseNpmHelpers extends BaseFeatureForProject {
|
|
|
4414
5148
|
/* */
|
|
4415
5149
|
/* */
|
|
4416
5150
|
/* */
|
|
5151
|
+
return (void 0);
|
|
5152
|
+
}
|
|
5153
|
+
/**
|
|
5154
|
+
* @deprecated
|
|
5155
|
+
* use makeSureLoggedInToNpmRegistry()
|
|
5156
|
+
*/
|
|
5157
|
+
checkIfLogginInToNpm() {
|
|
4417
5158
|
/* */
|
|
4418
5159
|
/* */
|
|
4419
5160
|
/* */
|
|
@@ -4423,14 +5164,60 @@ class BaseNpmHelpers extends BaseFeatureForProject {
|
|
|
4423
5164
|
/* */
|
|
4424
5165
|
/* */
|
|
4425
5166
|
/* */
|
|
5167
|
+
return (void 0);
|
|
5168
|
+
}
|
|
5169
|
+
}
|
|
5170
|
+
;
|
|
5171
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/classes/base-npm-helpers.ts
|
|
5172
|
+
|
|
5173
|
+
/* */
|
|
5174
|
+
/* */
|
|
5175
|
+
class BaseLinkedProjects extends BaseFeatureForProject {
|
|
5176
|
+
constructor() {
|
|
5177
|
+
super(...arguments);
|
|
5178
|
+
this.cache = {};
|
|
5179
|
+
}
|
|
5180
|
+
get embeddedProject() {
|
|
5181
|
+
const cacheKey = 'embeddedProject' + _.kebabCase(this.project.location);
|
|
5182
|
+
if (!_.isUndefined(this.cache[cacheKey])) {
|
|
5183
|
+
return this.cache[cacheKey];
|
|
5184
|
+
}
|
|
5185
|
+
const nearsetProj = this.project.ins.nearestTo(crossPlatformPath([this.project.location, '..']));
|
|
5186
|
+
const linkedPorj = nearsetProj?.linkedProjects?.linkedProjects.find(l => {
|
|
5187
|
+
const copareTo = crossPlatformPath([
|
|
5188
|
+
nearsetProj.location,
|
|
5189
|
+
l.relativeClonePath,
|
|
5190
|
+
]);
|
|
5191
|
+
if (this.project.location === copareTo) {
|
|
5192
|
+
return true;
|
|
5193
|
+
}
|
|
5194
|
+
if (l.remoteUrl() === this.project.git.originURL) {
|
|
5195
|
+
return true;
|
|
5196
|
+
}
|
|
5197
|
+
return false;
|
|
5198
|
+
});
|
|
5199
|
+
if (!linkedPorj || !linkedPorj.internalRealtiveProjectPath) {
|
|
5200
|
+
return;
|
|
5201
|
+
}
|
|
5202
|
+
const pathToEmbededProj = crossPlatformPath([
|
|
5203
|
+
nearsetProj.location,
|
|
5204
|
+
linkedPorj.relativeClonePath,
|
|
5205
|
+
linkedPorj.internalRealtiveProjectPath || '',
|
|
5206
|
+
]);
|
|
5207
|
+
const embdedresult = this.project.ins.From(pathToEmbededProj);
|
|
5208
|
+
this.cache[cacheKey] = embdedresult;
|
|
5209
|
+
return this.cache[cacheKey];
|
|
5210
|
+
}
|
|
5211
|
+
get projectsDbLocation() {
|
|
4426
5212
|
/* */
|
|
4427
5213
|
/* */
|
|
4428
5214
|
return (void 0);
|
|
4429
5215
|
}
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
5216
|
+
async saveLocationToDB() {
|
|
5217
|
+
/* */
|
|
5218
|
+
/* */
|
|
5219
|
+
/* */
|
|
5220
|
+
/* */
|
|
4434
5221
|
/* */
|
|
4435
5222
|
/* */
|
|
4436
5223
|
/* */
|
|
@@ -4449,11 +5236,43 @@ class BaseNpmHelpers extends BaseFeatureForProject {
|
|
|
4449
5236
|
/* */
|
|
4450
5237
|
/* */
|
|
4451
5238
|
/* */
|
|
5239
|
+
return (void 0);
|
|
5240
|
+
}
|
|
5241
|
+
async saveAllLinkedProjectsToDB() {
|
|
5242
|
+
const proj = this.project;
|
|
5243
|
+
await proj.linkedProjects.saveLocationToDB();
|
|
5244
|
+
for (const link of proj.linkedProjects.linkedProjects) {
|
|
5245
|
+
const linkedPorj = this.project.ins.From([
|
|
5246
|
+
proj.location,
|
|
5247
|
+
link.relativeClonePath,
|
|
5248
|
+
link.internalRealtiveProjectPath || '',
|
|
5249
|
+
]);
|
|
5250
|
+
if (linkedPorj) {
|
|
5251
|
+
await linkedPorj.linkedProjects.saveLocationToDB();
|
|
5252
|
+
}
|
|
5253
|
+
else {
|
|
5254
|
+
Helpers.warn(`Folder ${link.relativeClonePath} is missing projects...`);
|
|
5255
|
+
}
|
|
5256
|
+
}
|
|
5257
|
+
}
|
|
5258
|
+
addLinkedProject(linkedProj) {
|
|
5259
|
+
const linkedProject = _.isString(linkedProj)
|
|
5260
|
+
? LinkedProject.fromName(linkedProj)
|
|
5261
|
+
: linkedProj;
|
|
5262
|
+
/* */
|
|
4452
5263
|
/* */
|
|
4453
5264
|
/* */
|
|
5265
|
+
/* */
|
|
5266
|
+
return (void 0);
|
|
5267
|
+
}
|
|
5268
|
+
addLinkedProjects(linkedProjs) {
|
|
4454
5269
|
/* */
|
|
4455
5270
|
/* */
|
|
4456
5271
|
/* */
|
|
5272
|
+
/* */
|
|
5273
|
+
return (void 0);
|
|
5274
|
+
}
|
|
5275
|
+
setLinkedProjectsConfig(linkedPorjectsConfig) {
|
|
4457
5276
|
/* */
|
|
4458
5277
|
/* */
|
|
4459
5278
|
/* */
|
|
@@ -4493,68 +5312,26 @@ class BaseNpmHelpers extends BaseFeatureForProject {
|
|
|
4493
5312
|
/* */
|
|
4494
5313
|
return (void 0);
|
|
4495
5314
|
}
|
|
4496
|
-
get
|
|
4497
|
-
|
|
4498
|
-
if (ver.length > 0) {
|
|
4499
|
-
ver[ver.length - 1] = (parseInt(_.last(ver)) + 1).toString();
|
|
4500
|
-
}
|
|
4501
|
-
return ver.join('.');
|
|
4502
|
-
}
|
|
4503
|
-
get versionWithMinorPlusOneAndPatchZero() {
|
|
4504
|
-
const ver = this.version.split('.');
|
|
4505
|
-
if (ver.length > 1) {
|
|
4506
|
-
ver[1] = (parseInt(ver[1]) + 1).toString();
|
|
4507
|
-
for (let index = 2; index < ver.length; index++) {
|
|
4508
|
-
ver[index] = '0';
|
|
4509
|
-
}
|
|
4510
|
-
}
|
|
4511
|
-
else {
|
|
4512
|
-
Helpers.warn(`[npm-project] something went wrong with bumping minor version`);
|
|
4513
|
-
}
|
|
4514
|
-
return ver.join('.');
|
|
5315
|
+
get linkedProjectsConfigPath() {
|
|
5316
|
+
return this.project.pathFor(config.file.linked_projects_json);
|
|
4515
5317
|
}
|
|
4516
|
-
get
|
|
4517
|
-
|
|
4518
|
-
if (ver.length > 0) {
|
|
4519
|
-
ver[0] = (parseInt(_.first(ver)) + 1).toString();
|
|
4520
|
-
for (let index = 1; index < ver.length; index++) {
|
|
4521
|
-
ver[index] = '0';
|
|
4522
|
-
}
|
|
4523
|
-
}
|
|
4524
|
-
else {
|
|
4525
|
-
Helpers.warn(`[npm-project] something went wrong with bumping major version`);
|
|
4526
|
-
}
|
|
4527
|
-
return ver.join('.');
|
|
5318
|
+
get linkedProjectsConfigTempPath() {
|
|
5319
|
+
return this.project.pathFor([`tmp-${config.file.linked_projects_json}`]);
|
|
4528
5320
|
}
|
|
4529
|
-
|
|
4530
|
-
* Major Version from package.json
|
|
4531
|
-
*/
|
|
4532
|
-
// @ts-ignore
|
|
4533
|
-
get majorVersion() {
|
|
4534
|
-
/* */
|
|
5321
|
+
recreateLinkedProjectsConfig() {
|
|
4535
5322
|
/* */
|
|
4536
|
-
return (void 0);
|
|
4537
|
-
}
|
|
4538
|
-
/**
|
|
4539
|
-
* Minor Version from package.json
|
|
4540
|
-
*/
|
|
4541
|
-
// @ts-ignore
|
|
4542
|
-
get minorVersion() {
|
|
4543
5323
|
/* */
|
|
4544
5324
|
/* */
|
|
4545
5325
|
/* */
|
|
4546
|
-
return (void 0);
|
|
4547
|
-
}
|
|
4548
|
-
/**
|
|
4549
|
-
* @deprecated
|
|
4550
|
-
*/
|
|
4551
|
-
async bumpPatchVersion() {
|
|
4552
5326
|
/* */
|
|
4553
5327
|
/* */
|
|
4554
5328
|
/* */
|
|
4555
5329
|
/* */
|
|
4556
5330
|
/* */
|
|
4557
5331
|
/* */
|
|
5332
|
+
return (void 0);
|
|
5333
|
+
}
|
|
5334
|
+
getLinkedProjectsConfig() {
|
|
4558
5335
|
/* */
|
|
4559
5336
|
/* */
|
|
4560
5337
|
/* */
|
|
@@ -4575,76 +5352,15 @@ class BaseNpmHelpers extends BaseFeatureForProject {
|
|
|
4575
5352
|
/* */
|
|
4576
5353
|
/* */
|
|
4577
5354
|
/* */
|
|
4578
|
-
return (void 0);
|
|
4579
|
-
}
|
|
4580
|
-
get versionPathAsNumber() {
|
|
4581
5355
|
/* */
|
|
4582
5356
|
/* */
|
|
4583
5357
|
/* */
|
|
4584
5358
|
/* */
|
|
4585
|
-
return (void 0);
|
|
4586
|
-
}
|
|
4587
|
-
/**
|
|
4588
|
-
* npm dependencies from package.json
|
|
4589
|
-
*/
|
|
4590
|
-
get dependencies() {
|
|
4591
|
-
return (this.packageJSON ? this.packageJSON.dependencies : {}) || {};
|
|
4592
|
-
}
|
|
4593
|
-
/**
|
|
4594
|
-
* peerDependencies dependencies
|
|
4595
|
-
*/
|
|
4596
|
-
get peerDependencies() {
|
|
4597
|
-
return (this.packageJSON ? this.packageJSON.peerDependencies : {}) || {};
|
|
4598
|
-
}
|
|
4599
|
-
/**
|
|
4600
|
-
* devDependencies dependencies
|
|
4601
|
-
*/
|
|
4602
|
-
get devDependencies() {
|
|
4603
|
-
return (this.packageJSON ? this.packageJSON.devDependencies : {}) || {};
|
|
4604
|
-
}
|
|
4605
|
-
/**
|
|
4606
|
-
* resolutions dependencies
|
|
4607
|
-
*/
|
|
4608
|
-
get resolutions() {
|
|
4609
|
-
return (this.packageJSON ? this.packageJSON['resolutions'] : {}) || {};
|
|
4610
|
-
}
|
|
4611
|
-
/**
|
|
4612
|
-
* @returns object witl all deps from current project package json
|
|
4613
|
-
*/
|
|
4614
|
-
get allDependencies() {
|
|
4615
|
-
return this.allDepsFromPackageJson(this.packageJSON);
|
|
4616
|
-
}
|
|
4617
|
-
/**
|
|
4618
|
-
* @returns object witl all deps from package json
|
|
4619
|
-
*/
|
|
4620
|
-
allDepsFromPackageJson(packageJson) {
|
|
4621
|
-
return _.merge({
|
|
4622
|
-
...(packageJson.devDependencies || {}),
|
|
4623
|
-
...(packageJson.peerDependencies || {}),
|
|
4624
|
-
...(packageJson.dependencies || {}),
|
|
4625
|
-
...(packageJson.resolutions || {}),
|
|
4626
|
-
});
|
|
4627
|
-
}
|
|
4628
|
-
linkNodeModulesTo(proj) {
|
|
4629
5359
|
/* */
|
|
4630
5360
|
/* */
|
|
4631
5361
|
/* */
|
|
4632
5362
|
/* */
|
|
4633
5363
|
/* */
|
|
4634
|
-
return (void 0);
|
|
4635
|
-
}
|
|
4636
|
-
preferYarnOverNpm() {
|
|
4637
|
-
return false;
|
|
4638
|
-
}
|
|
4639
|
-
async makeSureNodeModulesInstalled(options) {
|
|
4640
|
-
if (this.emptyNodeModules) {
|
|
4641
|
-
await this.reinstallNodeModules(options);
|
|
4642
|
-
}
|
|
4643
|
-
}
|
|
4644
|
-
deleteNodeModules() {
|
|
4645
|
-
this.project.remove(config.folder.node_modules);
|
|
4646
|
-
}
|
|
4647
|
-
async reinstallNodeModules(options) {
|
|
4648
5364
|
/* */
|
|
4649
5365
|
/* */
|
|
4650
5366
|
/* */
|
|
@@ -4663,6 +5379,22 @@ class BaseNpmHelpers extends BaseFeatureForProject {
|
|
|
4663
5379
|
/* */
|
|
4664
5380
|
/* */
|
|
4665
5381
|
/* */
|
|
5382
|
+
return (void 0);
|
|
5383
|
+
}
|
|
5384
|
+
get linkedProjects() {
|
|
5385
|
+
return this.getLinkedProjectsConfig().projects || [];
|
|
5386
|
+
}
|
|
5387
|
+
get detectedLinkedProjects() {
|
|
5388
|
+
const detectedLinkedProjects = LinkedProject.detect(this.project.location, true);
|
|
5389
|
+
return detectedLinkedProjects;
|
|
5390
|
+
}
|
|
5391
|
+
get linkedProjectsPrefix() {
|
|
5392
|
+
return this.getLinkedProjectsConfig().prefix;
|
|
5393
|
+
}
|
|
5394
|
+
resetLinkedProjectsOnlyToCoreBranches() {
|
|
5395
|
+
return false;
|
|
5396
|
+
}
|
|
5397
|
+
async cloneUnexistedLinkedProjects(actionType, setOrigin, cloneChildren = false) {
|
|
4666
5398
|
/* */
|
|
4667
5399
|
/* */
|
|
4668
5400
|
/* */
|
|
@@ -4706,12 +5438,6 @@ class BaseNpmHelpers extends BaseFeatureForProject {
|
|
|
4706
5438
|
/* */
|
|
4707
5439
|
/* */
|
|
4708
5440
|
/* */
|
|
4709
|
-
return (void 0);
|
|
4710
|
-
}
|
|
4711
|
-
/**
|
|
4712
|
-
* @returns true if node_modules folder is empty
|
|
4713
|
-
*/
|
|
4714
|
-
get emptyNodeModules() {
|
|
4715
5441
|
/* */
|
|
4716
5442
|
/* */
|
|
4717
5443
|
/* */
|
|
@@ -4750,10 +5476,27 @@ class BaseNpmHelpers extends BaseFeatureForProject {
|
|
|
4750
5476
|
/* */
|
|
4751
5477
|
/* */
|
|
4752
5478
|
/* */
|
|
5479
|
+
return (void 0);
|
|
5480
|
+
}
|
|
5481
|
+
}
|
|
5482
|
+
;
|
|
5483
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/classes/base-linked-projects.ts
|
|
5484
|
+
|
|
5485
|
+
/* */
|
|
5486
|
+
/* */
|
|
5487
|
+
/* */
|
|
5488
|
+
class BaseGit extends BaseFeatureForProject {
|
|
5489
|
+
unstageAllFiles() {
|
|
4753
5490
|
/* */
|
|
4754
5491
|
/* */
|
|
5492
|
+
return (void 0);
|
|
5493
|
+
}
|
|
5494
|
+
revertFileChanges(fileReletivePath) {
|
|
4755
5495
|
/* */
|
|
4756
5496
|
/* */
|
|
5497
|
+
return (void 0);
|
|
5498
|
+
}
|
|
5499
|
+
async clone(url, destinationFolderName = '', branchName) {
|
|
4757
5500
|
/* */
|
|
4758
5501
|
/* */
|
|
4759
5502
|
/* */
|
|
@@ -4772,107 +5515,99 @@ class BaseNpmHelpers extends BaseFeatureForProject {
|
|
|
4772
5515
|
/* */
|
|
4773
5516
|
/* */
|
|
4774
5517
|
/* */
|
|
5518
|
+
return (void 0);
|
|
5519
|
+
}
|
|
5520
|
+
restoreLastVersion(relativeFilePath) {
|
|
4775
5521
|
/* */
|
|
4776
5522
|
/* */
|
|
4777
5523
|
return (void 0);
|
|
4778
5524
|
}
|
|
4779
|
-
|
|
5525
|
+
stageAllFiles() {
|
|
4780
5526
|
/* */
|
|
4781
5527
|
/* */
|
|
5528
|
+
return (void 0);
|
|
5529
|
+
}
|
|
5530
|
+
stash(options) {
|
|
4782
5531
|
/* */
|
|
4783
5532
|
/* */
|
|
5533
|
+
return (void 0);
|
|
5534
|
+
}
|
|
5535
|
+
stashApply() {
|
|
4784
5536
|
/* */
|
|
4785
5537
|
/* */
|
|
5538
|
+
return (void 0);
|
|
5539
|
+
}
|
|
5540
|
+
fetch(all = false) {
|
|
4786
5541
|
/* */
|
|
4787
5542
|
/* */
|
|
5543
|
+
return (void 0);
|
|
5544
|
+
}
|
|
5545
|
+
resetFiles(...relativePathes) {
|
|
4788
5546
|
/* */
|
|
4789
5547
|
/* */
|
|
5548
|
+
return (void 0);
|
|
5549
|
+
}
|
|
5550
|
+
get isInsideGitRepo() {
|
|
4790
5551
|
/* */
|
|
4791
5552
|
/* */
|
|
5553
|
+
return (void 0);
|
|
5554
|
+
}
|
|
5555
|
+
get isWithoutGitRepository() {
|
|
4792
5556
|
/* */
|
|
4793
5557
|
/* */
|
|
5558
|
+
return (void 0);
|
|
5559
|
+
}
|
|
5560
|
+
get isGitRoot() {
|
|
4794
5561
|
/* */
|
|
4795
5562
|
/* */
|
|
5563
|
+
return (void 0);
|
|
5564
|
+
}
|
|
5565
|
+
get originURL() {
|
|
4796
5566
|
/* */
|
|
4797
5567
|
/* */
|
|
5568
|
+
return (void 0);
|
|
5569
|
+
}
|
|
5570
|
+
commit(commitMessage) {
|
|
4798
5571
|
/* */
|
|
4799
5572
|
/* */
|
|
4800
5573
|
return (void 0);
|
|
4801
5574
|
}
|
|
4802
|
-
startNpmTask(taskName, additionalArguments) {
|
|
4803
|
-
if (_.isObject(additionalArguments)) {
|
|
4804
|
-
additionalArguments = Object.keys(additionalArguments)
|
|
4805
|
-
.map(k => `--${k} ${additionalArguments[k]}`)
|
|
4806
|
-
.join(' ');
|
|
4807
|
-
}
|
|
4808
|
-
const command = `npm run ${taskName} ${additionalArguments ? ' -- ' + additionalArguments : ''}`;
|
|
4809
|
-
Helpers.info(`Starting npm task: "${command}"`);
|
|
4810
|
-
return this.project.run(command, {
|
|
4811
|
-
output: true,
|
|
4812
|
-
biggerBuffer: true,
|
|
4813
|
-
});
|
|
4814
|
-
}
|
|
4815
|
-
async prepareCommand(options) {
|
|
4816
|
-
let { pkg, silent, useYarn, force, removeYarnOrPackageJsonLock, generateYarnOrPackageJsonLock, } = options || {};
|
|
4817
|
-
force = true; // TODO QUICK_FIX
|
|
4818
|
-
let command = '';
|
|
4819
|
-
const commonOptions = `--ignore-engines`;
|
|
4820
|
-
if (useYarn) {
|
|
4821
|
-
const argsForFasterInstall = `${force ? '--force' : ''} ${commonOptions} `;
|
|
4822
|
-
command =
|
|
4823
|
-
`${removeYarnOrPackageJsonLock
|
|
4824
|
-
? `(rm ${config.file.yarn_lock} || true) ` +
|
|
4825
|
-
`&& touch ${config.file.yarn_lock} && `
|
|
4826
|
-
: ''}` +
|
|
4827
|
-
`yarn ${pkg ? (pkg?.installType === 'remove' ? 'remove' : 'add') : 'install'} ${pkg ? pkg.name : ''} ` +
|
|
4828
|
-
` ${generateYarnOrPackageJsonLock ? '' : '--no-lockfile'} ` +
|
|
4829
|
-
` ${argsForFasterInstall} ` +
|
|
4830
|
-
` ${pkg && pkg.installType && pkg.installType === '--save-dev' ? '-dev' : ''} `;
|
|
4831
|
-
}
|
|
4832
|
-
else {
|
|
4833
|
-
const argsForFasterInstall = `${force ? '--force' : ''} ${commonOptions} --no-audit ` +
|
|
4834
|
-
`${silent ? '--silent --no-progress' : ''} `;
|
|
4835
|
-
command =
|
|
4836
|
-
`${removeYarnOrPackageJsonLock
|
|
4837
|
-
? `(rm ${config.file.package_lock_json} || true) ` +
|
|
4838
|
-
`&& touch ${config.file.package_lock_json} && `
|
|
4839
|
-
: ''}` +
|
|
4840
|
-
`npx --node-options=--max-old-space-size=8000 npm ` +
|
|
4841
|
-
`${pkg?.installType === 'remove' ? 'uninstall' : 'install'} ${pkg ? pkg.name : ''} ` +
|
|
4842
|
-
` ${generateYarnOrPackageJsonLock ? '' : '--no-package-lock'} ` +
|
|
4843
|
-
` ${pkg && pkg.installType ? pkg.installType : ''} ` +
|
|
4844
|
-
` ${argsForFasterInstall} `;
|
|
4845
|
-
}
|
|
4846
|
-
Helpers.info(`Command for npm install:
|
|
4847
|
-
|
|
4848
|
-
${command}
|
|
4849
|
-
|
|
4850
|
-
`);
|
|
4851
|
-
return command;
|
|
4852
|
-
}
|
|
4853
5575
|
/**
|
|
4854
|
-
*
|
|
4855
|
-
* @param registry without specified registr is checking npm registry
|
|
4856
|
-
* @returns
|
|
5576
|
+
* alias to stage all and commit
|
|
4857
5577
|
*/
|
|
4858
|
-
|
|
4859
|
-
/* */
|
|
4860
|
-
/* */
|
|
4861
|
-
/* */
|
|
5578
|
+
addAndCommit(commitMessage) {
|
|
4862
5579
|
/* */
|
|
4863
5580
|
/* */
|
|
5581
|
+
return (void 0);
|
|
5582
|
+
}
|
|
5583
|
+
stageAllAndCommit(commitMessage) {
|
|
4864
5584
|
/* */
|
|
4865
5585
|
/* */
|
|
5586
|
+
return (void 0);
|
|
5587
|
+
}
|
|
5588
|
+
async pushCurrentBranch(options) {
|
|
4866
5589
|
/* */
|
|
4867
5590
|
/* */
|
|
5591
|
+
return (void 0);
|
|
5592
|
+
}
|
|
5593
|
+
get allOrigins() {
|
|
4868
5594
|
/* */
|
|
4869
5595
|
/* */
|
|
5596
|
+
return (void 0);
|
|
5597
|
+
}
|
|
5598
|
+
get uncommitedFiles() {
|
|
4870
5599
|
/* */
|
|
4871
5600
|
/* */
|
|
5601
|
+
return (void 0);
|
|
5602
|
+
}
|
|
5603
|
+
get thereAreSomeUncommitedChange() {
|
|
4872
5604
|
/* */
|
|
4873
5605
|
/* */
|
|
4874
5606
|
/* */
|
|
4875
5607
|
/* */
|
|
5608
|
+
return (void 0);
|
|
5609
|
+
}
|
|
5610
|
+
thereAreSomeUncommitedChangeExcept(filesList = []) {
|
|
4876
5611
|
/* */
|
|
4877
5612
|
/* */
|
|
4878
5613
|
/* */
|
|
@@ -4880,138 +5615,158 @@ class BaseNpmHelpers extends BaseFeatureForProject {
|
|
|
4880
5615
|
/* */
|
|
4881
5616
|
return (void 0);
|
|
4882
5617
|
}
|
|
4883
|
-
|
|
4884
|
-
* Prompt the user to log in to a specific npm registry.
|
|
4885
|
-
* @param {string} [registry] - Optional npm registry URL.
|
|
4886
|
-
* @returns {Promise<void>} - A promise that resolves when the login process completes.
|
|
4887
|
-
*/
|
|
4888
|
-
async loginToRegistry(registry) {
|
|
5618
|
+
meltActionCommits() {
|
|
4889
5619
|
/* */
|
|
4890
5620
|
/* */
|
|
5621
|
+
}
|
|
5622
|
+
async pullCurrentBranch(options) {
|
|
4891
5623
|
/* */
|
|
4892
5624
|
/* */
|
|
5625
|
+
return (void 0);
|
|
5626
|
+
}
|
|
5627
|
+
get currentBranchName() {
|
|
4893
5628
|
/* */
|
|
4894
5629
|
/* */
|
|
5630
|
+
return (void 0);
|
|
5631
|
+
}
|
|
5632
|
+
get listOfCurrentGitChanges() {
|
|
4895
5633
|
/* */
|
|
4896
5634
|
/* */
|
|
5635
|
+
return (void 0);
|
|
5636
|
+
}
|
|
5637
|
+
getBranchesNamesBy(pattern) {
|
|
4897
5638
|
/* */
|
|
4898
5639
|
/* */
|
|
5640
|
+
return (void 0);
|
|
5641
|
+
}
|
|
5642
|
+
resetSoftHEAD(HEAD = 1) {
|
|
4899
5643
|
/* */
|
|
4900
5644
|
/* */
|
|
5645
|
+
return (void 0);
|
|
5646
|
+
}
|
|
5647
|
+
resetHard(options) {
|
|
4901
5648
|
/* */
|
|
4902
5649
|
/* */
|
|
5650
|
+
return (void 0);
|
|
5651
|
+
}
|
|
5652
|
+
countComits() {
|
|
4903
5653
|
/* */
|
|
4904
5654
|
/* */
|
|
5655
|
+
return (void 0);
|
|
5656
|
+
}
|
|
5657
|
+
hasAnyCommits() {
|
|
4905
5658
|
/* */
|
|
4906
5659
|
/* */
|
|
4907
5660
|
return (void 0);
|
|
4908
5661
|
}
|
|
4909
|
-
|
|
4910
|
-
/* */
|
|
5662
|
+
get isInMergeProcess() {
|
|
4911
5663
|
/* */
|
|
4912
5664
|
/* */
|
|
5665
|
+
return (void 0);
|
|
5666
|
+
}
|
|
5667
|
+
lastCommitDate() {
|
|
4913
5668
|
/* */
|
|
4914
5669
|
/* */
|
|
5670
|
+
return (void 0);
|
|
5671
|
+
}
|
|
5672
|
+
lastCommitHash() {
|
|
4915
5673
|
/* */
|
|
4916
5674
|
/* */
|
|
5675
|
+
return (void 0);
|
|
5676
|
+
}
|
|
5677
|
+
lastCommitMessage() {
|
|
4917
5678
|
/* */
|
|
4918
5679
|
/* */
|
|
5680
|
+
return (void 0);
|
|
5681
|
+
}
|
|
5682
|
+
async penultimateCommitMessage() {
|
|
4919
5683
|
/* */
|
|
4920
5684
|
/* */
|
|
5685
|
+
return (void 0);
|
|
5686
|
+
}
|
|
5687
|
+
async getCommitMessageByIndex(index) {
|
|
4921
5688
|
/* */
|
|
4922
5689
|
/* */
|
|
4923
5690
|
/* */
|
|
4924
5691
|
/* */
|
|
4925
5692
|
/* */
|
|
5693
|
+
return (void 0);
|
|
5694
|
+
}
|
|
5695
|
+
async getCommitMessageByHash(hash) {
|
|
4926
5696
|
/* */
|
|
4927
5697
|
/* */
|
|
4928
5698
|
/* */
|
|
4929
5699
|
/* */
|
|
4930
5700
|
/* */
|
|
5701
|
+
return (void 0);
|
|
5702
|
+
}
|
|
5703
|
+
async getCommitHashByIndex(index) {
|
|
4931
5704
|
/* */
|
|
4932
5705
|
/* */
|
|
5706
|
+
return (void 0);
|
|
5707
|
+
}
|
|
5708
|
+
penultimateCommitHash() {
|
|
4933
5709
|
/* */
|
|
4934
5710
|
/* */
|
|
4935
5711
|
return (void 0);
|
|
4936
5712
|
}
|
|
4937
|
-
|
|
4938
|
-
* @deprecated
|
|
4939
|
-
* use makeSureLoggedInToNpmRegistry()
|
|
4940
|
-
*/
|
|
4941
|
-
checkIfLogginInToNpm() {
|
|
5713
|
+
checkTagExists(tag) {
|
|
4942
5714
|
/* */
|
|
4943
5715
|
/* */
|
|
5716
|
+
return (void 0);
|
|
5717
|
+
}
|
|
5718
|
+
checkout(branchName, options) {
|
|
4944
5719
|
/* */
|
|
4945
5720
|
/* */
|
|
5721
|
+
return (void 0);
|
|
5722
|
+
}
|
|
5723
|
+
checkoutFromTo(checkoutFromBranch, branch, origin = 'origin') {
|
|
4946
5724
|
/* */
|
|
4947
5725
|
/* */
|
|
4948
5726
|
/* */
|
|
4949
5727
|
/* */
|
|
4950
5728
|
/* */
|
|
4951
|
-
return (void 0);
|
|
4952
|
-
}
|
|
4953
|
-
}
|
|
4954
|
-
;
|
|
4955
|
-
({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-npm-helpers.ts
|
|
4956
|
-
|
|
4957
|
-
/* */
|
|
4958
|
-
/* */
|
|
4959
|
-
/* */
|
|
4960
|
-
class BaseLinkedProjects extends BaseFeatureForProject {
|
|
4961
|
-
constructor() {
|
|
4962
|
-
super(...arguments);
|
|
4963
|
-
this.cache = {};
|
|
4964
|
-
}
|
|
4965
|
-
get embeddedProject() {
|
|
4966
|
-
const cacheKey = 'embeddedProject' + _.kebabCase(this.project.location);
|
|
4967
|
-
if (!_.isUndefined(this.cache[cacheKey])) {
|
|
4968
|
-
return this.cache[cacheKey];
|
|
4969
|
-
}
|
|
4970
|
-
const nearsetProj = this.project.ins.nearestTo(crossPlatformPath([this.project.location, '..']));
|
|
4971
|
-
const linkedPorj = nearsetProj?.linkedProjects?.linkedProjects.find(l => {
|
|
4972
|
-
const copareTo = crossPlatformPath([
|
|
4973
|
-
nearsetProj.location,
|
|
4974
|
-
l.relativeClonePath,
|
|
4975
|
-
]);
|
|
4976
|
-
if (this.project.location === copareTo) {
|
|
4977
|
-
return true;
|
|
4978
|
-
}
|
|
4979
|
-
if (l.remoteUrl() === this.project.git.originURL) {
|
|
4980
|
-
return true;
|
|
4981
|
-
}
|
|
4982
|
-
return false;
|
|
4983
|
-
});
|
|
4984
|
-
if (!linkedPorj || !linkedPorj.internalRealtiveProjectPath) {
|
|
4985
|
-
return;
|
|
4986
|
-
}
|
|
4987
|
-
const pathToEmbededProj = crossPlatformPath([
|
|
4988
|
-
nearsetProj.location,
|
|
4989
|
-
linkedPorj.relativeClonePath,
|
|
4990
|
-
linkedPorj.internalRealtiveProjectPath || '',
|
|
4991
|
-
]);
|
|
4992
|
-
const embdedresult = this.project.ins.From(pathToEmbededProj);
|
|
4993
|
-
this.cache[cacheKey] = embdedresult;
|
|
4994
|
-
return this.cache[cacheKey];
|
|
4995
|
-
}
|
|
4996
|
-
get projectsDbLocation() {
|
|
4997
5729
|
/* */
|
|
4998
5730
|
/* */
|
|
4999
5731
|
return (void 0);
|
|
5000
5732
|
}
|
|
5001
|
-
|
|
5733
|
+
/**
|
|
5734
|
+
*
|
|
5735
|
+
* @param majorVersion example: v1, v2 etc.
|
|
5736
|
+
* @returns tag name
|
|
5737
|
+
*/
|
|
5738
|
+
lastTagNameForMajorVersion(majorVersion) {
|
|
5002
5739
|
/* */
|
|
5003
5740
|
/* */
|
|
5004
5741
|
/* */
|
|
5005
5742
|
/* */
|
|
5006
5743
|
/* */
|
|
5744
|
+
return (void 0);
|
|
5745
|
+
}
|
|
5746
|
+
lastTagHash() {
|
|
5007
5747
|
/* */
|
|
5008
5748
|
/* */
|
|
5749
|
+
return (void 0);
|
|
5750
|
+
}
|
|
5751
|
+
get remoteOriginUrl() {
|
|
5009
5752
|
/* */
|
|
5010
5753
|
/* */
|
|
5754
|
+
return (void 0);
|
|
5755
|
+
}
|
|
5756
|
+
get lastTagVersionName() {
|
|
5011
5757
|
/* */
|
|
5012
5758
|
/* */
|
|
5759
|
+
return (void 0);
|
|
5760
|
+
}
|
|
5761
|
+
get stagedFiles() {
|
|
5013
5762
|
/* */
|
|
5014
5763
|
/* */
|
|
5764
|
+
return (void 0);
|
|
5765
|
+
}
|
|
5766
|
+
/**
|
|
5767
|
+
* TODO does this make any sense
|
|
5768
|
+
*/
|
|
5769
|
+
renameOrigin(newNameOrUlr) {
|
|
5015
5770
|
/* */
|
|
5016
5771
|
/* */
|
|
5017
5772
|
/* */
|
|
@@ -5021,43 +5776,14 @@ class BaseLinkedProjects extends BaseFeatureForProject {
|
|
|
5021
5776
|
/* */
|
|
5022
5777
|
/* */
|
|
5023
5778
|
/* */
|
|
5024
|
-
return (void 0);
|
|
5025
|
-
}
|
|
5026
|
-
async saveAllLinkedProjectsToDB() {
|
|
5027
|
-
const proj = this.project;
|
|
5028
|
-
await proj.linkedProjects.saveLocationToDB();
|
|
5029
|
-
for (const link of proj.linkedProjects.linkedProjects) {
|
|
5030
|
-
const linkedPorj = this.project.ins.From([
|
|
5031
|
-
proj.location,
|
|
5032
|
-
link.relativeClonePath,
|
|
5033
|
-
link.internalRealtiveProjectPath || '',
|
|
5034
|
-
]);
|
|
5035
|
-
if (linkedPorj) {
|
|
5036
|
-
await linkedPorj.linkedProjects.saveLocationToDB();
|
|
5037
|
-
}
|
|
5038
|
-
else {
|
|
5039
|
-
Helpers.warn(`Folder ${link.relativeClonePath} is missing projects...`);
|
|
5040
|
-
}
|
|
5041
|
-
}
|
|
5042
|
-
}
|
|
5043
|
-
addLinkedProject(linkedProj) {
|
|
5044
|
-
const linkedProject = _.isString(linkedProj)
|
|
5045
|
-
? LinkedProject.fromName(linkedProj)
|
|
5046
|
-
: linkedProj;
|
|
5047
5779
|
/* */
|
|
5048
5780
|
/* */
|
|
5049
5781
|
/* */
|
|
5050
5782
|
/* */
|
|
5051
|
-
return (void 0);
|
|
5052
|
-
}
|
|
5053
|
-
addLinkedProjects(linkedProjs) {
|
|
5054
5783
|
/* */
|
|
5055
5784
|
/* */
|
|
5056
5785
|
/* */
|
|
5057
5786
|
/* */
|
|
5058
|
-
return (void 0);
|
|
5059
|
-
}
|
|
5060
|
-
setLinkedProjectsConfig(linkedPorjectsConfig) {
|
|
5061
5787
|
/* */
|
|
5062
5788
|
/* */
|
|
5063
5789
|
/* */
|
|
@@ -5066,6 +5792,34 @@ class BaseLinkedProjects extends BaseFeatureForProject {
|
|
|
5066
5792
|
/* */
|
|
5067
5793
|
/* */
|
|
5068
5794
|
/* */
|
|
5795
|
+
return (void 0);
|
|
5796
|
+
}
|
|
5797
|
+
/**
|
|
5798
|
+
* By default no translation of commit
|
|
5799
|
+
*/
|
|
5800
|
+
transalteGitCommitFromArgs() {
|
|
5801
|
+
return { from: void 0, to: void 0 };
|
|
5802
|
+
}
|
|
5803
|
+
/**
|
|
5804
|
+
* By defult true.. when commit branches will not function.
|
|
5805
|
+
* (false is better for simple projects)
|
|
5806
|
+
*/
|
|
5807
|
+
useGitBranchesWhenCommitingAndPushing() {
|
|
5808
|
+
return true;
|
|
5809
|
+
}
|
|
5810
|
+
/**
|
|
5811
|
+
* usefull when pushing in project with childrens as git repos
|
|
5812
|
+
*/
|
|
5813
|
+
automaticallyAddAllChangesWhenPushingToGit() {
|
|
5814
|
+
return false;
|
|
5815
|
+
}
|
|
5816
|
+
/**
|
|
5817
|
+
* usefull when pushing in project with childrens as git repos
|
|
5818
|
+
*/
|
|
5819
|
+
useGitBranchesAsMetadataForCommits() {
|
|
5820
|
+
return true;
|
|
5821
|
+
}
|
|
5822
|
+
async cloneTo(cwd, newProjectName) {
|
|
5069
5823
|
/* */
|
|
5070
5824
|
/* */
|
|
5071
5825
|
/* */
|
|
@@ -5097,14 +5851,34 @@ class BaseLinkedProjects extends BaseFeatureForProject {
|
|
|
5097
5851
|
/* */
|
|
5098
5852
|
return (void 0);
|
|
5099
5853
|
}
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5854
|
+
/**
|
|
5855
|
+
* This is only for push/pull process
|
|
5856
|
+
*
|
|
5857
|
+
* There are 2 types of projects:
|
|
5858
|
+
* - with linked-projects.json
|
|
5859
|
+
* - with children from external folder
|
|
5860
|
+
*
|
|
5861
|
+
* projects that are children of this project (with its own git repo)
|
|
5862
|
+
*/
|
|
5863
|
+
get gitChildren() {
|
|
5864
|
+
let childrenRepos = [];
|
|
5865
|
+
if (this.project.linkedProjects.linkedProjects.length > 0) {
|
|
5866
|
+
childrenRepos = this.project.linkedProjects.linkedProjects
|
|
5867
|
+
.map(c => {
|
|
5868
|
+
return this.project.ins.From([
|
|
5869
|
+
this.project.location,
|
|
5870
|
+
c.relativeClonePath,
|
|
5871
|
+
]);
|
|
5872
|
+
})
|
|
5873
|
+
.filter(f => !!f);
|
|
5874
|
+
}
|
|
5875
|
+
else {
|
|
5876
|
+
childrenRepos = this.project.children;
|
|
5877
|
+
}
|
|
5878
|
+
childrenRepos = childrenRepos.filter(f => f.git.isInsideGitRepo && f.git.isGitRoot);
|
|
5879
|
+
return childrenRepos;
|
|
5105
5880
|
}
|
|
5106
|
-
|
|
5107
|
-
/* */
|
|
5881
|
+
async setRemoteOriginType(setOrigin) {
|
|
5108
5882
|
/* */
|
|
5109
5883
|
/* */
|
|
5110
5884
|
/* */
|
|
@@ -5116,12 +5890,7 @@ class BaseLinkedProjects extends BaseFeatureForProject {
|
|
|
5116
5890
|
/* */
|
|
5117
5891
|
return (void 0);
|
|
5118
5892
|
}
|
|
5119
|
-
|
|
5120
|
-
/* */
|
|
5121
|
-
/* */
|
|
5122
|
-
/* */
|
|
5123
|
-
/* */
|
|
5124
|
-
/* */
|
|
5893
|
+
async pullProcess(options = {}) {
|
|
5125
5894
|
/* */
|
|
5126
5895
|
/* */
|
|
5127
5896
|
/* */
|
|
@@ -5156,6 +5925,9 @@ class BaseLinkedProjects extends BaseFeatureForProject {
|
|
|
5156
5925
|
/* */
|
|
5157
5926
|
/* */
|
|
5158
5927
|
/* */
|
|
5928
|
+
return (void 0);
|
|
5929
|
+
}
|
|
5930
|
+
async pushProcess(options = {}) {
|
|
5159
5931
|
/* */
|
|
5160
5932
|
/* */
|
|
5161
5933
|
/* */
|
|
@@ -5164,22 +5936,6 @@ class BaseLinkedProjects extends BaseFeatureForProject {
|
|
|
5164
5936
|
/* */
|
|
5165
5937
|
/* */
|
|
5166
5938
|
/* */
|
|
5167
|
-
return (void 0);
|
|
5168
|
-
}
|
|
5169
|
-
get linkedProjects() {
|
|
5170
|
-
return this.getLinkedProjectsConfig().projects || [];
|
|
5171
|
-
}
|
|
5172
|
-
get detectedLinkedProjects() {
|
|
5173
|
-
const detectedLinkedProjects = LinkedProject.detect(this.project.location, true);
|
|
5174
|
-
return detectedLinkedProjects;
|
|
5175
|
-
}
|
|
5176
|
-
get linkedProjectsPrefix() {
|
|
5177
|
-
return this.getLinkedProjectsConfig().prefix;
|
|
5178
|
-
}
|
|
5179
|
-
resetLinkedProjectsOnlyToCoreBranches() {
|
|
5180
|
-
return false;
|
|
5181
|
-
}
|
|
5182
|
-
async cloneUnexistedLinkedProjects(actionType, setOrigin, cloneChildren = false) {
|
|
5183
5939
|
/* */
|
|
5184
5940
|
/* */
|
|
5185
5941
|
/* */
|
|
@@ -5261,27 +6017,10 @@ class BaseLinkedProjects extends BaseFeatureForProject {
|
|
|
5261
6017
|
/* */
|
|
5262
6018
|
/* */
|
|
5263
6019
|
/* */
|
|
5264
|
-
return (void 0);
|
|
5265
|
-
}
|
|
5266
|
-
}
|
|
5267
|
-
;
|
|
5268
|
-
({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-linked-projects.ts
|
|
5269
|
-
|
|
5270
|
-
/* */
|
|
5271
|
-
/* */
|
|
5272
|
-
/* */
|
|
5273
|
-
class BaseGit extends BaseFeatureForProject {
|
|
5274
|
-
unstageAllFiles() {
|
|
5275
6020
|
/* */
|
|
5276
6021
|
/* */
|
|
5277
|
-
return (void 0);
|
|
5278
|
-
}
|
|
5279
|
-
revertFileChanges(fileReletivePath) {
|
|
5280
6022
|
/* */
|
|
5281
6023
|
/* */
|
|
5282
|
-
return (void 0);
|
|
5283
|
-
}
|
|
5284
|
-
async clone(url, destinationFolderName = '', branchName) {
|
|
5285
6024
|
/* */
|
|
5286
6025
|
/* */
|
|
5287
6026
|
/* */
|
|
@@ -5300,212 +6039,93 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
5300
6039
|
/* */
|
|
5301
6040
|
/* */
|
|
5302
6041
|
/* */
|
|
5303
|
-
return (void 0);
|
|
5304
|
-
}
|
|
5305
|
-
restoreLastVersion(relativeFilePath) {
|
|
5306
6042
|
/* */
|
|
5307
6043
|
/* */
|
|
5308
|
-
return (void 0);
|
|
5309
|
-
}
|
|
5310
|
-
stageAllFiles() {
|
|
5311
6044
|
/* */
|
|
5312
6045
|
/* */
|
|
5313
|
-
return (void 0);
|
|
5314
|
-
}
|
|
5315
|
-
stash(options) {
|
|
5316
6046
|
/* */
|
|
5317
6047
|
/* */
|
|
5318
|
-
return (void 0);
|
|
5319
|
-
}
|
|
5320
|
-
stashApply() {
|
|
5321
6048
|
/* */
|
|
5322
6049
|
/* */
|
|
5323
|
-
return (void 0);
|
|
5324
|
-
}
|
|
5325
|
-
fetch(all = false) {
|
|
5326
6050
|
/* */
|
|
5327
6051
|
/* */
|
|
5328
|
-
return (void 0);
|
|
5329
|
-
}
|
|
5330
|
-
resetFiles(...relativePathes) {
|
|
5331
6052
|
/* */
|
|
5332
6053
|
/* */
|
|
5333
|
-
return (void 0);
|
|
5334
|
-
}
|
|
5335
|
-
get isInsideGitRepo() {
|
|
5336
6054
|
/* */
|
|
5337
6055
|
/* */
|
|
5338
|
-
return (void 0);
|
|
5339
|
-
}
|
|
5340
|
-
get isWithoutGitRepository() {
|
|
5341
6056
|
/* */
|
|
5342
6057
|
/* */
|
|
5343
|
-
return (void 0);
|
|
5344
|
-
}
|
|
5345
|
-
get isGitRoot() {
|
|
5346
6058
|
/* */
|
|
5347
6059
|
/* */
|
|
5348
|
-
return (void 0);
|
|
5349
|
-
}
|
|
5350
|
-
get originURL() {
|
|
5351
6060
|
/* */
|
|
5352
6061
|
/* */
|
|
5353
|
-
return (void 0);
|
|
5354
|
-
}
|
|
5355
|
-
commit(commitMessage) {
|
|
5356
6062
|
/* */
|
|
5357
6063
|
/* */
|
|
5358
|
-
return (void 0);
|
|
5359
|
-
}
|
|
5360
|
-
/**
|
|
5361
|
-
* alias to stage all and commit
|
|
5362
|
-
*/
|
|
5363
|
-
addAndCommit(commitMessage) {
|
|
5364
6064
|
/* */
|
|
5365
6065
|
/* */
|
|
5366
|
-
return (void 0);
|
|
5367
|
-
}
|
|
5368
|
-
stageAllAndCommit(commitMessage) {
|
|
5369
6066
|
/* */
|
|
5370
6067
|
/* */
|
|
5371
|
-
return (void 0);
|
|
5372
|
-
}
|
|
5373
|
-
async pushCurrentBranch(options) {
|
|
5374
6068
|
/* */
|
|
5375
6069
|
/* */
|
|
5376
|
-
return (void 0);
|
|
5377
|
-
}
|
|
5378
|
-
get allOrigins() {
|
|
5379
6070
|
/* */
|
|
5380
6071
|
/* */
|
|
5381
|
-
return (void 0);
|
|
5382
|
-
}
|
|
5383
|
-
get uncommitedFiles() {
|
|
5384
6072
|
/* */
|
|
5385
6073
|
/* */
|
|
5386
|
-
return (void 0);
|
|
5387
|
-
}
|
|
5388
|
-
get thereAreSomeUncommitedChange() {
|
|
5389
6074
|
/* */
|
|
5390
6075
|
/* */
|
|
5391
6076
|
/* */
|
|
5392
6077
|
/* */
|
|
5393
|
-
return (void 0);
|
|
5394
|
-
}
|
|
5395
|
-
thereAreSomeUncommitedChangeExcept(filesList = []) {
|
|
5396
6078
|
/* */
|
|
5397
6079
|
/* */
|
|
5398
6080
|
/* */
|
|
5399
6081
|
/* */
|
|
5400
6082
|
/* */
|
|
5401
|
-
return (void 0);
|
|
5402
|
-
}
|
|
5403
|
-
meltActionCommits() {
|
|
5404
6083
|
/* */
|
|
5405
6084
|
/* */
|
|
5406
|
-
}
|
|
5407
|
-
async pullCurrentBranch(options) {
|
|
5408
6085
|
/* */
|
|
5409
6086
|
/* */
|
|
5410
|
-
return (void 0);
|
|
5411
|
-
}
|
|
5412
|
-
get currentBranchName() {
|
|
5413
6087
|
/* */
|
|
5414
6088
|
/* */
|
|
5415
|
-
return (void 0);
|
|
5416
|
-
}
|
|
5417
|
-
get listOfCurrentGitChanges() {
|
|
5418
6089
|
/* */
|
|
5419
6090
|
/* */
|
|
5420
|
-
return (void 0);
|
|
5421
|
-
}
|
|
5422
|
-
getBranchesNamesBy(pattern) {
|
|
5423
6091
|
/* */
|
|
5424
6092
|
/* */
|
|
5425
|
-
return (void 0);
|
|
5426
|
-
}
|
|
5427
|
-
resetSoftHEAD(HEAD = 1) {
|
|
5428
6093
|
/* */
|
|
5429
6094
|
/* */
|
|
5430
|
-
return (void 0);
|
|
5431
|
-
}
|
|
5432
|
-
resetHard(options) {
|
|
5433
6095
|
/* */
|
|
5434
6096
|
/* */
|
|
5435
|
-
return (void 0);
|
|
5436
|
-
}
|
|
5437
|
-
countComits() {
|
|
5438
6097
|
/* */
|
|
5439
6098
|
/* */
|
|
5440
|
-
return (void 0);
|
|
5441
|
-
}
|
|
5442
|
-
hasAnyCommits() {
|
|
5443
6099
|
/* */
|
|
5444
6100
|
/* */
|
|
5445
|
-
return (void 0);
|
|
5446
|
-
}
|
|
5447
|
-
get isInMergeProcess() {
|
|
5448
6101
|
/* */
|
|
5449
6102
|
/* */
|
|
5450
|
-
return (void 0);
|
|
5451
|
-
}
|
|
5452
|
-
lastCommitDate() {
|
|
5453
6103
|
/* */
|
|
5454
6104
|
/* */
|
|
5455
|
-
return (void 0);
|
|
5456
|
-
}
|
|
5457
|
-
lastCommitHash() {
|
|
5458
6105
|
/* */
|
|
5459
6106
|
/* */
|
|
5460
|
-
return (void 0);
|
|
5461
|
-
}
|
|
5462
|
-
lastCommitMessage() {
|
|
5463
6107
|
/* */
|
|
5464
6108
|
/* */
|
|
5465
|
-
return (void 0);
|
|
5466
|
-
}
|
|
5467
|
-
async penultimateCommitMessage() {
|
|
5468
6109
|
/* */
|
|
5469
6110
|
/* */
|
|
5470
|
-
return (void 0);
|
|
5471
|
-
}
|
|
5472
|
-
async getCommitMessageByIndex(index) {
|
|
5473
6111
|
/* */
|
|
5474
6112
|
/* */
|
|
5475
6113
|
/* */
|
|
5476
6114
|
/* */
|
|
5477
6115
|
/* */
|
|
5478
|
-
return (void 0);
|
|
5479
|
-
}
|
|
5480
|
-
async getCommitMessageByHash(hash) {
|
|
5481
6116
|
/* */
|
|
5482
6117
|
/* */
|
|
5483
6118
|
/* */
|
|
5484
6119
|
/* */
|
|
5485
6120
|
/* */
|
|
5486
|
-
return (void 0);
|
|
5487
|
-
}
|
|
5488
|
-
async getCommitHashByIndex(index) {
|
|
5489
6121
|
/* */
|
|
5490
6122
|
/* */
|
|
5491
|
-
return (void 0);
|
|
5492
|
-
}
|
|
5493
|
-
penultimateCommitHash() {
|
|
5494
6123
|
/* */
|
|
5495
6124
|
/* */
|
|
5496
|
-
return (void 0);
|
|
5497
|
-
}
|
|
5498
|
-
checkTagExists(tag) {
|
|
5499
6125
|
/* */
|
|
5500
6126
|
/* */
|
|
5501
|
-
return (void 0);
|
|
5502
|
-
}
|
|
5503
|
-
checkout(branchName, options) {
|
|
5504
6127
|
/* */
|
|
5505
6128
|
/* */
|
|
5506
|
-
return (void 0);
|
|
5507
|
-
}
|
|
5508
|
-
checkoutFromTo(checkoutFromBranch, branch, origin = 'origin') {
|
|
5509
6129
|
/* */
|
|
5510
6130
|
/* */
|
|
5511
6131
|
/* */
|
|
@@ -5513,45 +6133,19 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
5513
6133
|
/* */
|
|
5514
6134
|
/* */
|
|
5515
6135
|
/* */
|
|
5516
|
-
return (void 0);
|
|
5517
|
-
}
|
|
5518
|
-
/**
|
|
5519
|
-
*
|
|
5520
|
-
* @param majorVersion example: v1, v2 etc.
|
|
5521
|
-
* @returns tag name
|
|
5522
|
-
*/
|
|
5523
|
-
lastTagNameForMajorVersion(majorVersion) {
|
|
5524
6136
|
/* */
|
|
5525
6137
|
/* */
|
|
5526
6138
|
/* */
|
|
5527
6139
|
/* */
|
|
5528
6140
|
/* */
|
|
5529
|
-
return (void 0);
|
|
5530
|
-
}
|
|
5531
|
-
lastTagHash() {
|
|
5532
6141
|
/* */
|
|
5533
6142
|
/* */
|
|
5534
|
-
return (void 0);
|
|
5535
|
-
}
|
|
5536
|
-
get remoteOriginUrl() {
|
|
5537
6143
|
/* */
|
|
5538
6144
|
/* */
|
|
5539
|
-
return (void 0);
|
|
5540
|
-
}
|
|
5541
|
-
get lastTagVersionName() {
|
|
5542
6145
|
/* */
|
|
5543
6146
|
/* */
|
|
5544
|
-
return (void 0);
|
|
5545
|
-
}
|
|
5546
|
-
get stagedFiles() {
|
|
5547
6147
|
/* */
|
|
5548
6148
|
/* */
|
|
5549
|
-
return (void 0);
|
|
5550
|
-
}
|
|
5551
|
-
/**
|
|
5552
|
-
* TODO does this make any sense
|
|
5553
|
-
*/
|
|
5554
|
-
renameOrigin(newNameOrUlr) {
|
|
5555
6149
|
/* */
|
|
5556
6150
|
/* */
|
|
5557
6151
|
/* */
|
|
@@ -5577,34 +6171,6 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
5577
6171
|
/* */
|
|
5578
6172
|
/* */
|
|
5579
6173
|
/* */
|
|
5580
|
-
return (void 0);
|
|
5581
|
-
}
|
|
5582
|
-
/**
|
|
5583
|
-
* By default no translation of commit
|
|
5584
|
-
*/
|
|
5585
|
-
transalteGitCommitFromArgs() {
|
|
5586
|
-
return { from: void 0, to: void 0 };
|
|
5587
|
-
}
|
|
5588
|
-
/**
|
|
5589
|
-
* By defult true.. when commit branches will not function.
|
|
5590
|
-
* (false is better for simple projects)
|
|
5591
|
-
*/
|
|
5592
|
-
useGitBranchesWhenCommitingAndPushing() {
|
|
5593
|
-
return true;
|
|
5594
|
-
}
|
|
5595
|
-
/**
|
|
5596
|
-
* usefull when pushing in project with childrens as git repos
|
|
5597
|
-
*/
|
|
5598
|
-
automaticallyAddAllChangesWhenPushingToGit() {
|
|
5599
|
-
return false;
|
|
5600
|
-
}
|
|
5601
|
-
/**
|
|
5602
|
-
* usefull when pushing in project with childrens as git repos
|
|
5603
|
-
*/
|
|
5604
|
-
useGitBranchesAsMetadataForCommits() {
|
|
5605
|
-
return true;
|
|
5606
|
-
}
|
|
5607
|
-
async cloneTo(cwd, newProjectName) {
|
|
5608
6174
|
/* */
|
|
5609
6175
|
/* */
|
|
5610
6176
|
/* */
|
|
@@ -5634,36 +6200,6 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
5634
6200
|
/* */
|
|
5635
6201
|
/* */
|
|
5636
6202
|
/* */
|
|
5637
|
-
return (void 0);
|
|
5638
|
-
}
|
|
5639
|
-
/**
|
|
5640
|
-
* This is only for push/pull process
|
|
5641
|
-
*
|
|
5642
|
-
* There are 2 types of projects:
|
|
5643
|
-
* - with linked-projects.json
|
|
5644
|
-
* - with children from external folder
|
|
5645
|
-
*
|
|
5646
|
-
* projects that are children of this project (with its own git repo)
|
|
5647
|
-
*/
|
|
5648
|
-
get gitChildren() {
|
|
5649
|
-
let childrenRepos = [];
|
|
5650
|
-
if (this.project.linkedProjects.linkedProjects.length > 0) {
|
|
5651
|
-
childrenRepos = this.project.linkedProjects.linkedProjects
|
|
5652
|
-
.map(c => {
|
|
5653
|
-
return this.project.ins.From([
|
|
5654
|
-
this.project.location,
|
|
5655
|
-
c.relativeClonePath,
|
|
5656
|
-
]);
|
|
5657
|
-
})
|
|
5658
|
-
.filter(f => !!f);
|
|
5659
|
-
}
|
|
5660
|
-
else {
|
|
5661
|
-
childrenRepos = this.project.children;
|
|
5662
|
-
}
|
|
5663
|
-
childrenRepos = childrenRepos.filter(f => f.git.isInsideGitRepo && f.git.isGitRoot);
|
|
5664
|
-
return childrenRepos;
|
|
5665
|
-
}
|
|
5666
|
-
async setRemoteOriginType(setOrigin) {
|
|
5667
6203
|
/* */
|
|
5668
6204
|
/* */
|
|
5669
6205
|
/* */
|
|
@@ -5673,9 +6209,6 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
5673
6209
|
/* */
|
|
5674
6210
|
/* */
|
|
5675
6211
|
/* */
|
|
5676
|
-
return (void 0);
|
|
5677
|
-
}
|
|
5678
|
-
async pullProcess(options = {}) {
|
|
5679
6212
|
/* */
|
|
5680
6213
|
/* */
|
|
5681
6214
|
/* */
|
|
@@ -5710,9 +6243,6 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
5710
6243
|
/* */
|
|
5711
6244
|
/* */
|
|
5712
6245
|
/* */
|
|
5713
|
-
return (void 0);
|
|
5714
|
-
}
|
|
5715
|
-
async pushProcess(options = {}) {
|
|
5716
6246
|
/* */
|
|
5717
6247
|
/* */
|
|
5718
6248
|
/* */
|
|
@@ -5721,6 +6251,9 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
5721
6251
|
/* */
|
|
5722
6252
|
/* */
|
|
5723
6253
|
/* */
|
|
6254
|
+
return (void 0);
|
|
6255
|
+
}
|
|
6256
|
+
_beforeAnyActionOnGitRoot() {
|
|
5724
6257
|
/* */
|
|
5725
6258
|
/* */
|
|
5726
6259
|
/* */
|
|
@@ -5738,6 +6271,9 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
5738
6271
|
/* */
|
|
5739
6272
|
/* */
|
|
5740
6273
|
/* */
|
|
6274
|
+
return (void 0);
|
|
6275
|
+
}
|
|
6276
|
+
async _beforePushProcessAction(setOrigin) {
|
|
5741
6277
|
/* */
|
|
5742
6278
|
/* */
|
|
5743
6279
|
/* */
|
|
@@ -5761,6 +6297,9 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
5761
6297
|
/* */
|
|
5762
6298
|
/* */
|
|
5763
6299
|
/* */
|
|
6300
|
+
return (void 0);
|
|
6301
|
+
}
|
|
6302
|
+
async _beforePullProcessAction(setOrigin, cloneChildren = false) {
|
|
5764
6303
|
/* */
|
|
5765
6304
|
/* */
|
|
5766
6305
|
/* */
|
|
@@ -5768,6 +6307,17 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
5768
6307
|
/* */
|
|
5769
6308
|
/* */
|
|
5770
6309
|
/* */
|
|
6310
|
+
return (void 0);
|
|
6311
|
+
}
|
|
6312
|
+
async _getCommitMessage(typeOfCommit, args, commitMessageRequired,
|
|
6313
|
+
/**
|
|
6314
|
+
* only needed when push github
|
|
6315
|
+
* and I forgot to add my username before issue
|
|
6316
|
+
* taon pfix proper input my-repo#344
|
|
6317
|
+
* that should be
|
|
6318
|
+
* taon pfix proper input my-username/my-repo#344
|
|
6319
|
+
*/
|
|
6320
|
+
currentOrigin) {
|
|
5771
6321
|
/* */
|
|
5772
6322
|
/* */
|
|
5773
6323
|
/* */
|
|
@@ -5816,16 +6366,35 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
5816
6366
|
/* */
|
|
5817
6367
|
/* */
|
|
5818
6368
|
/* */
|
|
6369
|
+
return (void 0);
|
|
6370
|
+
}
|
|
6371
|
+
/**
|
|
6372
|
+
* This will prevent accidental branch change for taon projects
|
|
6373
|
+
* @returns branch name
|
|
6374
|
+
*/
|
|
6375
|
+
duringPushWarnIfProjectNotOnSpecyficDevBranch() {
|
|
6376
|
+
return void 0;
|
|
6377
|
+
}
|
|
6378
|
+
async getChangedFilesInCommitByHash(hash) {
|
|
5819
6379
|
/* */
|
|
5820
6380
|
/* */
|
|
5821
6381
|
/* */
|
|
5822
6382
|
/* */
|
|
5823
6383
|
/* */
|
|
6384
|
+
return (void 0);
|
|
6385
|
+
}
|
|
6386
|
+
/**
|
|
6387
|
+
* @param index 0 - means last commit
|
|
6388
|
+
*/
|
|
6389
|
+
async getChangedFilesInCommitByIndex(index) {
|
|
5824
6390
|
/* */
|
|
5825
6391
|
/* */
|
|
5826
6392
|
/* */
|
|
5827
6393
|
/* */
|
|
5828
6394
|
/* */
|
|
6395
|
+
return (void 0);
|
|
6396
|
+
}
|
|
6397
|
+
async changesSummary() {
|
|
5829
6398
|
/* */
|
|
5830
6399
|
/* */
|
|
5831
6400
|
/* */
|
|
@@ -5838,6 +6407,32 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
5838
6407
|
/* */
|
|
5839
6408
|
/* */
|
|
5840
6409
|
/* */
|
|
6410
|
+
return (void 0);
|
|
6411
|
+
}
|
|
6412
|
+
}
|
|
6413
|
+
;
|
|
6414
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/classes/base-git.ts
|
|
6415
|
+
|
|
6416
|
+
/* */
|
|
6417
|
+
/* */
|
|
6418
|
+
/* */
|
|
6419
|
+
/* */
|
|
6420
|
+
/* */
|
|
6421
|
+
/* */
|
|
6422
|
+
/* */
|
|
6423
|
+
/* */
|
|
6424
|
+
/* */
|
|
6425
|
+
class BaseVscodeHelpers extends BaseFeatureForProject {
|
|
6426
|
+
constructor() {
|
|
6427
|
+
super(...arguments);
|
|
6428
|
+
/**
|
|
6429
|
+
* settings.json relative path
|
|
6430
|
+
*/
|
|
6431
|
+
this.settingsJson = '.vscode/settings.json';
|
|
6432
|
+
this.extensionsJson = '.vscode/extensions.json';
|
|
6433
|
+
}
|
|
6434
|
+
get extensions() {
|
|
6435
|
+
return Helpers.uniqArray([
|
|
5841
6436
|
/* */
|
|
5842
6437
|
/* */
|
|
5843
6438
|
/* */
|
|
@@ -5943,6 +6538,9 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
5943
6538
|
/* */
|
|
5944
6539
|
/* */
|
|
5945
6540
|
/* */
|
|
6541
|
+
]).map(c => c.toLowerCase());
|
|
6542
|
+
}
|
|
6543
|
+
recreateExtensions() {
|
|
5946
6544
|
/* */
|
|
5947
6545
|
/* */
|
|
5948
6546
|
/* */
|
|
@@ -5954,12 +6552,18 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
5954
6552
|
/* */
|
|
5955
6553
|
/* */
|
|
5956
6554
|
/* */
|
|
6555
|
+
return (void 0);
|
|
6556
|
+
}
|
|
6557
|
+
recreateWindowTitle() {
|
|
5957
6558
|
/* */
|
|
5958
6559
|
/* */
|
|
5959
6560
|
/* */
|
|
5960
6561
|
/* */
|
|
5961
6562
|
/* */
|
|
5962
6563
|
/* */
|
|
6564
|
+
return (void 0);
|
|
6565
|
+
}
|
|
6566
|
+
async installExtensions(extensions = this.extensions, defaultSelectedAll = false) {
|
|
5963
6567
|
/* */
|
|
5964
6568
|
/* */
|
|
5965
6569
|
/* */
|
|
@@ -6015,6 +6619,19 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
6015
6619
|
/* */
|
|
6016
6620
|
/* */
|
|
6017
6621
|
/* */
|
|
6622
|
+
return (void 0);
|
|
6623
|
+
}
|
|
6624
|
+
/**
|
|
6625
|
+
* This pattern finds a dash followed by at least one digit.
|
|
6626
|
+
* It removes everything from that dash to the end of the string.
|
|
6627
|
+
* Examples:
|
|
6628
|
+
* "name-of-extension-1.2.3" -> "name-of-extension"
|
|
6629
|
+
* "extension-0.9.5-win32-x64" -> "extension"
|
|
6630
|
+
*/
|
|
6631
|
+
stripVersion(folderName) {
|
|
6632
|
+
return folderName.replace(/(-\d+.*)$/, '');
|
|
6633
|
+
}
|
|
6634
|
+
get installedExtensions() {
|
|
6018
6635
|
/* */
|
|
6019
6636
|
/* */
|
|
6020
6637
|
/* */
|
|
@@ -6036,12 +6653,12 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
6036
6653
|
/* */
|
|
6037
6654
|
/* */
|
|
6038
6655
|
/* */
|
|
6039
|
-
return (void 0);
|
|
6040
|
-
}
|
|
6041
|
-
_beforeAnyActionOnGitRoot() {
|
|
6042
6656
|
/* */
|
|
6043
6657
|
/* */
|
|
6044
6658
|
/* */
|
|
6659
|
+
return (void 0);
|
|
6660
|
+
}
|
|
6661
|
+
async applyProperGlobalSettings() {
|
|
6045
6662
|
/* */
|
|
6046
6663
|
/* */
|
|
6047
6664
|
/* */
|
|
@@ -6056,9 +6673,6 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
6056
6673
|
/* */
|
|
6057
6674
|
/* */
|
|
6058
6675
|
/* */
|
|
6059
|
-
return (void 0);
|
|
6060
|
-
}
|
|
6061
|
-
async _beforePushProcessAction(setOrigin) {
|
|
6062
6676
|
/* */
|
|
6063
6677
|
/* */
|
|
6064
6678
|
/* */
|
|
@@ -6082,9 +6696,6 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
6082
6696
|
/* */
|
|
6083
6697
|
/* */
|
|
6084
6698
|
/* */
|
|
6085
|
-
return (void 0);
|
|
6086
|
-
}
|
|
6087
|
-
async _beforePullProcessAction(setOrigin, cloneChildren = false) {
|
|
6088
6699
|
/* */
|
|
6089
6700
|
/* */
|
|
6090
6701
|
/* */
|
|
@@ -6092,17 +6703,6 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
6092
6703
|
/* */
|
|
6093
6704
|
/* */
|
|
6094
6705
|
/* */
|
|
6095
|
-
return (void 0);
|
|
6096
|
-
}
|
|
6097
|
-
async _getCommitMessage(typeOfCommit, args, commitMessageRequired,
|
|
6098
|
-
/**
|
|
6099
|
-
* only needed when push github
|
|
6100
|
-
* and I forgot to add my username before issue
|
|
6101
|
-
* taon pfix proper input my-repo#344
|
|
6102
|
-
* that should be
|
|
6103
|
-
* taon pfix proper input my-username/my-repo#344
|
|
6104
|
-
*/
|
|
6105
|
-
currentOrigin) {
|
|
6106
6706
|
/* */
|
|
6107
6707
|
/* */
|
|
6108
6708
|
/* */
|
|
@@ -6151,35 +6751,16 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
6151
6751
|
/* */
|
|
6152
6752
|
/* */
|
|
6153
6753
|
/* */
|
|
6154
|
-
return (void 0);
|
|
6155
|
-
}
|
|
6156
|
-
/**
|
|
6157
|
-
* This will prevent accidental branch change for taon projects
|
|
6158
|
-
* @returns branch name
|
|
6159
|
-
*/
|
|
6160
|
-
duringPushWarnIfProjectNotOnSpecyficDevBranch() {
|
|
6161
|
-
return void 0;
|
|
6162
|
-
}
|
|
6163
|
-
async getChangedFilesInCommitByHash(hash) {
|
|
6164
6754
|
/* */
|
|
6165
6755
|
/* */
|
|
6166
6756
|
/* */
|
|
6167
6757
|
/* */
|
|
6168
6758
|
/* */
|
|
6169
|
-
return (void 0);
|
|
6170
|
-
}
|
|
6171
|
-
/**
|
|
6172
|
-
* @param index 0 - means last commit
|
|
6173
|
-
*/
|
|
6174
|
-
async getChangedFilesInCommitByIndex(index) {
|
|
6175
6759
|
/* */
|
|
6176
6760
|
/* */
|
|
6177
6761
|
/* */
|
|
6178
6762
|
/* */
|
|
6179
6763
|
/* */
|
|
6180
|
-
return (void 0);
|
|
6181
|
-
}
|
|
6182
|
-
async changesSummary() {
|
|
6183
6764
|
/* */
|
|
6184
6765
|
/* */
|
|
6185
6766
|
/* */
|
|
@@ -6192,23 +6773,6 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
6192
6773
|
/* */
|
|
6193
6774
|
/* */
|
|
6194
6775
|
/* */
|
|
6195
|
-
return (void 0);
|
|
6196
|
-
}
|
|
6197
|
-
}
|
|
6198
|
-
;
|
|
6199
|
-
({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-git.ts
|
|
6200
|
-
|
|
6201
|
-
class BaseVscodeHelpers extends BaseFeatureForProject {
|
|
6202
|
-
constructor() {
|
|
6203
|
-
super(...arguments);
|
|
6204
|
-
/**
|
|
6205
|
-
* settings.json relative path
|
|
6206
|
-
*/
|
|
6207
|
-
this.settingsJson = '.vscode/settings.json';
|
|
6208
|
-
this.extensionsJson = '.vscode/extensions.json';
|
|
6209
|
-
}
|
|
6210
|
-
get extensions() {
|
|
6211
|
-
return Helpers.uniqArray([
|
|
6212
6776
|
/* */
|
|
6213
6777
|
/* */
|
|
6214
6778
|
/* */
|
|
@@ -6312,9 +6876,6 @@ class BaseVscodeHelpers extends BaseFeatureForProject {
|
|
|
6312
6876
|
/* */
|
|
6313
6877
|
/* */
|
|
6314
6878
|
/* */
|
|
6315
|
-
]);
|
|
6316
|
-
}
|
|
6317
|
-
recreateExtensions() {
|
|
6318
6879
|
/* */
|
|
6319
6880
|
/* */
|
|
6320
6881
|
/* */
|
|
@@ -6326,9 +6887,6 @@ class BaseVscodeHelpers extends BaseFeatureForProject {
|
|
|
6326
6887
|
/* */
|
|
6327
6888
|
/* */
|
|
6328
6889
|
/* */
|
|
6329
|
-
return (void 0);
|
|
6330
|
-
}
|
|
6331
|
-
recreateWindowTitle() {
|
|
6332
6890
|
/* */
|
|
6333
6891
|
/* */
|
|
6334
6892
|
/* */
|
|
@@ -6339,7 +6897,7 @@ class BaseVscodeHelpers extends BaseFeatureForProject {
|
|
|
6339
6897
|
}
|
|
6340
6898
|
}
|
|
6341
6899
|
;
|
|
6342
|
-
({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-vscode.ts
|
|
6900
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/classes/base-vscode.ts
|
|
6343
6901
|
|
|
6344
6902
|
/* */
|
|
6345
6903
|
/* */
|
|
@@ -6937,7 +7495,7 @@ ${await this.getLastChangesFromCommits({
|
|
|
6937
7495
|
}
|
|
6938
7496
|
}
|
|
6939
7497
|
;
|
|
6940
|
-
({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-release-process.ts
|
|
7498
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/classes/base-release-process.ts
|
|
6941
7499
|
|
|
6942
7500
|
/* */
|
|
6943
7501
|
/* */
|
|
@@ -6997,7 +7555,7 @@ class BaseCompilerForProject extends IncCompiler.Base {
|
|
|
6997
7555
|
}
|
|
6998
7556
|
}
|
|
6999
7557
|
;
|
|
7000
|
-
({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-compiler-for-project.ts
|
|
7558
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/classes/base-compiler-for-project.ts
|
|
7001
7559
|
|
|
7002
7560
|
class BaseDebounceCompilerForProject extends BaseCompilerForProject {
|
|
7003
7561
|
constructor() {
|
|
@@ -7050,7 +7608,7 @@ class BaseDebounceCompilerForProject extends BaseCompilerForProject {
|
|
|
7050
7608
|
}
|
|
7051
7609
|
}
|
|
7052
7610
|
;
|
|
7053
|
-
({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-debounce-compiler-for-project.ts
|
|
7611
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/classes/base-debounce-compiler-for-project.ts
|
|
7054
7612
|
|
|
7055
7613
|
class BaseQuickFixes extends BaseFeatureForProject {
|
|
7056
7614
|
constructor(project) {
|
|
@@ -7073,7 +7631,15 @@ class BaseQuickFixes extends BaseFeatureForProject {
|
|
|
7073
7631
|
}
|
|
7074
7632
|
}
|
|
7075
7633
|
;
|
|
7076
|
-
({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-quick-fixes.ts
|
|
7634
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/classes/base-quick-fixes.ts
|
|
7635
|
+
|
|
7636
|
+
/* */
|
|
7637
|
+
/* */
|
|
7638
|
+
/* */
|
|
7639
|
+
/* */
|
|
7640
|
+
;
|
|
7641
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base/classes/index.ts
|
|
7642
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi90bXAtbGlicy1mb3ItZGlzdC13ZWJzcWwvdG5wLWhlbHBlcnMvcHJvamVjdHMvdG5wLWhlbHBlcnMvc3JjL2xpYi9iYXNlL2NsYXNzZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsNEJBQTRCLENBQUM7QUFDM0MsY0FBYyxzQkFBc0IsQ0FBQztBQUNyQyxjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyxlQUFlLENBQUM7QUFDOUIsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGNBQWMsc0NBQXNDLENBQUM7QUFDckQsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLDhCQUE4QixDQUFDO0FBQzdDLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxLQUFLO0FBQ0wsS0FBSztBQUNMLEtBQUs7QUFDTCxLQUFLO0FBR0osQ0FBQztBQUFBLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxrRUFBa0UiLCJzb3VyY2VzQ29udGVudCI6WyJcblxuZXhwb3J0ICogZnJvbSAnLi9iYXNlLXByb2plY3QnO1xuZXhwb3J0ICogZnJvbSAnLi9iYXNlLXByb2plY3QtcmVzb2x2ZXInO1xuZXhwb3J0ICogZnJvbSAnLi9iYXNlLWZlYXR1cmUtZm9yLXByb2plY3QnO1xuZXhwb3J0ICogZnJvbSAnLi9iYXNlLWxpYnJhcnktYnVpbGQnO1xuZXhwb3J0ICogZnJvbSAnLi9iYXNlLW5wbS1oZWxwZXJzJztcbmV4cG9ydCAqIGZyb20gJy4vYmFzZS1saW5rZWQtcHJvamVjdHMnO1xuZXhwb3J0ICogZnJvbSAnLi9iYXNlLWdpdCc7XG5leHBvcnQgKiBmcm9tICcuL2Jhc2UtdnNjb2RlJztcbmV4cG9ydCAqIGZyb20gJy4vYmFzZS1yZWxlYXNlLXByb2Nlc3MnO1xuZXhwb3J0ICogZnJvbSAnLi9iYXNlLWNvbXBpbGVyLWZvci1wcm9qZWN0JztcbmV4cG9ydCAqIGZyb20gJy4vYmFzZS1kZWJvdW5jZS1jb21waWxlci1mb3ItcHJvamVjdCc7XG5leHBvcnQgKiBmcm9tICcuL2Jhc2UtcXVpY2stZml4ZXMnO1xuZXhwb3J0ICogZnJvbSAnLi9iYXNlLWNsaS13b3JrZXItY29udHJvbGxlcic7XG5leHBvcnQgKiBmcm9tICcuL2Jhc2UtY2xpLXdvcmtlcic7XG5leHBvcnQgKiBmcm9tICcuL2Jhc2UtY2xpLXdvcmtlci1jb25maWcnO1xuLyogKi9cbi8qICovXG4vKiAqL1xuLyogKi9cbiAgXG5cbiA7KHt9KTsgLy8gQC0tZW5kLW9mLWZpbGUtZm9yLW1vZHVsZT10bnAtaGVscGVycyBsaWIvYmFzZS9jbGFzc2VzL2luZGV4LnRzIl19
|
|
7077
7643
|
|
|
7078
7644
|
const openSourceProvidersIssuePrefix = [
|
|
7079
7645
|
'GH',
|
|
@@ -7893,14 +8459,11 @@ class LinkedPorjectsConfig {
|
|
|
7893
8459
|
;
|
|
7894
8460
|
({}); // @--end-of-file-for-module=tnp-helpers lib/base/linked-project.ts
|
|
7895
8461
|
|
|
7896
|
-
/* */
|
|
7897
|
-
/* */
|
|
7898
|
-
/* */
|
|
7899
8462
|
/* */
|
|
7900
8463
|
/* */
|
|
7901
8464
|
;
|
|
7902
8465
|
({}); // @--end-of-file-for-module=tnp-helpers lib/base/index.ts
|
|
7903
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
8466
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi90bXAtbGlicy1mb3ItZGlzdC13ZWJzcWwvdG5wLWhlbHBlcnMvcHJvamVjdHMvdG5wLWhlbHBlcnMvc3JjL2xpYi9iYXNlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLGNBQWMsV0FBVyxDQUFDO0FBQzFCLGNBQWMsZUFBZSxDQUFDO0FBQzlCLGNBQWMsZ0JBQWdCLENBQUM7QUFDL0IsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLGlCQUFpQixDQUFDO0FBQ2hDLEtBQUs7QUFDTCxLQUFLO0FBR0osQ0FBQztBQUFBLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQywwREFBMEQiLCJzb3VyY2VzQ29udGVudCI6WyJcblxuZXhwb3J0ICogZnJvbSAnLi9jbGFzc2VzJztcbmV4cG9ydCAqIGZyb20gJy4vY29tbWl0LWRhdGEnO1xuZXhwb3J0ICogZnJvbSAnLi9jb3JlLXByb2plY3QnO1xuZXhwb3J0ICogZnJvbSAnLi9saW5rZWQtcHJvamVjdCc7XG5leHBvcnQgKiBmcm9tICcuL3RjcC11ZHAtcG9ydHMnO1xuLyogKi9cbi8qICovXG4gIFxuXG4gOyh7fSk7IC8vIEAtLWVuZC1vZi1maWxlLWZvci1tb2R1bGU9dG5wLWhlbHBlcnMgbGliL2Jhc2UvaW5kZXgudHMiXX0=
|
|
7904
8467
|
|
|
7905
8468
|
const BaseProjectTypeArr = core.CoreModels.BaseProjectTypeArr;
|
|
7906
8469
|
;
|
|
@@ -7920,5 +8483,5 @@ const Helpers = HelpersTaon.Instance;
|
|
|
7920
8483
|
* Generated bundle index. Do not edit.
|
|
7921
8484
|
*/
|
|
7922
8485
|
|
|
7923
|
-
export { BaseCliWorker, BaseCliWorkerConfig, BaseCliWorkerController, BaseCompilerForProject, BaseDebounceCompilerForProject, BaseFeatureForProject, BaseGit, BaseLibraryBuild, BaseLinkedProjects, BaseNpmHelpers, BaseProject, BaseProjectResolver, BaseProjectTypeArr, BaseQuickFixes, BaseReleaseProcess, BaseVscodeHelpers, CommitData, CoreAngularProject, CoreProject, CoreTypescriptProject, Helpers, HelpersAngular, LinkedPorjectsConfig, LinkedProject, UtilsHttp, UtilsMd, UtilsNpm, UtilsQuickFixes,
|
|
8486
|
+
export { BaseCliWorker, BaseCliWorkerConfig, BaseCliWorkerController, BaseCompilerForProject, BaseDebounceCompilerForProject, BaseFeatureForProject, BaseGit, BaseLibraryBuild, BaseLinkedProjects, BaseNpmHelpers, BaseProject, BaseProjectResolver, BaseProjectTypeArr, BaseQuickFixes, BaseReleaseProcess, BaseVscodeHelpers, CommitData, CoreAngularProject, CoreProject, CoreTypescriptProject, Helpers, HelpersAngular, LinkedPorjectsConfig, LinkedProject, NotAssignablePort, Port, PortStatusArr, PortsController, PortsWorker, UtilsHttp, UtilsMd, UtilsNpm, UtilsQuickFixes, UtilsTypescript, Validators };
|
|
7924
8487
|
//# sourceMappingURL=tnp-helpers.mjs.map
|