tnp-helpers 21.0.3 → 21.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/fesm2022/{tnp-helpers.mjs → tnp-helpers-browser.mjs} +203 -54
- package/browser/fesm2022/tnp-helpers-browser.mjs.map +1 -0
- package/browser/package.json +1 -1
- package/browser/types/tnp-helpers-browser.d.ts +3205 -0
- package/lib/base/classes/base-bower-json.js.map +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker-config.js.map +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker-controller.d.ts +2 -2
- package/lib/base/classes/base-cli-worker/base-cli-worker-controller.js +31 -13
- package/lib/base/classes/base-cli-worker/base-cli-worker-controller.js.map +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker-database-config.js.map +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker-terminal-ui.js.map +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker.js +1 -0
- package/lib/base/classes/base-cli-worker/base-cli-worker.js.map +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker.utils.js.map +1 -1
- package/lib/base/classes/base-command-line-feature.js.map +1 -1
- package/lib/base/classes/base-compiler-for-project.js.map +1 -1
- package/lib/base/classes/base-db.js.map +1 -1
- package/lib/base/classes/base-docker.js.map +1 -1
- package/lib/base/classes/base-file-folders-operations.js.map +1 -1
- package/lib/base/classes/base-git.js.map +1 -1
- package/lib/base/classes/base-global-command-line.d.ts +3 -0
- package/lib/base/classes/base-global-command-line.js +31 -6
- package/lib/base/classes/base-global-command-line.js.map +1 -1
- package/lib/base/classes/base-ignore-hide.js.map +1 -1
- package/lib/base/classes/base-java-jdk.js.map +1 -1
- package/lib/base/classes/base-json-file-reader.js.map +1 -1
- package/lib/base/classes/base-library-build.js.map +1 -1
- package/lib/base/classes/base-linked-projects.js.map +1 -1
- package/lib/base/classes/base-linter.js.map +1 -1
- package/lib/base/classes/base-node-modules.js +10 -1
- package/lib/base/classes/base-node-modules.js.map +1 -1
- package/lib/base/classes/base-npm-helpers.js.map +1 -1
- package/lib/base/classes/base-package-json.d.ts +3 -2
- package/lib/base/classes/base-package-json.js +7 -1
- package/lib/base/classes/base-package-json.js.map +1 -1
- package/lib/base/classes/base-process-manager.js.map +1 -1
- package/lib/base/classes/base-project-resolver.js.map +1 -1
- package/lib/base/classes/base-project.d.ts +4 -4
- package/lib/base/classes/base-project.js +0 -3
- package/lib/base/classes/base-project.js.map +1 -1
- package/lib/base/classes/base-quick-fixes.js +7 -3
- package/lib/base/classes/base-quick-fixes.js.map +1 -1
- package/lib/base/classes/base-release-process.js.map +1 -1
- package/lib/base/classes/base-start-config.backend.js.map +1 -1
- package/lib/base/classes/base-static-pages.js.map +1 -1
- package/lib/base/classes/base-vscode.js +2 -0
- package/lib/base/classes/base-vscode.js.map +1 -1
- package/lib/base/commit-data.js.map +1 -1
- package/lib/base/config-database.js.map +1 -1
- package/lib/base/core-project.d.ts +2 -2
- package/lib/base/core-project.js.map +1 -1
- package/lib/base/gh-temp-code.js.map +1 -1
- package/lib/base/index.js.map +1 -1
- package/lib/base/linked-project.js.map +1 -1
- package/lib/base/project-database.js.map +1 -1
- package/lib/base/tcp-udp-ports/not-assignable-port.entity.js +2 -2
- package/lib/base/tcp-udp-ports/ports.controller.js +41 -17
- package/lib/base/tcp-udp-ports/ports.controller.js.map +1 -1
- package/lib/base/tcp-udp-ports/ports.entity.d.ts +2 -2
- package/lib/base/tcp-udp-ports/ports.entity.js +21 -9
- package/lib/base/tcp-udp-ports/ports.entity.js.map +1 -1
- package/lib/base/tcp-udp-ports/tcp-udp-ports.context.d.ts +5 -5
- package/lib/base/tcp-udp-ports/tcp-upd-ports-terminal-ui.js.map +1 -1
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/helpers/for-backend/helpers-cli-tool.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-console-gui.js.map +1 -1
- package/lib/helpers/for-backend/helpers-file-folders.js.map +1 -1
- package/lib/helpers/for-backend/helpers-git.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-npm.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-process.js.map +1 -1
- package/lib/helpers/for-backend/helpers-vscode.backend.js.map +1 -1
- package/lib/helpers/for-browser/angular.helper.d.ts +0 -1
- package/lib/helpers/for-browser/angular.helper.js +2 -2
- package/lib/helpers/for-browser/helpers-browser.js.map +1 -1
- package/lib/helpers/helpers-json5.backend.js.map +1 -1
- package/lib/helpers/helpers-numbers.js.map +1 -1
- package/lib/helpers/helpers-strings-regexes.js.map +1 -1
- package/lib/helpers/helpers-strings.js.map +1 -1
- package/lib/helpers/helpers.js.map +1 -1
- package/lib/models.js.map +1 -1
- 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/old/execute-command.js.map +1 -1
- package/lib/old/helpers.js.map +1 -1
- package/lib/utils.d.ts +6 -0
- package/lib/utils.js +64 -1
- package/lib/utils.js.map +1 -1
- package/migrations/1736198527297_init.d.ts +3 -3
- package/migrations/1736198527297_init.js +4 -4
- package/migrations/1736198527297_init.js.map +1 -1
- package/migrations/1736199486472_addingNotAssignablePorts.d.ts +2 -3
- package/migrations/1736199486472_addingNotAssignablePorts.js +2 -3
- package/migrations/1736199486472_addingNotAssignablePorts.js.map +1 -1
- package/migrations/1736454437350_addFreePorts.d.ts +2 -3
- package/migrations/1736454437350_addFreePorts.js +2 -3
- package/migrations/1736454437350_addFreePorts.js.map +1 -1
- package/package.json +2 -2
- package/websql/fesm2022/{tnp-helpers.mjs → tnp-helpers-websql.mjs} +207 -58
- package/websql/fesm2022/tnp-helpers-websql.mjs.map +1 -0
- package/websql/package.json +1 -1
- package/websql/types/tnp-helpers-websql.d.ts +3205 -0
- package/browser/fesm2022/tnp-helpers.mjs.map +0 -1
- package/browser/index.d.ts +0 -6
- package/browser/lib/base/classes/base-bower-json.d.ts +0 -35
- package/browser/lib/base/classes/base-cli-worker/base-cli-worker-config.d.ts +0 -32
- package/browser/lib/base/classes/base-cli-worker/base-cli-worker-controller.d.ts +0 -15
- package/browser/lib/base/classes/base-cli-worker/base-cli-worker-database-config.d.ts +0 -10
- package/browser/lib/base/classes/base-cli-worker/base-cli-worker-terminal-ui.d.ts +0 -42
- package/browser/lib/base/classes/base-cli-worker/base-cli-worker.d.ts +0 -150
- package/browser/lib/base/classes/base-cli-worker/base-cli-worker.models.d.ts +0 -45
- package/browser/lib/base/classes/base-cli-worker/base-cli-worker.utils.d.ts +0 -6
- package/browser/lib/base/classes/base-cli-worker/index.d.ts +0 -8
- package/browser/lib/base/classes/base-command-line-feature.d.ts +0 -48
- package/browser/lib/base/classes/base-compiler-for-project.d.ts +0 -8
- package/browser/lib/base/classes/base-db.d.ts +0 -10
- package/browser/lib/base/classes/base-debounce-compiler-for-project.d.ts +0 -29
- package/browser/lib/base/classes/base-docker.d.ts +0 -13
- package/browser/lib/base/classes/base-feature-for-project.d.ts +0 -7
- package/browser/lib/base/classes/base-file-folders-operations.d.ts +0 -17
- package/browser/lib/base/classes/base-git.d.ts +0 -211
- package/browser/lib/base/classes/base-global-command-line.d.ts +0 -294
- package/browser/lib/base/classes/base-ignore-hide.d.ts +0 -47
- package/browser/lib/base/classes/base-java-jdk.d.ts +0 -9
- package/browser/lib/base/classes/base-json-file-reader.d.ts +0 -72
- package/browser/lib/base/classes/base-library-build.d.ts +0 -62
- package/browser/lib/base/classes/base-linked-projects.d.ts +0 -30
- package/browser/lib/base/classes/base-linter.d.ts +0 -12
- package/browser/lib/base/classes/base-node-modules.d.ts +0 -70
- package/browser/lib/base/classes/base-npm-helpers.d.ts +0 -53
- package/browser/lib/base/classes/base-package-json.d.ts +0 -122
- package/browser/lib/base/classes/base-process-manager.d.ts +0 -31
- package/browser/lib/base/classes/base-project-resolver.d.ts +0 -41
- package/browser/lib/base/classes/base-project.d.ts +0 -259
- package/browser/lib/base/classes/base-quick-fixes.d.ts +0 -16
- package/browser/lib/base/classes/base-release-process.d.ts +0 -75
- package/browser/lib/base/classes/base-static-pages.d.ts +0 -15
- package/browser/lib/base/classes/base-vscode.d.ts +0 -54
- package/browser/lib/base/classes/index.d.ts +0 -23
- package/browser/lib/base/commit-data.d.ts +0 -94
- package/browser/lib/base/config-database.d.ts +0 -15
- package/browser/lib/base/core-project.d.ts +0 -113
- package/browser/lib/base/gh-temp-code.d.ts +0 -17
- package/browser/lib/base/index.d.ts +0 -6
- package/browser/lib/base/linked-project.d.ts +0 -41
- package/browser/lib/base/project-database.d.ts +0 -13
- package/browser/lib/base/tcp-udp-ports/index.d.ts +0 -4
- package/browser/lib/base/tcp-udp-ports/ports.controller.d.ts +0 -29
- package/browser/lib/base/tcp-udp-ports/ports.entity.d.ts +0 -19
- package/browser/lib/base/tcp-udp-ports/tcp-udp-ports.context.d.ts +0 -20
- package/browser/lib/base/tcp-udp-ports/tcp-upd-ports-terminal-ui.d.ts +0 -20
- package/browser/lib/base/tcp-udp-ports/tcp-upd-ports.worker.d.ts +0 -9
- package/browser/lib/base/translate.d.ts +0 -228
- package/browser/lib/build-info._auto-generated_.d.ts +0 -21
- package/browser/lib/helpers/for-backend/helpers-file-folders.d.ts +0 -114
- package/browser/lib/helpers/for-backend/helpers-process.d.ts +0 -88
- package/browser/lib/helpers/for-browser/angular.helper.d.ts +0 -37
- package/browser/lib/helpers/for-browser/helpers-browser.d.ts +0 -12
- package/browser/lib/helpers/helpers-array-obj.d.ts +0 -32
- package/browser/lib/helpers/helpers-numbers.d.ts +0 -8
- package/browser/lib/helpers/helpers-strings-regexes.d.ts +0 -29
- package/browser/lib/helpers/helpers-strings.d.ts +0 -56
- package/browser/lib/helpers/helpers.d.ts +0 -84
- package/browser/lib/index.d.ts +0 -9
- package/browser/lib/models.d.ts +0 -178
- package/browser/lib/old/execute-command.d.ts +0 -15
- package/browser/lib/old/helpers.d.ts +0 -62
- package/browser/lib/old/models.d.ts +0 -81
- package/browser/lib/utils.d.ts +0 -272
- package/browser/migrations/1736198527297_init.d.ts +0 -19
- package/browser/migrations/1736199486472_addingNotAssignablePorts.d.ts +0 -11
- package/browser/migrations/1736454437350_addFreePorts.d.ts +0 -10
- package/browser/migrations/index.d.ts +0 -2
- package/browser/migrations/migrations_index._auto-generated_.d.ts +0 -12
- package/browser/public-api.d.ts +0 -2
- package/lib/base/classes/base-command-line-feature.backend.d.ts +0 -47
- package/lib/base/classes/base-command-line-feature.backend.js +0 -147
- package/lib/base/classes/base-command-line-feature.backend.js.map +0 -1
- package/lib/base/classes/base-global-command-line.backend.d.ts +0 -243
- package/lib/base/classes/base-global-command-line.backend.js +0 -2212
- package/lib/base/classes/base-global-command-line.backend.js.map +0 -1
- package/lib/base/classes/base-powershell.d.ts +0 -58
- package/lib/base/classes/base-powershell.js +0 -105
- package/lib/base/classes/base-powershell.js.map +0 -1
- package/lib/base/classes/base-process/base-process-api.service.d.ts +0 -7
- package/lib/base/classes/base-process/base-process.context.d.ts +0 -19
- package/lib/base/classes/base-process/base-process.context.js +0 -22
- package/lib/base/classes/base-process/base-process.context.js.map +0 -1
- package/lib/base/classes/base-process/base-process.controller.d.ts +0 -17
- package/lib/base/classes/base-process/base-process.controller.js +0 -91
- package/lib/base/classes/base-process/base-process.controller.js.map +0 -1
- package/lib/base/classes/base-process/base-process.d.ts +0 -8
- package/lib/base/classes/base-process/base-process.defaults-values.d.ts +0 -2
- package/lib/base/classes/base-process/base-process.defaults-values.js +0 -9
- package/lib/base/classes/base-process/base-process.defaults-values.js.map +0 -1
- package/lib/base/classes/base-process/base-process.js +0 -62
- package/lib/base/classes/base-process/base-process.js.map +0 -1
- package/lib/base/classes/base-process/base-process.models.d.ts +0 -6
- package/lib/base/classes/base-process/base-process.models.js +0 -3
- package/lib/base/classes/base-process/base-process.models.js.map +0 -1
- package/lib/base/classes/base-process/base-process.provider.d.ts +0 -16
- package/lib/base/classes/base-process/base-process.provider.js +0 -69
- package/lib/base/classes/base-process/base-process.provider.js.map +0 -1
- package/lib/base/classes/base-process/base-process.repository copy.d.ts +0 -8
- package/lib/base/classes/base-process/base-process.repository copy.js +0 -32
- package/lib/base/classes/base-process/base-process.repository copy.js.map +0 -1
- package/lib/base/classes/base-process/base-process.repository.d.ts +0 -8
- package/lib/base/classes/base-process/base-process.repository.js +0 -32
- package/lib/base/classes/base-process/base-process.repository.js.map +0 -1
- package/lib/base/classes/base-process/base-process.terminal-ui.d.ts +0 -11
- package/lib/base/classes/base-process/base-process.terminal-ui.js +0 -54
- package/lib/base/classes/base-process/base-process.terminal-ui.js.map +0 -1
- package/lib/base/classes/base-process/base-process.worker.d.ts +0 -16
- package/lib/base/classes/base-process/base-process.worker.js +0 -29
- package/lib/base/classes/base-process/base-process.worker.js.map +0 -1
- package/lib/base/classes/base-process/index.d.ts +0 -1
- package/lib/base/classes/base-process/index.js +0 -22
- package/lib/base/classes/base-process/index.js.map +0 -1
- package/lib/base/classes/base-process/processes.repository.d.ts +0 -0
- package/lib/base/classes/base-process/processes.repository.js +0 -5
- package/lib/base/classes/base-process/processes.repository.js.map +0 -1
- package/lib/env-backend._auto-generated_.d.ts +0 -34
- package/lib/env-backend._auto-generated_.js +0 -38
- package/lib/env-backend._auto-generated_.js.map +0 -1
- package/lib/env-browser._auto-generated_.d.ts +0 -34
- package/lib/env-browser._auto-generated_.js +0 -38
- package/lib/env-browser._auto-generated_.js.map +0 -1
- package/lib/env.backend.d.ts +0 -34
- package/lib/env.backend.js +0 -40
- package/lib/env.backend.js.map +0 -1
- package/lib/env.browser.d.ts +0 -34
- package/lib/helpers/for-backend/helpers-dependencies.backend.d.ts +0 -2
- package/lib/helpers/for-backend/helpers-dependencies.backend.js +0 -7
- package/lib/helpers/for-backend/helpers-dependencies.backend.js.map +0 -1
- package/lib/helpers/for-backend/helpers-network.backend.d.ts +0 -9
- package/lib/helpers/for-backend/helpers-network.backend.js +0 -44
- package/lib/helpers/for-backend/helpers-network.backend.js.map +0 -1
- package/lib/validators/validators-firedev.d.ts +0 -3
- package/lib/validators/validators-firedev.js +0 -34
- package/lib/validators/validators-firedev.js.map +0 -1
- package/lib/validators/validators-git.d.ts +0 -3
- package/lib/validators/validators-git.js +0 -13
- package/lib/validators/validators-git.js.map +0 -1
- package/lib/validators/validators-network.d.ts +0 -3
- package/lib/validators/validators-network.js +0 -19
- package/lib/validators/validators-network.js.map +0 -1
- package/lib/validators/validators.d.ts +0 -6
- package/lib/validators/validators.js +0 -11
- package/lib/validators/validators.js.map +0 -1
- package/tmp-environment.json +0 -33
- package/websql/fesm2022/tnp-helpers.mjs.map +0 -1
- package/websql/index.d.ts +0 -6
- package/websql/lib/base/classes/base-bower-json.d.ts +0 -35
- package/websql/lib/base/classes/base-cli-worker/base-cli-worker-config.d.ts +0 -32
- package/websql/lib/base/classes/base-cli-worker/base-cli-worker-controller.d.ts +0 -15
- package/websql/lib/base/classes/base-cli-worker/base-cli-worker-database-config.d.ts +0 -10
- package/websql/lib/base/classes/base-cli-worker/base-cli-worker-terminal-ui.d.ts +0 -42
- package/websql/lib/base/classes/base-cli-worker/base-cli-worker.d.ts +0 -150
- package/websql/lib/base/classes/base-cli-worker/base-cli-worker.models.d.ts +0 -45
- package/websql/lib/base/classes/base-cli-worker/base-cli-worker.utils.d.ts +0 -6
- package/websql/lib/base/classes/base-cli-worker/index.d.ts +0 -8
- package/websql/lib/base/classes/base-command-line-feature.d.ts +0 -48
- package/websql/lib/base/classes/base-compiler-for-project.d.ts +0 -8
- package/websql/lib/base/classes/base-db.d.ts +0 -10
- package/websql/lib/base/classes/base-debounce-compiler-for-project.d.ts +0 -29
- package/websql/lib/base/classes/base-docker.d.ts +0 -13
- package/websql/lib/base/classes/base-feature-for-project.d.ts +0 -7
- package/websql/lib/base/classes/base-file-folders-operations.d.ts +0 -17
- package/websql/lib/base/classes/base-git.d.ts +0 -211
- package/websql/lib/base/classes/base-global-command-line.d.ts +0 -294
- package/websql/lib/base/classes/base-ignore-hide.d.ts +0 -47
- package/websql/lib/base/classes/base-java-jdk.d.ts +0 -9
- package/websql/lib/base/classes/base-json-file-reader.d.ts +0 -72
- package/websql/lib/base/classes/base-library-build.d.ts +0 -62
- package/websql/lib/base/classes/base-linked-projects.d.ts +0 -30
- package/websql/lib/base/classes/base-linter.d.ts +0 -12
- package/websql/lib/base/classes/base-node-modules.d.ts +0 -70
- package/websql/lib/base/classes/base-npm-helpers.d.ts +0 -53
- package/websql/lib/base/classes/base-package-json.d.ts +0 -122
- package/websql/lib/base/classes/base-process-manager.d.ts +0 -31
- package/websql/lib/base/classes/base-project-resolver.d.ts +0 -41
- package/websql/lib/base/classes/base-project.d.ts +0 -259
- package/websql/lib/base/classes/base-quick-fixes.d.ts +0 -16
- package/websql/lib/base/classes/base-release-process.d.ts +0 -75
- package/websql/lib/base/classes/base-static-pages.d.ts +0 -15
- package/websql/lib/base/classes/base-vscode.d.ts +0 -54
- package/websql/lib/base/classes/index.d.ts +0 -23
- package/websql/lib/base/commit-data.d.ts +0 -94
- package/websql/lib/base/config-database.d.ts +0 -15
- package/websql/lib/base/core-project.d.ts +0 -113
- package/websql/lib/base/gh-temp-code.d.ts +0 -17
- package/websql/lib/base/index.d.ts +0 -6
- package/websql/lib/base/linked-project.d.ts +0 -41
- package/websql/lib/base/project-database.d.ts +0 -13
- package/websql/lib/base/tcp-udp-ports/index.d.ts +0 -4
- package/websql/lib/base/tcp-udp-ports/ports.controller.d.ts +0 -29
- package/websql/lib/base/tcp-udp-ports/ports.entity.d.ts +0 -19
- package/websql/lib/base/tcp-udp-ports/tcp-udp-ports.context.d.ts +0 -20
- package/websql/lib/base/tcp-udp-ports/tcp-upd-ports-terminal-ui.d.ts +0 -20
- package/websql/lib/base/tcp-udp-ports/tcp-upd-ports.worker.d.ts +0 -9
- package/websql/lib/base/translate.d.ts +0 -228
- package/websql/lib/build-info._auto-generated_.d.ts +0 -21
- package/websql/lib/helpers/for-backend/helpers-file-folders.d.ts +0 -114
- package/websql/lib/helpers/for-backend/helpers-process.d.ts +0 -88
- package/websql/lib/helpers/for-browser/angular.helper.d.ts +0 -37
- package/websql/lib/helpers/for-browser/helpers-browser.d.ts +0 -12
- package/websql/lib/helpers/helpers-array-obj.d.ts +0 -32
- package/websql/lib/helpers/helpers-numbers.d.ts +0 -8
- package/websql/lib/helpers/helpers-strings-regexes.d.ts +0 -29
- package/websql/lib/helpers/helpers-strings.d.ts +0 -56
- package/websql/lib/helpers/helpers.d.ts +0 -84
- package/websql/lib/index.d.ts +0 -9
- package/websql/lib/models.d.ts +0 -178
- package/websql/lib/old/execute-command.d.ts +0 -15
- package/websql/lib/old/helpers.d.ts +0 -62
- package/websql/lib/old/models.d.ts +0 -81
- package/websql/lib/utils.d.ts +0 -272
- package/websql/migrations/1736198527297_init.d.ts +0 -19
- package/websql/migrations/1736199486472_addingNotAssignablePorts.d.ts +0 -11
- package/websql/migrations/1736454437350_addFreePorts.d.ts +0 -10
- package/websql/migrations/index.d.ts +0 -2
- package/websql/migrations/migrations_index._auto-generated_.d.ts +0 -12
- package/websql/public-api.d.ts +0 -2
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { LinkedPorjectsConfig, LinkedProject } from '../../index';
|
|
3
|
-
import { BaseFeatureForProject } from './base-feature-for-project';
|
|
4
|
-
import type { BaseProject } from './base-project';
|
|
5
|
-
export declare class BaseLinkedProjects<PROJECT extends BaseProject = any> extends BaseFeatureForProject<PROJECT> {
|
|
6
|
-
private cache;
|
|
7
|
-
get embeddedProject(): PROJECT;
|
|
8
|
-
get projectsDbLocation(): any;
|
|
9
|
-
saveLocationToDB(): Promise<any>;
|
|
10
|
-
saveAllLinkedProjectsToDB(): Promise<void>;
|
|
11
|
-
addLinkedProject(linkedProj: LinkedProject | string, options?: {
|
|
12
|
-
skipFormat?: boolean;
|
|
13
|
-
}): any;
|
|
14
|
-
addLinkedProjects(linkedProjs: LinkedProject[], options?: {
|
|
15
|
-
skipFormat?: boolean;
|
|
16
|
-
}): any;
|
|
17
|
-
setLinkedProjectsConfig(linkedPorjectsConfig: Partial<LinkedPorjectsConfig>, options?: {
|
|
18
|
-
skipFormat?: boolean;
|
|
19
|
-
}): any;
|
|
20
|
-
formatConfigFile(): any;
|
|
21
|
-
private get linkedProjectsConfigPath();
|
|
22
|
-
private get linkedProjectsConfigTempPath();
|
|
23
|
-
protected recreateLinkedProjectsConfig(): any;
|
|
24
|
-
getLinkedProjectsConfig(): LinkedPorjectsConfig;
|
|
25
|
-
get linkedProjects(): LinkedProject[];
|
|
26
|
-
get detectedLinkedProjects(): LinkedProject[];
|
|
27
|
-
get linkedProjectsPrefix(): string;
|
|
28
|
-
resetLinkedProjectsOnlyToCoreBranches(): boolean;
|
|
29
|
-
cloneNonexistedLinkedProjects(setOrigin: 'ssh' | 'http'): Promise<any>;
|
|
30
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { BaseFeatureForProject } from './base-feature-for-project';
|
|
3
|
-
import type { BaseProject } from './base-project';
|
|
4
|
-
export declare class BaseLinter<PROJECT extends BaseProject = any> extends BaseFeatureForProject<PROJECT> {
|
|
5
|
-
init(): Promise<void>;
|
|
6
|
-
getLintFiles(): string[];
|
|
7
|
-
getConfigEditorconfig(): string;
|
|
8
|
-
getConfigPrettierrc(): object;
|
|
9
|
-
getConfigPrettierignore(): string;
|
|
10
|
-
isEnableForProject(): boolean;
|
|
11
|
-
writeLintFiles(): void;
|
|
12
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { CoreModels } from 'tnp-core/websql';
|
|
3
|
-
import type { BaseNpmHelpers } from '../../../lib';
|
|
4
|
-
import type { BaseProject } from './base-project';
|
|
5
|
-
export type DedupePackage = string | {
|
|
6
|
-
package: string;
|
|
7
|
-
excludeFrom?: string[];
|
|
8
|
-
includeOnlyIn?: string[];
|
|
9
|
-
};
|
|
10
|
-
export declare class BaseNodeModules<NPM_HELPERS extends BaseNpmHelpers = BaseNpmHelpers> {
|
|
11
|
-
/**
|
|
12
|
-
* my-path/node_modules
|
|
13
|
-
*/
|
|
14
|
-
protected cwd: string;
|
|
15
|
-
protected npmHelpers: NPM_HELPERS;
|
|
16
|
-
protected _npmHelpersType: NPM_HELPERS;
|
|
17
|
-
constructor(
|
|
18
|
-
/**
|
|
19
|
-
* my-path/node_modules
|
|
20
|
-
*/
|
|
21
|
-
cwd: string, npmHelpers: NPM_HELPERS);
|
|
22
|
-
/**
|
|
23
|
-
* cwd + node_modules
|
|
24
|
-
*/
|
|
25
|
-
get path(): string;
|
|
26
|
-
/**
|
|
27
|
-
* Path to package inside node_modules folder
|
|
28
|
-
* @example <project-path>/node_modules/<package-name>
|
|
29
|
-
*/
|
|
30
|
-
pathFor(packageName: string | string[]): string;
|
|
31
|
-
/**
|
|
32
|
-
* real path of node_modules
|
|
33
|
-
* if node_modules is a link
|
|
34
|
-
* it will return real path.
|
|
35
|
-
* if node_modules is folder = path
|
|
36
|
-
*/
|
|
37
|
-
get realPath(): string;
|
|
38
|
-
protected preventWrongLinkDestination(dest: string): string;
|
|
39
|
-
linkToProject(project: Partial<BaseProject>): any;
|
|
40
|
-
copyToProject(project: BaseProject): void;
|
|
41
|
-
linkToLocation(location: string): void;
|
|
42
|
-
makeSureInstalled(options?: Omit<CoreModels.NpmInstallOptions, 'pkg'>): Promise<void>;
|
|
43
|
-
remove(options?: {
|
|
44
|
-
skipQuestion?: boolean;
|
|
45
|
-
}): Promise<void>;
|
|
46
|
-
removePackage(packageInside: string): void;
|
|
47
|
-
reinstall(options?: Omit<CoreModels.NpmInstallOptions, 'pkg'>): Promise<any>;
|
|
48
|
-
get isLink(): boolean;
|
|
49
|
-
unlinkNodeModulesWhenLinked(): any;
|
|
50
|
-
get empty(): any;
|
|
51
|
-
/**
|
|
52
|
-
* @returns true if node_modules folder is empty
|
|
53
|
-
* DEEP CHECK - also if node_modules is a link
|
|
54
|
-
* and is not existent
|
|
55
|
-
*/
|
|
56
|
-
isEmpty(): any;
|
|
57
|
-
/**
|
|
58
|
-
* Prepare command for npm install
|
|
59
|
-
* (or yarn install)
|
|
60
|
-
*/
|
|
61
|
-
prepareCommand(options: CoreModels.NpmInstallOptions, cwd?: string): Promise<string>;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @param rootDir
|
|
65
|
-
* @param packageName
|
|
66
|
-
* @returns absolute paths to package dirs
|
|
67
|
-
*/
|
|
68
|
-
private findPackageDirs;
|
|
69
|
-
dedupePackages(packagesConfig?: DedupePackage[], countOnly?: boolean, fake?: boolean): void;
|
|
70
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { CoreModels } from 'tnp-core/websql';
|
|
3
|
-
import { BaseBowerJson } from './base-bower-json';
|
|
4
|
-
import { BaseFeatureForProject } from './base-feature-for-project';
|
|
5
|
-
import { BaseNodeModules } from './base-node-modules';
|
|
6
|
-
import { BasePackageJson } from './base-package-json';
|
|
7
|
-
import type { BaseProject } from './base-project';
|
|
8
|
-
export declare class BaseNpmHelpers<PROJECT extends BaseProject = BaseProject> extends BaseFeatureForProject<PROJECT> {
|
|
9
|
-
readonly packageJson: BasePackageJson;
|
|
10
|
-
readonly _packageJsonType: typeof BasePackageJson;
|
|
11
|
-
private readonly _packageJsonTypeOriginal;
|
|
12
|
-
readonly nodeModules: BaseNodeModules;
|
|
13
|
-
readonly _nodeModulesType: typeof BaseNodeModules;
|
|
14
|
-
private readonly __nodeModulesTypeOriginal;
|
|
15
|
-
readonly bowerJson: BaseBowerJson;
|
|
16
|
-
constructor(project: PROJECT);
|
|
17
|
-
preferYarnOverNpm(): boolean;
|
|
18
|
-
resetPackageLockJson(): Promise<any>;
|
|
19
|
-
startNpmTask(taskName: string, additionalArguments?: string | object): any;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @param registry without specified registr is checking npm registry
|
|
23
|
-
* @returns
|
|
24
|
-
*/
|
|
25
|
-
isLoggedInToRegistry(registry?: string): Promise<boolean>;
|
|
26
|
-
/**
|
|
27
|
-
* Prompt the user to log in to a specific npm registry.
|
|
28
|
-
* @param {string} [registry] - Optional npm registry URL.
|
|
29
|
-
* @returns {Promise<void>} - A promise that resolves when the login process completes.
|
|
30
|
-
*/
|
|
31
|
-
loginToRegistry(registry?: string): Promise<void>;
|
|
32
|
-
makeSureLoggedInToNpmRegistry(registry?: string): Promise<void>;
|
|
33
|
-
shouldReleaseMessage(options: {
|
|
34
|
-
releaseVersionBumpType: CoreModels.ReleaseVersionType;
|
|
35
|
-
versionToUse?: string;
|
|
36
|
-
children?: BaseProject[];
|
|
37
|
-
whatToRelease: {
|
|
38
|
-
itself: boolean;
|
|
39
|
-
children: boolean;
|
|
40
|
-
};
|
|
41
|
-
skipQuestionToUser?: boolean;
|
|
42
|
-
messagePrefix?: string;
|
|
43
|
-
}): Promise<boolean>;
|
|
44
|
-
/**
|
|
45
|
-
* @param registry when not specified, it will use the default npm registry
|
|
46
|
-
*/
|
|
47
|
-
publishToNpmRegistry(options?: {
|
|
48
|
-
registry?: string;
|
|
49
|
-
}): Promise<void>;
|
|
50
|
-
getPackageVersionFromNpmRegistry(packageName: string, options?: {
|
|
51
|
-
registry?: string;
|
|
52
|
-
}): Promise<string | undefined>;
|
|
53
|
-
}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { CoreModels } from 'tnp-core/websql';
|
|
3
|
-
import { PackageJson as PackageJsonBase } from 'type-fest';
|
|
4
|
-
import { BaseJsonFileReader, BaseJsonFileReaderOptions } from './base-json-file-reader';
|
|
5
|
-
export type PackageJson = PackageJsonBase & {
|
|
6
|
-
lastBuildTagHash?: string;
|
|
7
|
-
publisher?: string;
|
|
8
|
-
displayName?: string;
|
|
9
|
-
};
|
|
10
|
-
export type PackageJsonDependencyObj = 'dependencies' | 'devDependencies' | 'peerDependencies' | 'resolutions';
|
|
11
|
-
export declare const PackageJsonDependencyObjArr: PackageJsonDependencyObj[];
|
|
12
|
-
export declare class BasePackageJson extends BaseJsonFileReader<PackageJson> {
|
|
13
|
-
constructor(options: Omit<BaseJsonFileReaderOptions<PackageJson>, 'fileName'>);
|
|
14
|
-
/**
|
|
15
|
-
* 'dependencies'
|
|
16
|
-
* 'devDependencies'
|
|
17
|
-
* 'peerDependencies'
|
|
18
|
-
* 'resolutions';
|
|
19
|
-
* and whatever is in package.json to npm install
|
|
20
|
-
*/
|
|
21
|
-
get dependenciesTypesArray(): PackageJsonDependencyObj[];
|
|
22
|
-
get name(): string;
|
|
23
|
-
setName(name: string): Promise<void>;
|
|
24
|
-
/**
|
|
25
|
-
* devDependencies dependencies
|
|
26
|
-
*/
|
|
27
|
-
get devDependencies(): PackageJson['devDependencies'];
|
|
28
|
-
/**
|
|
29
|
-
* resolutions dependencies
|
|
30
|
-
*/
|
|
31
|
-
get resolutions(): PackageJson['resolutions'];
|
|
32
|
-
/**
|
|
33
|
-
* npm dependencies from package.json
|
|
34
|
-
*/
|
|
35
|
-
get dependencies(): PackageJson['dependencies'];
|
|
36
|
-
get optionalDependencies(): PackageJson['optionalDependencies'];
|
|
37
|
-
get description(): string;
|
|
38
|
-
get displayName(): string;
|
|
39
|
-
get publisher(): string;
|
|
40
|
-
get contributes(): PackageJson['contributes'];
|
|
41
|
-
get repository(): PackageJson['repository'];
|
|
42
|
-
setRepository(repository: PackageJson['repository']): void;
|
|
43
|
-
/**
|
|
44
|
-
* set the WHOLE dependencies object
|
|
45
|
-
* THIS WILL NOT MERGE -> IT WILL REPLACE WHOLE DEPENDENCIES OBJECT
|
|
46
|
-
*/
|
|
47
|
-
setDependencies(dependencies: PackageJson['dependencies']): void;
|
|
48
|
-
/**
|
|
49
|
-
* set the WHOLE dependencies object
|
|
50
|
-
* THIS WILL NOT MERGE -> IT WILL REPLACE WHOLE DEPENDENCIES OBJECT
|
|
51
|
-
*/
|
|
52
|
-
setDevDependencies(devDependencies: PackageJson['devDependencies']): void;
|
|
53
|
-
/**
|
|
54
|
-
* peerDependencies dependencies
|
|
55
|
-
*/
|
|
56
|
-
get peerDependencies(): PackageJson['peerDependencies'];
|
|
57
|
-
/**
|
|
58
|
-
* set the WHOLE peerDependencies object
|
|
59
|
-
* THIS WILL NOT MERGE -> IT WILL REPLACE WHOLE PEER DEPENDENCIES OBJECT
|
|
60
|
-
*/
|
|
61
|
-
setPeerDependencies(peerDependencies: PackageJson['peerDependencies']): void;
|
|
62
|
-
setOptionalDependencies(optionalDependencies: PackageJson['optionalDependencies']): void;
|
|
63
|
-
removeDevDependencies(): void;
|
|
64
|
-
/**
|
|
65
|
-
* @returns object witl all deps from current project package json
|
|
66
|
-
*/
|
|
67
|
-
get allDependencies(): {
|
|
68
|
-
[packageName: string]: string;
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* @returns object witl all deps from package json
|
|
72
|
-
*/
|
|
73
|
-
protected allDepsFromPackageJson(packageJson: PackageJson): any;
|
|
74
|
-
/**
|
|
75
|
-
* version from package.json -> property version
|
|
76
|
-
*/
|
|
77
|
-
get version(): string;
|
|
78
|
-
setVersion(version: string): void;
|
|
79
|
-
/**
|
|
80
|
-
* bin with cli config from package.json
|
|
81
|
-
*/
|
|
82
|
-
get bin(): Partial<Record<string, string>>;
|
|
83
|
-
set bin(value: Partial<Record<string, string>>);
|
|
84
|
-
get engines(): PackageJson['engines'];
|
|
85
|
-
setEngines(engines: PackageJson['engines']): Promise<void>;
|
|
86
|
-
get homepage(): PackageJson['homepage'];
|
|
87
|
-
setHomepage(homepage: PackageJson['homepage']): Promise<void>;
|
|
88
|
-
get versionWithPatchPlusOne(): string;
|
|
89
|
-
get versionWithMinorPlusOneAndPatchZero(): string;
|
|
90
|
-
get versionWithMajorPlusOneAndMinorZeroAndPatchZero(): string;
|
|
91
|
-
get versionPathAsNumber(): number;
|
|
92
|
-
/**
|
|
93
|
-
* Major Version from package.json
|
|
94
|
-
*/
|
|
95
|
-
get majorVersion(): number;
|
|
96
|
-
/**
|
|
97
|
-
* Minor Version from package.json
|
|
98
|
-
*/
|
|
99
|
-
get minorVersion(): number;
|
|
100
|
-
/**
|
|
101
|
-
* @deprecated TODO not usefull ?
|
|
102
|
-
*/
|
|
103
|
-
getVersionAsNumber(releaseType: CoreModels.ReleaseVersionType): number;
|
|
104
|
-
bumpPatchVersion(): Promise<any>;
|
|
105
|
-
getBumpedVersionFor(releaseType: CoreModels.ReleaseVersionType): string;
|
|
106
|
-
updateDepsFrom(locations: string[]): any;
|
|
107
|
-
/**
|
|
108
|
-
* this will NOT SET dependency if
|
|
109
|
-
* dependency name is not in package.json
|
|
110
|
-
*/
|
|
111
|
-
updateDependency({ packageName, version, }: {
|
|
112
|
-
packageName: string;
|
|
113
|
-
version: string | null;
|
|
114
|
-
}): void;
|
|
115
|
-
get isPrivate(): boolean;
|
|
116
|
-
setIsPrivate(value: boolean): any;
|
|
117
|
-
get sideEffects(): boolean;
|
|
118
|
-
setMainProperty(main: string, purpose?: string): Promise<void>;
|
|
119
|
-
setBuildHash(hash: string): void;
|
|
120
|
-
getBuildHash(): string;
|
|
121
|
-
copyTo(location: string | string[]): void;
|
|
122
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { CommandProcess, ProcessManagerConfig } from '../../models';
|
|
3
|
-
import { BaseFeatureForProject } from './base-feature-for-project';
|
|
4
|
-
import { BaseProject } from './base-project';
|
|
5
|
-
export { CommandConfig } from '../../models';
|
|
6
|
-
export declare class BaseProcessManger<PROJECT extends BaseProject<any, any> = BaseProject<any, any>> extends BaseFeatureForProject<PROJECT> {
|
|
7
|
-
private initialOptions;
|
|
8
|
-
private allProcesses;
|
|
9
|
-
private selectedProcesses;
|
|
10
|
-
outputBuffer: string[];
|
|
11
|
-
startedProcesses: Set<CommandProcess>;
|
|
12
|
-
watch: boolean;
|
|
13
|
-
private _showLogs;
|
|
14
|
-
set showLogs(value: boolean);
|
|
15
|
-
get showLogs(): boolean;
|
|
16
|
-
/**
|
|
17
|
-
* special config for Helpers.executer
|
|
18
|
-
*/
|
|
19
|
-
hideOutput: {
|
|
20
|
-
stderr: boolean;
|
|
21
|
-
stdout: boolean;
|
|
22
|
-
acceptAllExitCodeAsSuccess: boolean;
|
|
23
|
-
};
|
|
24
|
-
constructor(project: PROJECT);
|
|
25
|
-
init<PROJECT = BaseProject<any, any>>(initialOptions: ProcessManagerConfig<PROJECT>): Promise<void>;
|
|
26
|
-
private showOutput;
|
|
27
|
-
private killOrBuildMenu;
|
|
28
|
-
makeSureSelectedProcessesAreRunning(): Promise<void>;
|
|
29
|
-
private startProcessWithDependencies;
|
|
30
|
-
private buildMenu;
|
|
31
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { ConfigDatabase } from '../config-database';
|
|
3
|
-
import { ProjectDatabase } from '../project-database';
|
|
4
|
-
import { PortsWorker } from '../tcp-udp-ports';
|
|
5
|
-
import { BaseProject } from './base-project';
|
|
6
|
-
export declare class BaseProjectResolver<PROJECT extends Partial<BaseProject> = any> {
|
|
7
|
-
protected readonly classFn: any;
|
|
8
|
-
readonly cliToolName: string;
|
|
9
|
-
configDb: ConfigDatabase;
|
|
10
|
-
projectsDb: ProjectDatabase;
|
|
11
|
-
readonly portsWorker: PortsWorker;
|
|
12
|
-
protected readonly NPM_PROJECT_KEY = "npm";
|
|
13
|
-
protected projects: PROJECT[];
|
|
14
|
-
/**
|
|
15
|
-
* To speed up checking folder I am keeping paths for already checked folder
|
|
16
|
-
* This may break things that are creating new projects
|
|
17
|
-
*/
|
|
18
|
-
protected emptyLocations: string[];
|
|
19
|
-
constructor(classFn: any, cliToolName: string);
|
|
20
|
-
get allowedTypes(): string[];
|
|
21
|
-
/**
|
|
22
|
-
* project from process.cwd()
|
|
23
|
-
*/
|
|
24
|
-
get Current(): PROJECT;
|
|
25
|
-
/**
|
|
26
|
-
* override this
|
|
27
|
-
*/
|
|
28
|
-
typeFrom(location: string, recrusiveCall?: boolean): string;
|
|
29
|
-
From(locationOfProject: string | string[], options?: any): PROJECT;
|
|
30
|
-
nearestTo(absoluteLocation: string | string[], options?: {
|
|
31
|
-
type?: string | string[];
|
|
32
|
-
findGitRoot?: boolean;
|
|
33
|
-
onlyOutSideNodeModules?: boolean;
|
|
34
|
-
}): PROJECT;
|
|
35
|
-
unload(projectOrLocationOfProject: PROJECT | string): void;
|
|
36
|
-
remove(project: PROJECT): void;
|
|
37
|
-
add(project: PROJECT): void;
|
|
38
|
-
allProjectFrom(absoluteLocation: string, stopOnCwd?: string): any;
|
|
39
|
-
allProjectsFromFolder(folderLocation: string): PROJECT[];
|
|
40
|
-
sortGroupOfProject<T extends BaseProject<any, any> = BaseProject<any, any>>(projects: T[], resoveDepsArray: (proj: T) => string[], projNameToCompare: (proj: T) => string): T[];
|
|
41
|
-
}
|
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { CoreModels } from 'tnp-core/websql';
|
|
3
|
-
import { CoreProject } from '../../index';
|
|
4
|
-
import { BaseProjectType } from '../../models';
|
|
5
|
-
import { BaseDocker } from './base-docker';
|
|
6
|
-
import { BaseFileFoldersOperations } from './base-file-folders-operations';
|
|
7
|
-
import { BaseGit } from './base-git';
|
|
8
|
-
import { BaseIgnoreHideHelpers } from './base-ignore-hide';
|
|
9
|
-
import { BaseJavaJdk } from './base-java-jdk';
|
|
10
|
-
import type { BaseLibraryBuild } from './base-library-build';
|
|
11
|
-
import { BaseLinkedProjects } from './base-linked-projects';
|
|
12
|
-
import { BaseLinter } from './base-linter';
|
|
13
|
-
import { BaseNpmHelpers } from './base-npm-helpers';
|
|
14
|
-
import { BaseProjectResolver } from './base-project-resolver';
|
|
15
|
-
import { BaseQuickFixes } from './base-quick-fixes';
|
|
16
|
-
import { BaseReleaseProcess } from './base-release-process';
|
|
17
|
-
import { BaseStaticPages } from './base-static-pages';
|
|
18
|
-
import { BaseVscodeHelpers } from './base-vscode';
|
|
19
|
-
export declare abstract class BaseProject<PROJECT extends BaseProject<any, any> = BaseProject<any, any>, TYPE = BaseProjectType> {
|
|
20
|
-
static ins: BaseProjectResolver<BaseProject<BaseProject<any, any>, CoreModels.BaseProjectType>>;
|
|
21
|
-
cache: any;
|
|
22
|
-
static cache: any;
|
|
23
|
-
get globalCache(): any;
|
|
24
|
-
readonly type: TYPE | string;
|
|
25
|
-
/**
|
|
26
|
-
* resolve instance
|
|
27
|
-
*/
|
|
28
|
-
abstract readonly ins: BaseProjectResolver<PROJECT>;
|
|
29
|
-
/**
|
|
30
|
-
* Unique free port for project instance
|
|
31
|
-
* only available after executing *this.assignFreePort()*
|
|
32
|
-
*/
|
|
33
|
-
readonly port: string;
|
|
34
|
-
libraryBuild?: BaseLibraryBuild<BaseProject>;
|
|
35
|
-
npmHelpers?: BaseNpmHelpers;
|
|
36
|
-
fileFoldersOperations?: BaseFileFoldersOperations;
|
|
37
|
-
get packageJson(): import("./base-package-json").BasePackageJson;
|
|
38
|
-
get nodeModules(): import("./base-node-modules").BaseNodeModules<BaseNpmHelpers<BaseProject<BaseProject<any, any>, CoreModels.BaseProjectType>>>;
|
|
39
|
-
linkedProjects?: BaseLinkedProjects;
|
|
40
|
-
vsCodeHelpers?: BaseVscodeHelpers;
|
|
41
|
-
releaseProcess?: BaseReleaseProcess;
|
|
42
|
-
git?: BaseGit;
|
|
43
|
-
linter?: BaseLinter;
|
|
44
|
-
ignoreHide: BaseIgnoreHideHelpers;
|
|
45
|
-
quickFixes?: BaseQuickFixes;
|
|
46
|
-
staticPages?: BaseStaticPages;
|
|
47
|
-
javaJdk?: BaseJavaJdk;
|
|
48
|
-
docker?: BaseDocker;
|
|
49
|
-
private __location;
|
|
50
|
-
get location(): string;
|
|
51
|
-
set location(v: string);
|
|
52
|
-
/**
|
|
53
|
-
* TODO move this to framework
|
|
54
|
-
* Linked projects are actual inside repo
|
|
55
|
-
* not in separated folders/git sub repos
|
|
56
|
-
*/
|
|
57
|
-
get isMonorepo(): boolean;
|
|
58
|
-
protected orderCoreProjects(coreProjects: CoreProject[]): CoreProject[];
|
|
59
|
-
get core(): CoreProject;
|
|
60
|
-
get linkedProjectsExisted(): PROJECT[];
|
|
61
|
-
setType(type: TYPE): void;
|
|
62
|
-
typeIs(...types: TYPE[]): boolean;
|
|
63
|
-
typeIsNot(...types: TYPE[]): boolean;
|
|
64
|
-
/**
|
|
65
|
-
* project folder basename
|
|
66
|
-
*/
|
|
67
|
-
get basename(): string;
|
|
68
|
-
/**
|
|
69
|
-
* project folder parent basename
|
|
70
|
-
*/
|
|
71
|
-
get parentBasename(): string;
|
|
72
|
-
/**
|
|
73
|
-
* name from package.json
|
|
74
|
-
*/
|
|
75
|
-
get name(): string;
|
|
76
|
-
get nameForCli(): string;
|
|
77
|
-
get nameForNpmPackage(): string;
|
|
78
|
-
get nameFromPomXML(): string;
|
|
79
|
-
protected getFoldersForPossibleProjectChildren(): string[];
|
|
80
|
-
protected getAllChildren(): any;
|
|
81
|
-
/**
|
|
82
|
-
* alias to getAllChildren
|
|
83
|
-
*/
|
|
84
|
-
get children(): PROJECT[];
|
|
85
|
-
getChildBy(nameOrBasename: string, errors?: boolean): PROJECT;
|
|
86
|
-
get parent(): PROJECT;
|
|
87
|
-
get nearestParent(): PROJECT;
|
|
88
|
-
get grandpa(): PROJECT;
|
|
89
|
-
get allNpmPackagesNames(): string[];
|
|
90
|
-
get titleBarName(): string;
|
|
91
|
-
get genericName(): any;
|
|
92
|
-
private checkAndBoldenPath;
|
|
93
|
-
/**
|
|
94
|
-
* same has project.hasFile();
|
|
95
|
-
*/
|
|
96
|
-
pathExists(relativePath: string | string[]): boolean;
|
|
97
|
-
/**
|
|
98
|
-
* same as project.pathExists();
|
|
99
|
-
*/
|
|
100
|
-
hasFile(relativePath: string | string[]): boolean;
|
|
101
|
-
hasFolder(relativePath: string | string[]): boolean;
|
|
102
|
-
/**
|
|
103
|
-
* Function will return relative path from project location
|
|
104
|
-
*/
|
|
105
|
-
relative(absoultePath: string): string;
|
|
106
|
-
/**
|
|
107
|
-
*
|
|
108
|
-
* @param relativePath
|
|
109
|
-
* @param override it will remove ex
|
|
110
|
-
*/
|
|
111
|
-
createFolder(relativePath: string | string[], options?: {
|
|
112
|
-
override?: boolean;
|
|
113
|
-
}): any;
|
|
114
|
-
formatFile(specificRelativePath: string | string[]): any;
|
|
115
|
-
formatAllFiles(): any;
|
|
116
|
-
/**
|
|
117
|
-
* same as project.pathhasFileExists();
|
|
118
|
-
* but with path.resolve
|
|
119
|
-
*/
|
|
120
|
-
containsFile(fileRelativeToProjectPath: string): any;
|
|
121
|
-
/**
|
|
122
|
-
* absolute path:
|
|
123
|
-
* concated project location with relative path
|
|
124
|
-
*/
|
|
125
|
-
pathFor(relativePath: string | string[]): any;
|
|
126
|
-
writeJson(relativePath: string, json: object): any;
|
|
127
|
-
writeJsonC(relativePath: string, json: object): any;
|
|
128
|
-
/**
|
|
129
|
-
* @deprecated us execute instead
|
|
130
|
-
* use output from or more preciese crafted api
|
|
131
|
-
*/
|
|
132
|
-
run(command: string, options?: Omit<CoreModels.RunOptions, 'cwd'>): {
|
|
133
|
-
sync(): any;
|
|
134
|
-
async(detach?: boolean, mockFun?: (stdoutCallback: (dataForStdout: any) => any, stdErrcCallback: (dataForStder: any) => any, shouldProcesBeDead?: () => boolean) => Promise<number> | number): import("child_process").ChildProcess;
|
|
135
|
-
asyncAsPromise(): Promise<void>;
|
|
136
|
-
unitlOutput(optionsOutput: {
|
|
137
|
-
stdoutMsg: string | string[];
|
|
138
|
-
stderMsg?: string | string[];
|
|
139
|
-
timeout?: number;
|
|
140
|
-
stdoutOutputContainsCallback?: () => any;
|
|
141
|
-
outputLineReplace?: (outputLine: string) => string;
|
|
142
|
-
}): Promise<void>;
|
|
143
|
-
unitlOutputContains(stdoutMsg: string | string[], stderMsg?: string | string[], timeout?: number, stdoutOutputContainsCallback?: () => any): any;
|
|
144
|
-
};
|
|
145
|
-
/**
|
|
146
|
-
* same as run but async
|
|
147
|
-
*/
|
|
148
|
-
execute(command: string, options?: CoreModels.ExecuteOptions & {
|
|
149
|
-
showCommand?: boolean;
|
|
150
|
-
}): Promise<any>;
|
|
151
|
-
/**
|
|
152
|
-
* try run but continue when it fails
|
|
153
|
-
* @param command
|
|
154
|
-
* @param options
|
|
155
|
-
* @returns
|
|
156
|
-
*/
|
|
157
|
-
tryRunSync(command: string): void;
|
|
158
|
-
outputFrom(command: string): any;
|
|
159
|
-
removeFile(fileRelativeToProjectPath: string): any;
|
|
160
|
-
readFile(fileRelativeToProjectPath: string): any;
|
|
161
|
-
/**
|
|
162
|
-
* read json file
|
|
163
|
-
* handle all json files
|
|
164
|
-
* jsonc, json5 , json
|
|
165
|
-
* @param fileRelativeToProjectPath
|
|
166
|
-
* @returns
|
|
167
|
-
*/
|
|
168
|
-
readJson<T = {}>(fileRelativeToProjectPath: string): T;
|
|
169
|
-
/**
|
|
170
|
-
* copy files or folders from
|
|
171
|
-
* project to destination
|
|
172
|
-
*/
|
|
173
|
-
copy(filesOrFolderRelativePathes: string[]): {
|
|
174
|
-
to: (destination: string) => void;
|
|
175
|
-
};
|
|
176
|
-
remove(relativePath: string | string[], exactPath?: boolean): any;
|
|
177
|
-
removeFolderByRelativePath(relativePathToFolder: string): void;
|
|
178
|
-
get isAngularLib(): any;
|
|
179
|
-
refreshChildrenProjects(options?: {
|
|
180
|
-
askUserAboutUpdate?: boolean;
|
|
181
|
-
}): Promise<void>;
|
|
182
|
-
protected getUniqueForTask(task: string): string;
|
|
183
|
-
registerAndAssignPort(taskName: string, options?: {
|
|
184
|
-
startFrom?: number;
|
|
185
|
-
}): Promise<number>;
|
|
186
|
-
/**
|
|
187
|
-
* @deprecated use this.registerAndAssignPort() or Utils.getFreePort() instead
|
|
188
|
-
*/
|
|
189
|
-
assignFreePort(startFrom?: number): Promise<number>;
|
|
190
|
-
/**
|
|
191
|
-
* Purpose: not initializing all classes at the beginning
|
|
192
|
-
* Only for BaseFeatureForProject class
|
|
193
|
-
*/
|
|
194
|
-
defineProperty<PROJECT>(variableName: keyof PROJECT, classFn: Function, options?: {
|
|
195
|
-
customInstanceReturn?: () => object;
|
|
196
|
-
}): any;
|
|
197
|
-
/**
|
|
198
|
-
* fs.copy option filter function for copying only selected folders from project
|
|
199
|
-
*/
|
|
200
|
-
filterOnlyCopy(basePathFoldersOnlyToInclude: string[]): any;
|
|
201
|
-
/**
|
|
202
|
-
* fs.copy option filter function for copying only not selected folders from project
|
|
203
|
-
*/
|
|
204
|
-
filterDontCopy(basePathFoldersTosSkip: string[]): any;
|
|
205
|
-
/**
|
|
206
|
-
* main/default hardcoded branches
|
|
207
|
-
*/
|
|
208
|
-
getMainBranches(): string[];
|
|
209
|
-
useFeatureInBranchNameForTests(): boolean;
|
|
210
|
-
resetProcess(overrideBranch?: string, recrusive?: boolean): Promise<void>;
|
|
211
|
-
linkTo(destPackageLocation: string): void;
|
|
212
|
-
setValueToJSON(relativePath: string | string[], lodashGetPath: string, value: any): void;
|
|
213
|
-
setValueToJSONC(relativePath: string | string[], lodashGetPath: string, value: any): void;
|
|
214
|
-
setValueToJSON5(relativePath: string | string[], lodashGetPath: string, value: any): void;
|
|
215
|
-
getValueFromJSON(relativePath: string | string[], lodashGetPath: string, defaultValue?: any): any;
|
|
216
|
-
getValueFromJSONC(relativePath: string | string[], lodashGetPath: string, defaultValue?: any): any;
|
|
217
|
-
writeFile(relativePath: string | string[], content: string, options?: {
|
|
218
|
-
formatWithPrettier?: boolean;
|
|
219
|
-
}): void;
|
|
220
|
-
runCommandGetString(this: BaseProject, command: string): any;
|
|
221
|
-
toString: () => string;
|
|
222
|
-
get parentsNames(): any;
|
|
223
|
-
openLocation(relativeFolderPath: string): any;
|
|
224
|
-
private findParentsNames;
|
|
225
|
-
tryKillAllElectronInstances(): any;
|
|
226
|
-
/**
|
|
227
|
-
* init project files structure and depedencies
|
|
228
|
-
*/
|
|
229
|
-
init(initOptions?: any): Promise<void>;
|
|
230
|
-
/**
|
|
231
|
-
* globally link npm as package
|
|
232
|
-
*/
|
|
233
|
-
link(): Promise<void>;
|
|
234
|
-
/**
|
|
235
|
-
* init project files structure without depedencies
|
|
236
|
-
*/
|
|
237
|
-
struct(initOptions?: any): Promise<void>;
|
|
238
|
-
/**
|
|
239
|
-
* init and build() project
|
|
240
|
-
*/
|
|
241
|
-
test(testOptions?: any): Promise<void>;
|
|
242
|
-
/**
|
|
243
|
-
* init and build() project
|
|
244
|
-
*/
|
|
245
|
-
build(buildOptions?: any): Promise<void>;
|
|
246
|
-
/**
|
|
247
|
-
* publish project to npm
|
|
248
|
-
*/
|
|
249
|
-
publish(publishOptions?: any): Promise<void>;
|
|
250
|
-
release(releaseOptions?: any): Promise<void>;
|
|
251
|
-
/**
|
|
252
|
-
* lint porject
|
|
253
|
-
*/
|
|
254
|
-
lint(lintOptions?: any): Promise<void>;
|
|
255
|
-
/**
|
|
256
|
-
* get info about porject
|
|
257
|
-
*/
|
|
258
|
-
info(): Promise<string>;
|
|
259
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { BaseFeatureForProject } from './base-feature-for-project';
|
|
3
|
-
import type { BaseProject } from './base-project';
|
|
4
|
-
export declare class BaseQuickFixes<PROJECT extends BaseProject<any, any> = BaseProject<any, any>> extends BaseFeatureForProject<PROJECT> {
|
|
5
|
-
project: PROJECT;
|
|
6
|
-
constructor(project: PROJECT);
|
|
7
|
-
/**
|
|
8
|
-
* filesRelativePaths example:
|
|
9
|
-
* ['node_modules/@types/glob/index.d.ts', '/home/user/project/src/app.ts']
|
|
10
|
-
*
|
|
11
|
-
* @param filesRelativeAbsPaths\ Quick fix for typescript check
|
|
12
|
-
*/
|
|
13
|
-
excludeNodeModulesDtsFromTypescriptCheck(filesRelativeAbsPaths: string[]): any;
|
|
14
|
-
fixSQLLiteModuleInNodeModules(): any;
|
|
15
|
-
createDummyEmptyLibsReplacements(missingLibsNames?: string[]): any;
|
|
16
|
-
}
|