tnp-helpers 21.0.2 → 21.0.5
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 +179 -52
- package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/browser/types/tnp-helpers.d.ts +3202 -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.js +2 -5
- 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 +3 -3
- 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 +19 -1
- 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 +58 -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 -3
- package/websql/fesm2022/tnp-helpers.mjs +183 -56
- package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
- package/websql/package.json +1 -1
- package/websql/types/tnp-helpers.d.ts +3202 -0
- 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/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,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
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { CoreModels } from 'tnp-core/websql';
|
|
3
|
-
import type { ChangelogData } from '../../models';
|
|
4
|
-
import { BaseFeatureForProject } from './base-feature-for-project';
|
|
5
|
-
import type { BaseProject } from './base-project';
|
|
6
|
-
export declare class BaseReleaseProcess<PROJECT extends BaseProject<any, any> = any> extends BaseFeatureForProject<PROJECT> {
|
|
7
|
-
/**
|
|
8
|
-
* Automatic release process of patch plus one version
|
|
9
|
-
*/
|
|
10
|
-
automaticRelease: boolean;
|
|
11
|
-
versionType: CoreModels.ReleaseVersionType;
|
|
12
|
-
preReleaseVersionTag: CoreModels.PreReleaseVersionTag;
|
|
13
|
-
lastChangesSummary: string;
|
|
14
|
-
newVersion: string;
|
|
15
|
-
commitsForChangelog: {
|
|
16
|
-
commitMessages: string;
|
|
17
|
-
index: number;
|
|
18
|
-
}[];
|
|
19
|
-
startRelease(options?: Partial<BaseReleaseProcess<PROJECT>>): Promise<void>;
|
|
20
|
-
getReleaseWords(): string[];
|
|
21
|
-
selectChangelogCommits(): Promise<{
|
|
22
|
-
commitMessages: string;
|
|
23
|
-
index: number;
|
|
24
|
-
}[]>;
|
|
25
|
-
private getCommitsUpToReleaseCommit;
|
|
26
|
-
checkBundleQuestion(cwdForCode: string, checkMessage?: string): Promise<boolean>;
|
|
27
|
-
/**
|
|
28
|
-
* @returns true if publish , faslse if just version bump
|
|
29
|
-
*/
|
|
30
|
-
publishToNpm(cwdForCode?: any, automaticRelease?: boolean): Promise<boolean>;
|
|
31
|
-
protected testAfterPublish(): Promise<boolean>;
|
|
32
|
-
protected testBeforePublish(): Promise<boolean>;
|
|
33
|
-
protected commitAndPush(): Promise<void>;
|
|
34
|
-
protected releaseCommitTemplate(): string;
|
|
35
|
-
private testLibraries;
|
|
36
|
-
buildAllLibraries(): Promise<void>;
|
|
37
|
-
resetReleaseFiles(): Promise<any>;
|
|
38
|
-
get toBumpProjects(): PROJECT[];
|
|
39
|
-
bumpNewVersionEverywhere(): Promise<any>;
|
|
40
|
-
confirmNewVersion(): Promise<void>;
|
|
41
|
-
protected selectReleaseType(versionToUseResolveFn?: (releaseVersionBumpType: CoreModels.ReleaseVersionType) => string, options?: {
|
|
42
|
-
quesitonPrefixMessage?: string;
|
|
43
|
-
}): Promise<CoreModels.ReleaseVersionType>;
|
|
44
|
-
protected commitMessageInChangelogTransformFn(message: string): Promise<string>;
|
|
45
|
-
getChangelogContentToAppend(askForEveryItem: boolean): Promise<string>;
|
|
46
|
-
/**
|
|
47
|
-
* TODO extend this to all commits from last release
|
|
48
|
-
*/
|
|
49
|
-
updateChangeLogFromCommits(): Promise<void>;
|
|
50
|
-
extractChangedLibrariesInCommit(hashOrIndex: string | number): Promise<string>;
|
|
51
|
-
changelogItemTemplate(hashOrIndex: string | number, confirmEveryItem?: boolean): Promise<string>;
|
|
52
|
-
generateLastChangesSummary(): Promise<string>;
|
|
53
|
-
getLastChangesFromCommits({ maxMessagesToCheck, stopOnCommitMessage, }?: {
|
|
54
|
-
/**
|
|
55
|
-
* default 3
|
|
56
|
-
*/
|
|
57
|
-
maxMessagesToCheck?: number;
|
|
58
|
-
/**
|
|
59
|
-
* stop serching on commit message
|
|
60
|
-
*/
|
|
61
|
-
stopOnCommitMessage?: string;
|
|
62
|
-
}): Promise<string>;
|
|
63
|
-
getLastReleaseCommitData(): Promise<{
|
|
64
|
-
lastReleaseCommitMsg: string;
|
|
65
|
-
/**
|
|
66
|
-
* -1 if not found
|
|
67
|
-
*/
|
|
68
|
-
index: number;
|
|
69
|
-
}>;
|
|
70
|
-
getLastPackageVersionChangesFromChnagelog(): Promise<string>;
|
|
71
|
-
private get changeLogPath();
|
|
72
|
-
get changelogContent(): any;
|
|
73
|
-
changeLogKeyWord(): string;
|
|
74
|
-
getChnagelogData(): ChangelogData[];
|
|
75
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { BaseFeatureForProject } from './base-feature-for-project';
|
|
3
|
-
import type { BaseProject } from './base-project';
|
|
4
|
-
/**
|
|
5
|
-
* Easy way to create github pages
|
|
6
|
-
* (or similar static site hosting)
|
|
7
|
-
*/
|
|
8
|
-
export declare class BaseStaticPages<PROJECT extends BaseProject = any> extends BaseFeatureForProject<PROJECT> {
|
|
9
|
-
readonly TMP_STATIC_PAGE_SITE_REPOS = "tmp-static-pages-sites-repos";
|
|
10
|
-
protected cleanFolderForStaticPages(pathToBranchRepoFolder: string): Promise<any>;
|
|
11
|
-
protected get mainFolder(): any;
|
|
12
|
-
get mainFolderAbsPath(): any;
|
|
13
|
-
get pagesBranchName(): string;
|
|
14
|
-
init(mainFolder: string, completeProcess?: boolean): Promise<any>;
|
|
15
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { CoreModels } from 'tnp-core/websql';
|
|
3
|
-
import { BaseFeatureForProject } from './base-feature-for-project';
|
|
4
|
-
import type { BaseProject } from './base-project';
|
|
5
|
-
export declare class BaseVscodeHelpers<PROJECT extends BaseProject = any> extends BaseFeatureForProject<PROJECT> {
|
|
6
|
-
init(options?: {
|
|
7
|
-
skipHiddingTempFiles?: boolean;
|
|
8
|
-
}): Promise<void>;
|
|
9
|
-
/**
|
|
10
|
-
* settings.json relative path
|
|
11
|
-
*/
|
|
12
|
-
readonly relativePathSettingsJsonVscode = ".vscode/settings.json";
|
|
13
|
-
readonly relativePathExtensionJsonVScode = ".vscode/extensions.json";
|
|
14
|
-
readonly currentSettingsValue: CoreModels.VSCodeSettings;
|
|
15
|
-
constructor(project: PROJECT);
|
|
16
|
-
protected modifyVscode(modifyFN: (settings: CoreModels.VSCodeSettings) => CoreModels.VSCodeSettings): void;
|
|
17
|
-
saveCurrentSettings(): void;
|
|
18
|
-
getExtensions(): string[];
|
|
19
|
-
/**
|
|
20
|
-
* @deprecated use getExtensions() instead
|
|
21
|
-
*/
|
|
22
|
-
private get extensions();
|
|
23
|
-
recreateExtensions(): void;
|
|
24
|
-
protected getExecuteParamsForSettings(): any[];
|
|
25
|
-
recreateBaseSettings(options?: {
|
|
26
|
-
save?: boolean;
|
|
27
|
-
}): Promise<void>;
|
|
28
|
-
recreateWindowTitle(options?: {
|
|
29
|
-
save?: boolean;
|
|
30
|
-
}): void;
|
|
31
|
-
installExtensions(extensions?: string[], defaultSelectedAll?: boolean): Promise<void>;
|
|
32
|
-
/**
|
|
33
|
-
* This pattern finds a dash followed by at least one digit.
|
|
34
|
-
* It removes everything from that dash to the end of the string.
|
|
35
|
-
* Examples:
|
|
36
|
-
* "name-of-extension-1.2.3" -> "name-of-extension"
|
|
37
|
-
* "extension-0.9.5-win32-x64" -> "extension"
|
|
38
|
-
*/
|
|
39
|
-
protected stripVersion(folderName: string): string;
|
|
40
|
-
get installedExtensions(): string[];
|
|
41
|
-
static applyProperGlobalSettings(): Promise<void>;
|
|
42
|
-
/**
|
|
43
|
-
* by default left menu color and bottom status bar are the same
|
|
44
|
-
*/
|
|
45
|
-
getVscodeBottomColor(): string;
|
|
46
|
-
refreshColorsInSettings(): void;
|
|
47
|
-
getBasicSettins(): Promise<object>;
|
|
48
|
-
protected resolveParamsVscode(obj: any, prams: any[]): Promise<void>;
|
|
49
|
-
toogleFilesVisibilityInVscode(options: {
|
|
50
|
-
action: 'show-files' | 'hide-files';
|
|
51
|
-
skipSaving?: boolean;
|
|
52
|
-
}): void;
|
|
53
|
-
changeColorThemeVscode(white?: boolean): void;
|
|
54
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
export * from './base-project';
|
|
3
|
-
export * from './base-project-resolver';
|
|
4
|
-
export * from './base-feature-for-project';
|
|
5
|
-
export * from './base-library-build';
|
|
6
|
-
export * from './base-json-file-reader';
|
|
7
|
-
export * from './base-package-json';
|
|
8
|
-
export * from './base-node-modules';
|
|
9
|
-
export * from './base-npm-helpers';
|
|
10
|
-
export * from './base-linked-projects';
|
|
11
|
-
export * from './base-git';
|
|
12
|
-
export * from './base-ignore-hide';
|
|
13
|
-
export * from './base-linter';
|
|
14
|
-
export * from './base-vscode';
|
|
15
|
-
export * from './base-release-process';
|
|
16
|
-
export * from './base-compiler-for-project';
|
|
17
|
-
export * from './base-debounce-compiler-for-project';
|
|
18
|
-
export * from './base-quick-fixes';
|
|
19
|
-
export * from './base-cli-worker';
|
|
20
|
-
export * from './base-process-manager';
|
|
21
|
-
export * from './base-command-line-feature';
|
|
22
|
-
export * from './base-file-folders-operations';
|
|
23
|
-
export * from './base-global-command-line';
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
export type CommonCommitMsgBranch = 'refactor' | 'chore' | 'style' | 'docs' | 'test' | 'ci' | 'build' | 'release';
|
|
3
|
-
export type TypeOfCommit = 'feature' | 'bugfix' | 'performance' | CommonCommitMsgBranch;
|
|
4
|
-
export type TypeOfMsgPrefix = 'feat' | 'fix' | 'perf' | CommonCommitMsgBranch;
|
|
5
|
-
export declare class CommitData {
|
|
6
|
-
private static cleanHttpFromCommitMessage;
|
|
7
|
-
private static getTeamsIdFrom;
|
|
8
|
-
private static getModuleNameFrom;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @returns jiras (from oldest to newset)
|
|
12
|
-
*/
|
|
13
|
-
static extractAndOrderJiraNumbers(commitOrBranchName: string): string[];
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @returns jiras (from oldest to newset)
|
|
17
|
-
*/
|
|
18
|
-
static extractAndOrderIssuesFromOtherProjects(
|
|
19
|
-
/**
|
|
20
|
-
* example:
|
|
21
|
-
* commit: proper git commands tnp/GH-9 darekf77/tnp-helpers/GH-10
|
|
22
|
-
* feature/__tnp-GH-9____darekf77_tnp-helpers-GH10__-proper-git-commands
|
|
23
|
-
*/
|
|
24
|
-
commitOrBranchName: string, currentOrigin?: string): string[];
|
|
25
|
-
static cleanMessageFromJiraNumTeamIdEtc(message: string, optinos?: {
|
|
26
|
-
teamID: string;
|
|
27
|
-
commitModuleName: string;
|
|
28
|
-
jiraNumbers: string[];
|
|
29
|
-
issuesFromOtherProjects: string[];
|
|
30
|
-
}): string;
|
|
31
|
-
private static getModuleNameFromBranch;
|
|
32
|
-
static getFromArgs(args: string[], options: {
|
|
33
|
-
typeOfCommit: TypeOfCommit;
|
|
34
|
-
/**
|
|
35
|
-
* only needed when push github
|
|
36
|
-
* and I forgot to add my username before issue
|
|
37
|
-
* taon pfix proper input my-repo#344
|
|
38
|
-
* that should be
|
|
39
|
-
* taon pfix proper input my-username/my-repo#344
|
|
40
|
-
*/
|
|
41
|
-
currentOrigin?: string;
|
|
42
|
-
jiraIssuesAreOutsideBrackets?: boolean;
|
|
43
|
-
}): Promise<CommitData>;
|
|
44
|
-
static getFromBranch(currentBranchName: string, options?: {
|
|
45
|
-
releaseWords?: string[];
|
|
46
|
-
/**
|
|
47
|
-
* only needed when push github
|
|
48
|
-
* and I forgot to add my username before issue
|
|
49
|
-
* taon pfix proper input my-repo#344
|
|
50
|
-
* that should be
|
|
51
|
-
* taon pfix proper input my-username/my-repo#344
|
|
52
|
-
*/
|
|
53
|
-
currentOrigin?: string;
|
|
54
|
-
jiraIssuesAreOutsideBrackets?: boolean;
|
|
55
|
-
}): Promise<CommitData>;
|
|
56
|
-
static from(options: Pick<CommitData, 'message' | 'jiraNumbers' | 'typeOfCommit' | 'commitModuleName' | 'teamID' | 'issuesFromOtherProjects' | 'jiraIssuesAreOutsideBrackets'>): CommitData;
|
|
57
|
-
private _message;
|
|
58
|
-
typeOfCommit: TypeOfCommit;
|
|
59
|
-
/**
|
|
60
|
-
* ex. JIRA-2132 or MYJIRAREFIX-234234
|
|
61
|
-
*/
|
|
62
|
-
jiraNumbers: string[];
|
|
63
|
-
/**
|
|
64
|
-
* if true then jira issues are outside brackets
|
|
65
|
-
* feat: proper git commands JIRA-1234
|
|
66
|
-
*
|
|
67
|
-
* by default is false
|
|
68
|
-
* feat(JIRA-1234): proper git commands
|
|
69
|
-
*/
|
|
70
|
-
jiraIssuesAreOutsideBrackets: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* when set -> jiraIssuesAreOutsideBrackets is true
|
|
73
|
-
*/
|
|
74
|
-
readonly commitModuleName: string;
|
|
75
|
-
readonly teamID: string;
|
|
76
|
-
private clearMessage;
|
|
77
|
-
/**
|
|
78
|
-
* pure message what was done (without jira or prefixes)
|
|
79
|
-
* => is included in this.commitMessage
|
|
80
|
-
*/
|
|
81
|
-
get message(): string;
|
|
82
|
-
set message(message: string);
|
|
83
|
-
useFeatureBranchForTestBranch: boolean;
|
|
84
|
-
get branchPrefix(): TypeOfMsgPrefix;
|
|
85
|
-
/**
|
|
86
|
-
* ex. taon/GH-12 darekf77/tnp-helpers/GH-4
|
|
87
|
-
*/
|
|
88
|
-
get issuesFromOtherProjects(): string[];
|
|
89
|
-
set issuesFromOtherProjects(value: string[]);
|
|
90
|
-
private __issuesFromOtherProjects;
|
|
91
|
-
get commitMessage(): string;
|
|
92
|
-
get branchName(): string;
|
|
93
|
-
get isActionCommit(): any;
|
|
94
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import type { BaseProjectResolver } from './classes/base-project-resolver';
|
|
3
|
-
import { BaseDb } from './classes/base-db';
|
|
4
|
-
declare const defaultDb: {
|
|
5
|
-
config: {
|
|
6
|
-
[key: string]: string | number | boolean | null;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export declare class ConfigDatabase extends BaseDb<typeof defaultDb> {
|
|
10
|
-
constructor(ins: BaseProjectResolver);
|
|
11
|
-
private get selectedCodeEditorKey();
|
|
12
|
-
selectCodeEditor(): Promise<'code' | 'idea' | 'idea64' | string>;
|
|
13
|
-
getCodeEditor(): Promise<'code' | 'idea' | 'idea64' | string>;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import type { BaseProject } from './classes/base-project';
|
|
3
|
-
import { LibrariesBuildOptions, TestBuildOptions } from '../index';
|
|
4
|
-
export type CoreProjectEnvironment = {
|
|
5
|
-
shortName?: string;
|
|
6
|
-
name?: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
onlineLink?: string;
|
|
9
|
-
};
|
|
10
|
-
export type CoreCommandArgOptions<PROJECT extends BaseProject<any, any>> = {
|
|
11
|
-
project?: PROJECT;
|
|
12
|
-
/**
|
|
13
|
-
* watch mode
|
|
14
|
-
*/
|
|
15
|
-
watch?: boolean;
|
|
16
|
-
prod?: boolean;
|
|
17
|
-
debug?: boolean;
|
|
18
|
-
isInReleaseProcess?: boolean;
|
|
19
|
-
libraryBuildOptions?: LibrariesBuildOptions;
|
|
20
|
-
testBuildOptions?: TestBuildOptions;
|
|
21
|
-
/**
|
|
22
|
-
* first arg from command line
|
|
23
|
-
*/
|
|
24
|
-
firstArg?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Not question for user ex.
|
|
27
|
-
* - automatic process of patch release
|
|
28
|
-
* - automatic deployment for default server
|
|
29
|
-
*/
|
|
30
|
-
automaticProcess?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* orignal args with params
|
|
33
|
-
*/
|
|
34
|
-
argsWithParams?: string;
|
|
35
|
-
copyto?: string[];
|
|
36
|
-
copytoall?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* args from command line (clearn from params)
|
|
39
|
-
*/
|
|
40
|
-
args?: string[];
|
|
41
|
-
exitCallback?: () => void;
|
|
42
|
-
};
|
|
43
|
-
export declare class CoreProject<PROJECT extends BaseProject = BaseProject> {
|
|
44
|
-
static coreProjects: CoreProject<any>[];
|
|
45
|
-
static from<Proj extends BaseProject = BaseProject<any, any>>(options: Omit<CoreProject<Proj>, 'name' | 'url' | 'branch'>): CoreProject<Proj>;
|
|
46
|
-
private constructor();
|
|
47
|
-
extends?: CoreProject<any>;
|
|
48
|
-
color?: string;
|
|
49
|
-
/**
|
|
50
|
-
* second color for project (optional)
|
|
51
|
-
*/
|
|
52
|
-
secondColor?: string;
|
|
53
|
-
/**
|
|
54
|
-
* second color for project (optional)
|
|
55
|
-
*/
|
|
56
|
-
thirdColor?: string;
|
|
57
|
-
npmRegistry?: string;
|
|
58
|
-
description?: string;
|
|
59
|
-
/**
|
|
60
|
-
* ssh url for git repo
|
|
61
|
-
*/
|
|
62
|
-
urlSSH?: string;
|
|
63
|
-
/**
|
|
64
|
-
* https url for git repo
|
|
65
|
-
*/
|
|
66
|
-
urlHttp?: string;
|
|
67
|
-
/**
|
|
68
|
-
* main branches - first is default
|
|
69
|
-
*/
|
|
70
|
-
branches: string[];
|
|
71
|
-
/**
|
|
72
|
-
* project environments
|
|
73
|
-
*/
|
|
74
|
-
environments?: CoreProjectEnvironment[];
|
|
75
|
-
cleanCommand?: (options: CoreCommandArgOptions<PROJECT>) => Promise<void>;
|
|
76
|
-
initCommand?: (options: CoreCommandArgOptions<PROJECT>) => Promise<void>;
|
|
77
|
-
/**
|
|
78
|
-
* Build whatever is needed to run project
|
|
79
|
-
* buildCommand includes initCommand
|
|
80
|
-
*/
|
|
81
|
-
buildCommand?: (options: CoreCommandArgOptions<PROJECT>) => Promise<void>;
|
|
82
|
-
/**
|
|
83
|
-
* startCommand includes initCommand, buildCommand and launchCommand
|
|
84
|
-
*/
|
|
85
|
-
startCommand?: (options: CoreCommandArgOptions<PROJECT>) => Promise<void>;
|
|
86
|
-
/**
|
|
87
|
-
* launch already built project
|
|
88
|
-
*/
|
|
89
|
-
launchCommand?: (options: CoreCommandArgOptions<PROJECT>) => Promise<void>;
|
|
90
|
-
releaseCommand?: (options: CoreCommandArgOptions<PROJECT>) => Promise<void>;
|
|
91
|
-
publishCommand?: (options: CoreCommandArgOptions<PROJECT>) => Promise<void>;
|
|
92
|
-
deployCommand?: (options: CoreCommandArgOptions<PROJECT>) => Promise<void>;
|
|
93
|
-
testCommand?: (options: CoreCommandArgOptions<PROJECT>) => Promise<void>;
|
|
94
|
-
docsCommand?: (options: CoreCommandArgOptions<PROJECT>) => Promise<void>;
|
|
95
|
-
/**
|
|
96
|
-
* function to recognize project
|
|
97
|
-
*/
|
|
98
|
-
recognizedFn: (project: PROJECT) => boolean;
|
|
99
|
-
/**
|
|
100
|
-
* core porject name from repo basename
|
|
101
|
-
*/
|
|
102
|
-
get name(): string;
|
|
103
|
-
/**
|
|
104
|
-
* main (default for reset) branch
|
|
105
|
-
*/
|
|
106
|
-
get branch(): string;
|
|
107
|
-
/**
|
|
108
|
-
* url for git repo
|
|
109
|
-
*/
|
|
110
|
-
get url(): string;
|
|
111
|
-
}
|
|
112
|
-
export declare const CoreTypescriptProject: CoreProject<BaseProject<BaseProject<any, any>, import("tnp-core/websql").CoreModels.BaseProjectType>>;
|
|
113
|
-
export declare const CoreAngularProject: CoreProject<BaseProject<BaseProject<any, any>, import("tnp-core/websql").CoreModels.BaseProjectType>>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { BaseProject } from './classes/base-project';
|
|
3
|
-
/**
|
|
4
|
-
* Class to save and restore temporary code
|
|
5
|
-
* TODO fix removing files from repo
|
|
6
|
-
*/
|
|
7
|
-
export declare class GhTempCode {
|
|
8
|
-
private cwd;
|
|
9
|
-
private project;
|
|
10
|
-
constructor(cwd: string, project: BaseProject);
|
|
11
|
-
private GHTEMP_CODE_REPO_PATH;
|
|
12
|
-
private get cwdRepo();
|
|
13
|
-
private get tempPathRepo();
|
|
14
|
-
init(): any;
|
|
15
|
-
save(): Promise<any>;
|
|
16
|
-
restore(): Promise<any>;
|
|
17
|
-
}
|