tnp 16.5.21 → 16.5.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/shared/shared_folder_info.txt +1 -1
- package/browser/esm2022/lib/build-options.mjs +180 -0
- package/browser/esm2022/lib/constants.mjs +3 -3
- package/browser/esm2022/lib/helpers.mjs +1 -1
- package/browser/esm2022/lib/index.mjs +2 -3
- package/browser/esm2022/lib/project/abstract/feature-for-project.mjs +1 -1
- package/browser/esm2022/lib/project/abstract/index.mjs +1 -1
- package/browser/esm2022/lib/project/abstract/project/index.mjs +1 -1
- package/browser/esm2022/lib/project/abstract/project/project.mjs +1494 -70
- package/browser/esm2022/lib/project/features/package-json/index.mjs +1 -1
- package/browser/esm2022/lib/project/features/package-json/package-json-file.mjs +1 -1
- package/browser/esm2022/lib/project/features/package-json/package-json.mjs +1 -1
- package/browser/esm2022/lib/project/index.mjs +1 -5
- package/browser/esm2022/public-api.mjs +1 -1
- package/browser/esm2022/tnp.mjs +1 -1
- package/browser/fesm2022/tnp.mjs +1684 -88
- package/browser/fesm2022/tnp.mjs.map +1 -1
- package/browser/lib/build-options.d.ts +40 -0
- package/browser/lib/constants.d.ts +1 -1
- package/browser/lib/index.d.ts +1 -0
- package/browser/lib/project/abstract/project/project.d.ts +121 -6
- package/browser/lib/project/features/package-json/package-json.d.ts +1 -1
- package/cli.js +72762 -60372
- package/client/esm2022/lib/build-options.mjs +180 -0
- package/client/esm2022/lib/constants.mjs +3 -3
- package/client/esm2022/lib/helpers.mjs +1 -1
- package/client/esm2022/lib/index.mjs +2 -3
- package/client/esm2022/lib/project/abstract/feature-for-project.mjs +1 -1
- package/client/esm2022/lib/project/abstract/index.mjs +1 -1
- package/client/esm2022/lib/project/abstract/project/index.mjs +1 -1
- package/client/esm2022/lib/project/abstract/project/project.mjs +1494 -70
- package/client/esm2022/lib/project/features/package-json/index.mjs +1 -1
- package/client/esm2022/lib/project/features/package-json/package-json-file.mjs +1 -1
- package/client/esm2022/lib/project/features/package-json/package-json.mjs +1 -1
- package/client/esm2022/lib/project/index.mjs +1 -5
- package/client/esm2022/public-api.mjs +1 -1
- package/client/esm2022/tnp.mjs +1 -1
- package/client/fesm2022/tnp.mjs +1684 -88
- package/client/fesm2022/tnp.mjs.map +1 -1
- package/client/lib/build-options.d.ts +40 -0
- package/client/lib/constants.d.ts +1 -1
- package/client/lib/index.d.ts +1 -0
- package/client/lib/project/abstract/project/project.d.ts +121 -6
- package/client/lib/project/features/package-json/package-json.d.ts +1 -1
- package/client/package.json +63 -63
- package/lib/build-options.d.ts +39 -0
- package/lib/build-options.js +182 -0
- package/lib/build-options.js.map +1 -0
- package/lib/constants.d.ts +1 -1
- package/lib/constants.js +2 -2
- package/lib/constants.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -3
- package/lib/index.js.map +1 -1
- package/lib/project/abstract/command-line-feature.backend.d.ts +14 -0
- package/lib/project/abstract/command-line-feature.backend.js +50 -0
- package/lib/project/abstract/command-line-feature.backend.js.map +1 -0
- package/lib/project/abstract/project/base-project.d.ts +1 -1
- package/lib/project/abstract/project/base-project.js +31 -32
- package/lib/project/abstract/project/base-project.js.map +1 -1
- package/lib/project/abstract/project/buildable-project.backend.d.ts +2 -2
- package/lib/project/abstract/project/buildable-project.backend.js +2 -2
- package/lib/project/abstract/project/buildable-project.backend.js.map +1 -1
- package/lib/project/abstract/project/dependency-project.backend.d.ts +1 -10
- package/lib/project/abstract/project/dependency-project.backend.js +1 -74
- package/lib/project/abstract/project/dependency-project.backend.js.map +1 -1
- package/lib/project/abstract/project/feature-project.d.ts +2 -5
- package/lib/project/abstract/project/feature-project.js.map +1 -1
- package/lib/project/abstract/project/{tnp-project.d.ts → firedev-project.d.ts} +2 -2
- package/lib/project/abstract/project/{tnp-project.js → firedev-project.js} +25 -24
- package/lib/project/abstract/project/firedev-project.js.map +1 -0
- package/lib/project/abstract/project/folder-project.d.ts +0 -33
- package/lib/project/abstract/project/folder-project.js +6 -198
- package/lib/project/abstract/project/folder-project.js.map +1 -1
- package/lib/project/abstract/project/lib-project-smart-container.backend.js +14 -7
- package/lib/project/abstract/project/lib-project-smart-container.backend.js.map +1 -1
- package/lib/project/abstract/project/lib-project-standalone.backend.d.ts +0 -1
- package/lib/project/abstract/project/lib-project-standalone.backend.js +45 -31
- package/lib/project/abstract/project/lib-project-standalone.backend.js.map +1 -1
- package/lib/project/abstract/project/lib-project-vscode-ext.js +1 -1
- package/lib/project/abstract/project/lib-project-vscode-ext.js.map +1 -1
- package/lib/project/abstract/project/lib-project.backend.d.ts +4 -5
- package/lib/project/abstract/project/lib-project.backend.js +139 -102
- package/lib/project/abstract/project/lib-project.backend.js.map +1 -1
- package/lib/project/abstract/project/npm-project.d.ts +1 -1
- package/lib/project/abstract/project/npm-project.js +29 -10
- package/lib/project/abstract/project/npm-project.js.map +1 -1
- package/lib/project/abstract/project/project.d.ts +128 -14
- package/lib/project/abstract/project/project.js +1586 -120
- package/lib/project/abstract/project/project.js.map +1 -1
- package/lib/project/abstract/project/recreatable-project.backend.js +2 -2
- package/lib/project/abstract/project/recreatable-project.backend.js.map +1 -1
- package/lib/project/abstract/project/vscode-project.backend.js +3 -17
- package/lib/project/abstract/project/vscode-project.backend.js.map +1 -1
- package/lib/project/compilers/assets-list-file-generator/assets-list-file-generator.backend.d.ts +1 -1
- package/lib/project/compilers/assets-list-file-generator/assets-list-file-generator.backend.js +2 -2
- package/lib/project/compilers/assets-list-file-generator/assets-list-file-generator.backend.js.map +1 -1
- package/lib/project/compilers/build-isomorphic-lib/code-cut/browser-code-cut.backend.d.ts +3 -3
- package/lib/project/compilers/build-isomorphic-lib/code-cut/browser-code-cut.backend.js +10 -11
- package/lib/project/compilers/build-isomorphic-lib/code-cut/browser-code-cut.backend.js.map +1 -1
- package/lib/project/compilers/build-isomorphic-lib/code-cut/code-cut.backend.d.ts +3 -3
- package/lib/project/compilers/build-isomorphic-lib/code-cut/code-cut.backend.js +6 -6
- package/lib/project/compilers/build-isomorphic-lib/code-cut/code-cut.backend.js.map +1 -1
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-backend.backend.d.ts +2 -2
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-backend.backend.js +5 -6
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-backend.backend.js.map +1 -1
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-browser.backend.d.ts +5 -5
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-browser.backend.js +12 -16
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-browser.backend.js.map +1 -1
- package/lib/project/compilers/build-isomorphic-lib/compilations/incremental-build-process.backend.d.ts +1 -1
- package/lib/project/compilers/build-isomorphic-lib/compilations/incremental-build-process.backend.js +3 -3
- package/lib/project/compilers/build-isomorphic-lib/compilations/incremental-build-process.backend.js.map +1 -1
- package/lib/project/compilers/index.d.ts +0 -2
- package/lib/project/compilers/index.js +0 -2
- package/lib/project/compilers/index.js.map +1 -1
- package/lib/project/features/branding.backend.js +1 -0
- package/lib/project/features/branding.backend.js.map +1 -1
- package/lib/project/features/build-process/build-proces.backend.d.ts +3 -2
- package/lib/project/features/build-process/build-proces.backend.js +10 -10
- package/lib/project/features/build-process/build-proces.backend.js.map +1 -1
- package/lib/project/features/build-process/index.d.ts +1 -2
- package/lib/project/features/build-process/index.js +0 -1
- package/lib/project/features/build-process/index.js.map +1 -1
- package/lib/project/features/compiler-cache.backend.d.ts +1 -1
- package/lib/project/features/compiler-cache.backend.js +2 -2
- package/lib/project/features/compiler-cache.backend.js.map +1 -1
- package/lib/project/features/copy-manager/base-copy-manager.backend.d.ts +5 -5
- package/lib/project/features/copy-manager/base-copy-manager.backend.js +12 -13
- package/lib/project/features/copy-manager/base-copy-manager.backend.js.map +1 -1
- package/lib/project/features/copy-manager/copy-manager-helpers.backend.d.ts +1 -1
- package/lib/project/features/copy-manager/copy-manager-helpers.backend.js +5 -5
- package/lib/project/features/copy-manager/copy-manager-helpers.backend.js.map +1 -1
- package/lib/project/features/copy-manager/copy-manager-organization-angular-files.backend.d.ts +1 -1
- package/lib/project/features/copy-manager/copy-manager-organization-angular-files.backend.js +5 -4
- package/lib/project/features/copy-manager/copy-manager-organization-angular-files.backend.js.map +1 -1
- package/lib/project/features/copy-manager/copy-manager-organization.backend.d.ts +3 -3
- package/lib/project/features/copy-manager/copy-manager-organization.backend.js +30 -30
- package/lib/project/features/copy-manager/copy-manager-organization.backend.js.map +1 -1
- package/lib/project/features/copy-manager/copy-manager-standalone.backend.d.ts +5 -5
- package/lib/project/features/copy-manager/copy-manager-standalone.backend.js +19 -19
- package/lib/project/features/copy-manager/copy-manager-standalone.backend.js.map +1 -1
- package/lib/project/features/copy-manager/copy-manager.backend.d.ts +2 -2
- package/lib/project/features/copy-manager/copy-manager.backend.js.map +1 -1
- package/lib/project/features/copy-manager/{bundle-mjs-fesm-module-spliter.backend.d.ts → mjs-fesm-module-spliter.backend.d.ts} +1 -1
- package/lib/project/features/copy-manager/{bundle-mjs-fesm-module-spliter.backend.js → mjs-fesm-module-spliter.backend.js} +19 -19
- package/lib/project/features/copy-manager/mjs-fesm-module-spliter.backend.js.map +1 -0
- package/lib/project/features/copy-manager/source-maping-url.backend.js +1 -1
- package/lib/project/features/copy-manager/source-maping-url.backend.js.map +1 -1
- package/lib/project/features/copy-manager/typescript-dts-fixer.backend.d.ts +1 -1
- package/lib/project/features/copy-manager/typescript-dts-fixer.backend.js +1 -1
- package/lib/project/features/environment-config/environment-config-helpers.d.ts +1 -1
- package/lib/project/features/environment-config/environment-config-helpers.js +4 -5
- package/lib/project/features/environment-config/environment-config-helpers.js.map +1 -1
- package/lib/project/features/environment-config/environment-config.d.ts +2 -3
- package/lib/project/features/environment-config/environment-config.js +3 -4
- package/lib/project/features/environment-config/environment-config.js.map +1 -1
- package/lib/project/features/files-recreation/files-factory.backend.d.ts +1 -1
- package/lib/project/features/files-recreation/files-factory.backend.js +2 -2
- package/lib/project/features/files-recreation/files-factory.backend.js.map +1 -1
- package/lib/project/features/files-recreation/files-recreator.d.ts +1 -1
- package/lib/project/features/files-recreation/files-recreator.js +13 -19
- package/lib/project/features/files-recreation/files-recreator.js.map +1 -1
- package/lib/project/features/files-recreation/files-structure.backend.d.ts +2 -1
- package/lib/project/features/files-recreation/files-structure.backend.js +40 -67
- package/lib/project/features/files-recreation/files-structure.backend.js.map +1 -1
- package/lib/project/features/files-recreation/files-templates.d.ts +1 -1
- package/lib/project/features/files-recreation/files-templates.js +2 -3
- package/lib/project/features/files-recreation/files-templates.js.map +1 -1
- package/lib/project/features/git-actions.backend.d.ts +2 -1
- package/lib/project/features/git-actions.backend.js +23 -26
- package/lib/project/features/git-actions.backend.js.map +1 -1
- package/lib/project/features/index.d.ts +0 -1
- package/lib/project/features/index.js +0 -1
- package/lib/project/features/index.js.map +1 -1
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-app.js +7 -7
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-app.js.map +1 -1
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-lib.js +5 -2
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-lib.js.map +1 -1
- package/lib/project/features/inside-structures/structs/inside-struct-helpers.js +2 -2
- package/lib/project/features/inside-structures/structs/inside-struct-helpers.js.map +1 -1
- package/lib/project/features/linked-repos.backend.js +2 -2
- package/lib/project/features/linked-repos.backend.js.map +1 -1
- package/lib/project/features/node-modules/node-modules-base.backend.d.ts +1 -1
- package/lib/project/features/node-modules/node-modules-base.backend.js +5 -5
- package/lib/project/features/node-modules/node-modules-base.backend.js.map +1 -1
- package/lib/project/features/node-modules/node-modules-core.backend.d.ts +2 -2
- package/lib/project/features/node-modules/node-modules-core.backend.js +4 -4
- package/lib/project/features/node-modules/node-modules-core.backend.js.map +1 -1
- package/lib/project/features/node-modules/node-modules-helpers.backend.d.ts +1 -1
- package/lib/project/features/node-modules/node-modules-helpers.backend.js +8 -9
- package/lib/project/features/node-modules/node-modules-helpers.backend.js.map +1 -1
- package/lib/project/features/npm-packages/npm-packages-base.backend.d.ts +1 -1
- package/lib/project/features/npm-packages/npm-packages-base.backend.js +2 -2
- package/lib/project/features/npm-packages/npm-packages-base.backend.js.map +1 -1
- package/lib/project/features/npm-packages/npm-packages-core.backend.d.ts +1 -1
- package/lib/project/features/npm-packages/npm-packages-core.backend.js +5 -7
- package/lib/project/features/npm-packages/npm-packages-core.backend.js.map +1 -1
- package/lib/project/features/npm-packages/npm-packages-helpers.backend.d.ts +1 -1
- package/lib/project/features/package-json/package-json-base.backend.d.ts +1 -1
- package/lib/project/features/package-json/package-json-base.backend.js +3 -3
- package/lib/project/features/package-json/package-json-base.backend.js.map +1 -1
- package/lib/project/features/package-json/package-json-core.backend.d.ts +1 -1
- package/lib/project/features/package-json/package-json-core.backend.js +4 -4
- package/lib/project/features/package-json/package-json-core.backend.js.map +1 -1
- package/lib/project/features/package-json/package-json-deps-categories.backend.d.ts +1 -1
- package/lib/project/features/package-json/package-json-deps-categories.backend.js +4 -3
- package/lib/project/features/package-json/package-json-deps-categories.backend.js.map +1 -1
- package/lib/project/features/package-json/package-json-helpers.backend.d.ts +1 -1
- package/lib/project/features/package-json/package-json-helpers.backend.js +15 -15
- package/lib/project/features/package-json/package-json-helpers.backend.js.map +1 -1
- package/lib/project/features/package-json/package-json.d.ts +1 -1
- package/lib/project/features/package-recognition/packages-recognition.js +2 -2
- package/lib/project/features/package-recognition/packages-recognition.js.map +1 -1
- package/lib/project/features/quick-fixes.d.ts +2 -1
- package/lib/project/features/quick-fixes.js +15 -16
- package/lib/project/features/quick-fixes.js.map +1 -1
- package/lib/project/features/singular-build.backend.d.ts +2 -1
- package/lib/project/features/singular-build.backend.js +5 -4
- package/lib/project/features/singular-build.backend.js.map +1 -1
- package/lib/project/features/smart-node-modules.backend.d.ts +3 -2
- package/lib/project/features/smart-node-modules.backend.js +11 -10
- package/lib/project/features/smart-node-modules.backend.js.map +1 -1
- package/lib/project/features/target-project.backend.js +0 -1
- package/lib/project/features/target-project.backend.js.map +1 -1
- package/lib/project/features/test-runner/cypress-test-runner.d.ts +1 -1
- package/lib/project/features/test-runner/cypress-test-runner.js +3 -3
- package/lib/project/features/test-runner/cypress-test-runner.js.map +1 -1
- package/lib/project/features/test-runner/jest-test-runner.d.ts +1 -1
- package/lib/project/features/test-runner/jest-test-runner.js +2 -2
- package/lib/project/features/test-runner/jest-test-runner.js.map +1 -1
- package/lib/project/features/test-runner/mocha-test-runner.d.ts +1 -1
- package/lib/project/features/test-runner/mocha-test-runner.js +3 -3
- package/lib/project/features/test-runner/mocha-test-runner.js.map +1 -1
- package/lib/project/features/webpack-backend-compilation.backend.d.ts +3 -3
- package/lib/project/features/webpack-backend-compilation.backend.js +1 -1
- package/lib/project/features/webpack-backend-compilation.backend.js.map +1 -1
- package/lib/project/index.d.ts +0 -3
- package/lib/project/index.js +0 -5
- package/lib/project/index.js.map +1 -1
- package/lib/scripts/{JAVA.backend.d.ts → CI.backend.d.ts} +1 -1
- package/lib/scripts/CI.backend.js +28 -0
- package/lib/scripts/CI.backend.js.map +1 -0
- package/lib/scripts/DEPENDENCIES-MANAGEMENT/DEPS.backend.d.ts +9 -13
- package/lib/scripts/DEPENDENCIES-MANAGEMENT/DEPS.backend.js +17 -71
- package/lib/scripts/DEPENDENCIES-MANAGEMENT/DEPS.backend.js.map +1 -1
- package/lib/scripts/HELP.backend.js +1 -1
- package/lib/scripts/HELP.backend.js.map +1 -1
- package/lib/scripts/NEW-PROJECT_FILES_MODULES/NEW.backend.d.ts +3 -0
- package/lib/scripts/NEW-PROJECT_FILES_MODULES/NEW.backend.js +19 -32
- package/lib/scripts/NEW-PROJECT_FILES_MODULES/NEW.backend.js.map +1 -1
- package/lib/scripts/NEW-PROJECT_FILES_MODULES/project-factory.backend.js +2 -1
- package/lib/scripts/NEW-PROJECT_FILES_MODULES/project-factory.backend.js.map +1 -1
- package/lib/scripts/OTHER.backend.d.ts +0 -4
- package/lib/scripts/OTHER.backend.js +7 -63
- package/lib/scripts/OTHER.backend.js.map +1 -1
- package/lib/scripts/PROJECTS-DEVELOPMENT/BRANDING.backend.js +1 -1
- package/lib/scripts/PROJECTS-DEVELOPMENT/BRANDING.backend.js.map +1 -1
- package/lib/scripts/PROJECTS-DEVELOPMENT/BUILD.backend.d.ts +2 -42
- package/lib/scripts/PROJECTS-DEVELOPMENT/BUILD.backend.js +57 -580
- package/lib/scripts/PROJECTS-DEVELOPMENT/BUILD.backend.js.map +1 -1
- package/lib/scripts/PROJECTS-DEVELOPMENT/DEVELOP.backend.d.ts +2 -0
- package/lib/scripts/PROJECTS-DEVELOPMENT/DEVELOP.backend.js +19 -6
- package/lib/scripts/PROJECTS-DEVELOPMENT/DEVELOP.backend.js.map +1 -1
- package/lib/scripts/PROJECTS-DEVELOPMENT/FILES_STRUCTURE.d.ts +0 -1
- package/lib/scripts/PROJECTS-DEVELOPMENT/FILES_STRUCTURE.js +9 -17
- package/lib/scripts/PROJECTS-DEVELOPMENT/FILES_STRUCTURE.js.map +1 -1
- package/lib/scripts/PROJECTS-DEVELOPMENT/RELEASE.backend.js +3 -3
- package/lib/scripts/PROJECTS-DEVELOPMENT/RELEASE.backend.js.map +1 -1
- package/lib/scripts/PROJECTS-DEVELOPMENT/TESTS.js.map +1 -1
- package/lib/scripts/UPDATE.backend.d.ts +0 -1
- package/lib/scripts/UPDATE.backend.js +8 -9
- package/lib/scripts/UPDATE.backend.js.map +1 -1
- package/lib/scripts/VSCODE-EXT/GIT.backend.d.ts +0 -1
- package/lib/scripts/VSCODE-EXT/GIT.backend.js +1 -8
- package/lib/scripts/VSCODE-EXT/GIT.backend.js.map +1 -1
- package/lib/scripts/VSCODE-EXT/OPEN.backend.d.ts +0 -9
- package/lib/scripts/VSCODE-EXT/OPEN.backend.js +4 -49
- package/lib/scripts/VSCODE-EXT/OPEN.backend.js.map +1 -1
- package/lib/scripts/VSCODE-EXT/VSCODE.backend.js.map +1 -1
- package/lib/scripts/index.d.ts +221 -1
- package/lib/scripts/index.js +2 -12
- package/lib/scripts/index.js.map +1 -1
- package/package.json +33 -33
- package/package.json_tnp.json5 +31 -31
- package/start.backend.d.ts +1 -1
- package/start.backend.js +13 -3
- package/start.backend.js.map +1 -1
- package/tmp-environment.json +67 -67
- package/websql/esm2022/lib/build-options.mjs +180 -0
- package/websql/esm2022/lib/constants.mjs +3 -3
- package/websql/esm2022/lib/helpers.mjs +1 -1
- package/websql/esm2022/lib/index.mjs +2 -3
- package/websql/esm2022/lib/project/abstract/feature-for-project.mjs +1 -1
- package/websql/esm2022/lib/project/abstract/index.mjs +1 -1
- package/websql/esm2022/lib/project/abstract/project/index.mjs +1 -1
- package/websql/esm2022/lib/project/abstract/project/project.mjs +1494 -70
- package/websql/esm2022/lib/project/features/package-json/index.mjs +1 -1
- package/websql/esm2022/lib/project/features/package-json/package-json-file.mjs +1 -1
- package/websql/esm2022/lib/project/features/package-json/package-json.mjs +1 -1
- package/websql/esm2022/lib/project/index.mjs +1 -5
- package/websql/esm2022/public-api.mjs +1 -1
- package/websql/esm2022/tnp.mjs +1 -1
- package/websql/fesm2022/tnp.mjs +1684 -88
- package/websql/fesm2022/tnp.mjs.map +1 -1
- package/websql/lib/build-options.d.ts +40 -0
- package/websql/lib/constants.d.ts +1 -1
- package/websql/lib/index.d.ts +1 -0
- package/websql/lib/project/abstract/project/project.d.ts +121 -6
- package/websql/lib/project/features/package-json/package-json.d.ts +1 -1
- package/git-log.d.ts +0 -1
- package/git-log.js +0 -27
- package/git-log.js.map +0 -1
- package/lib/console-ui.d.ts +0 -0
- package/lib/console-ui.js +0 -172
- package/lib/console-ui.js.map +0 -1
- package/lib/project/abstract/project/cloud-project.d.ts +0 -4
- package/lib/project/abstract/project/cloud-project.js +0 -10
- package/lib/project/abstract/project/cloud-project.js.map +0 -1
- package/lib/project/abstract/project/db-process-project.backend.d.ts +0 -2
- package/lib/project/abstract/project/db-process-project.backend.js +0 -10
- package/lib/project/abstract/project/db-process-project.backend.js.map +0 -1
- package/lib/project/abstract/project/tnp-project.js.map +0 -1
- package/lib/project/compilers/framework-file-generator/controllers-generator.backend.d.ts +0 -6
- package/lib/project/compilers/framework-file-generator/controllers-generator.backend.js +0 -17
- package/lib/project/compilers/framework-file-generator/controllers-generator.backend.js.map +0 -1
- package/lib/project/compilers/framework-file-generator/entities-generator.backend.d.ts +0 -8
- package/lib/project/compilers/framework-file-generator/entities-generator.backend.js +0 -20
- package/lib/project/compilers/framework-file-generator/entities-generator.backend.js.map +0 -1
- package/lib/project/compilers/framework-file-generator/framework-files-generator.backend.d.ts +0 -10
- package/lib/project/compilers/framework-file-generator/framework-files-generator.backend.js +0 -67
- package/lib/project/compilers/framework-file-generator/framework-files-generator.backend.js.map +0 -1
- package/lib/project/compilers/framework-file-generator/index.d.ts +0 -1
- package/lib/project/compilers/framework-file-generator/index.js +0 -7
- package/lib/project/compilers/framework-file-generator/index.js.map +0 -1
- package/lib/project/compilers/source-modifier/index.d.ts +0 -1
- package/lib/project/compilers/source-modifier/index.js +0 -7
- package/lib/project/compilers/source-modifier/index.js.map +0 -1
- package/lib/project/compilers/source-modifier/source-mod-for-standalone-projects.backend.d.ts +0 -13
- package/lib/project/compilers/source-modifier/source-mod-for-standalone-projects.backend.js +0 -181
- package/lib/project/compilers/source-modifier/source-mod-for-standalone-projects.backend.js.map +0 -1
- package/lib/project/compilers/source-modifier/source-modifier.backend.d.ts +0 -14
- package/lib/project/compilers/source-modifier/source-modifier.backend.js +0 -219
- package/lib/project/compilers/source-modifier/source-modifier.backend.js.map +0 -1
- package/lib/project/compilers/source-modifier/source-modifier.helpers.backend.d.ts +0 -2
- package/lib/project/compilers/source-modifier/source-modifier.helpers.backend.js +0 -99
- package/lib/project/compilers/source-modifier/source-modifier.helpers.backend.js.map +0 -1
- package/lib/project/compilers/source-modifier/source-modifier.models.d.ts +0 -35
- package/lib/project/compilers/source-modifier/source-modifier.models.js +0 -3
- package/lib/project/compilers/source-modifier/source-modifier.models.js.map +0 -1
- package/lib/project/features/build-process/waiting-for-builds-conditions-helpers.backend.d.ts +0 -1
- package/lib/project/features/build-process/waiting-for-builds-conditions-helpers.backend.js +0 -4
- package/lib/project/features/build-process/waiting-for-builds-conditions-helpers.backend.js.map +0 -1
- package/lib/project/features/copy-manager/bundle-mjs-fesm-module-spliter.backend.js.map +0 -1
- package/lib/project/features/extension-for-project/extension-for-project.d.ts +0 -7
- package/lib/project/features/extension-for-project/extension-for-project.js +0 -29
- package/lib/project/features/extension-for-project/extension-for-project.js.map +0 -1
- package/lib/project/features/files-recreation/files-templates/base-firedev-file-template.backend.d.ts +0 -12
- package/lib/project/features/files-recreation/files-templates/base-firedev-file-template.backend.js +0 -42
- package/lib/project/features/files-recreation/files-templates/base-firedev-file-template.backend.js.map +0 -1
- package/lib/project/features/files-recreation/files-templates/file-tmp-for-save.backend.d.ts +0 -7
- package/lib/project/features/files-recreation/files-templates/file-tmp-for-save.backend.js +0 -19
- package/lib/project/features/files-recreation/files-templates/file-tmp-for-save.backend.js.map +0 -1
- package/lib/project/features/files-recreation/files-templates/firedev-logic-ui-module-template.backend.d.ts +0 -9
- package/lib/project/features/files-recreation/files-templates/firedev-logic-ui-module-template.backend.js +0 -52
- package/lib/project/features/files-recreation/files-templates/firedev-logic-ui-module-template.backend.js.map +0 -1
- package/lib/project/features/files-recreation/files-templates/index.d.ts +0 -0
- package/lib/project/features/files-recreation/files-templates/index.js +0 -6
- package/lib/project/features/files-recreation/files-templates/index.js.map +0 -1
- package/lib/project/features/global-worker-apps.d.ts +0 -4
- package/lib/project/features/global-worker-apps.js +0 -50
- package/lib/project/features/global-worker-apps.js.map +0 -1
- package/lib/project/features/proxy-router.d.ts +0 -0
- package/lib/project/features/proxy-router.js +0 -77
- package/lib/project/features/proxy-router.js.map +0 -1
- package/lib/project/features/recent-files.backend.d.ts +0 -13
- package/lib/project/features/recent-files.backend.js +0 -126
- package/lib/project/features/recent-files.backend.js.map +0 -1
- package/lib/project/project-specyfic/index.d.ts +0 -7
- package/lib/project/project-specyfic/index.js +0 -11
- package/lib/project/project-specyfic/index.js.map +0 -1
- package/lib/project/project-specyfic/project-container.d.ts +0 -14
- package/lib/project/project-specyfic/project-container.js +0 -132
- package/lib/project/project-specyfic/project-container.js.map +0 -1
- package/lib/project/project-specyfic/project-docker.d.ts +0 -13
- package/lib/project/project-specyfic/project-docker.js +0 -136
- package/lib/project/project-specyfic/project-docker.js.map +0 -1
- package/lib/project/project-specyfic/project-isomorphic-lib.d.ts +0 -38
- package/lib/project/project-specyfic/project-isomorphic-lib.js +0 -958
- package/lib/project/project-specyfic/project-isomorphic-lib.js.map +0 -1
- package/lib/project/project-specyfic/project-navi.d.ts +0 -11
- package/lib/project/project-specyfic/project-navi.js +0 -49
- package/lib/project/project-specyfic/project-navi.js.map +0 -1
- package/lib/project/project-specyfic/project-scenario.d.ts +0 -11
- package/lib/project/project-specyfic/project-scenario.js +0 -49
- package/lib/project/project-specyfic/project-scenario.js.map +0 -1
- package/lib/project/project-specyfic/project-unknow-npm.d.ts +0 -11
- package/lib/project/project-specyfic/project-unknow-npm.js +0 -49
- package/lib/project/project-specyfic/project-unknow-npm.js.map +0 -1
- package/lib/project/project-specyfic/project-vscode-ext.d.ts +0 -13
- package/lib/project/project-specyfic/project-vscode-ext.js +0 -91
- package/lib/project/project-specyfic/project-vscode-ext.js.map +0 -1
- package/lib/project/project-specyfic/select-clients.backend.d.ts +0 -1
- package/lib/project/project-specyfic/select-clients.backend.js +0 -4
- package/lib/project/project-specyfic/select-clients.backend.js.map +0 -1
- package/lib/scripts/BASH-CONFIG.backend.d.ts +0 -5
- package/lib/scripts/BASH-CONFIG.backend.js +0 -19
- package/lib/scripts/BASH-CONFIG.backend.js.map +0 -1
- package/lib/scripts/CLOUD/CLOUD.backend.d.ts +0 -5
- package/lib/scripts/CLOUD/CLOUD.backend.js +0 -29
- package/lib/scripts/CLOUD/CLOUD.backend.js.map +0 -1
- package/lib/scripts/COMPILERS-TESTING/COMPILERS.backend.d.ts +0 -9
- package/lib/scripts/COMPILERS-TESTING/COMPILERS.backend.js +0 -91
- package/lib/scripts/COMPILERS-TESTING/COMPILERS.backend.js.map +0 -1
- package/lib/scripts/COMPILERS-TESTING/INCREMENTAL-TEST.backend.d.ts +0 -0
- package/lib/scripts/COMPILERS-TESTING/INCREMENTAL-TEST.backend.js +0 -64
- package/lib/scripts/COMPILERS-TESTING/INCREMENTAL-TEST.backend.js.map +0 -1
- package/lib/scripts/COMPILERS-TESTING/index.d.ts +0 -1
- package/lib/scripts/COMPILERS-TESTING/index.js +0 -7
- package/lib/scripts/COMPILERS-TESTING/index.js.map +0 -1
- package/lib/scripts/DAEMON.backend.d.ts +0 -2
- package/lib/scripts/DAEMON.backend.js +0 -5
- package/lib/scripts/DAEMON.backend.js.map +0 -1
- package/lib/scripts/JAVA.backend.js +0 -48
- package/lib/scripts/JAVA.backend.js.map +0 -1
|
@@ -4,62 +4,18 @@ exports.DocsActions = void 0;
|
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
//#region imports
|
|
6
6
|
var tnp_core_1 = require("tnp-core");
|
|
7
|
-
var
|
|
8
|
-
var project_1 = require("../../project");
|
|
7
|
+
var project_1 = require("../../project/abstract/project/project");
|
|
9
8
|
var tnp_config_1 = require("tnp-config");
|
|
10
9
|
var tnp_helpers_1 = require("tnp-helpers");
|
|
11
10
|
//#endregion
|
|
12
11
|
//#region BUILD
|
|
13
|
-
//#region BUILD /
|
|
14
|
-
var BUILD_DIST = function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
15
|
-
var proj;
|
|
16
|
-
return tslib_1.__generator(this, function (_a) {
|
|
17
|
-
switch (_a.label) {
|
|
18
|
-
case 0:
|
|
19
|
-
proj = tnp_helpers_1.Helpers.cliTool.resolveChildProject(args, project_1.Project.Current);
|
|
20
|
-
if (proj.isSmartContainerChild) {
|
|
21
|
-
proj = proj.parent;
|
|
22
|
-
}
|
|
23
|
-
return [4 /*yield*/, proj.buildProcess.startForLibFromArgs(false, false, 'dist', args)];
|
|
24
|
-
case 1:
|
|
25
|
-
_a.sent();
|
|
26
|
-
return [2 /*return*/];
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
}); };
|
|
30
|
-
var BUILD_DIST_WATCH = function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
31
|
-
return tslib_1.__generator(this, function (_a) {
|
|
32
|
-
return [2 /*return*/, project_1.Project.Current
|
|
33
|
-
.buildProcess
|
|
34
|
-
.startForLibFromArgs(false, true, 'dist', args)];
|
|
35
|
-
});
|
|
36
|
-
}); };
|
|
37
|
-
var DEV = function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
38
|
-
return tslib_1.__generator(this, function (_a) {
|
|
39
|
-
args = "".concat(args, " --skipCopyToSelection");
|
|
40
|
-
return [2 /*return*/, project_1.Project.Current
|
|
41
|
-
.buildProcess
|
|
42
|
-
.startForLibFromArgs(false, true, 'dist', args)];
|
|
43
|
-
});
|
|
44
|
-
}); };
|
|
45
|
-
var $CLEAN_BUILD = function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
46
|
-
return tslib_1.__generator(this, function (_a) {
|
|
47
|
-
switch (_a.label) {
|
|
48
|
-
case 0:
|
|
49
|
-
args += ' --nocache';
|
|
50
|
-
return [4 /*yield*/, BUILD_DIST(args)];
|
|
51
|
-
case 1:
|
|
52
|
-
_a.sent();
|
|
53
|
-
return [2 /*return*/];
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
}); };
|
|
12
|
+
//#region BUILD / build:watch
|
|
57
13
|
var $BUILD_WATCH = function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
58
14
|
var proj;
|
|
59
15
|
return tslib_1.__generator(this, function (_a) {
|
|
60
16
|
switch (_a.label) {
|
|
61
17
|
case 0:
|
|
62
|
-
proj =
|
|
18
|
+
proj = project_1.Project.resolveChildProject(args);
|
|
63
19
|
if (!proj.isSmartContainerChild) return [3 /*break*/, 1];
|
|
64
20
|
tnp_helpers_1.Helpers.error("Smart container build only available from container level. ", false, true);
|
|
65
21
|
return [3 /*break*/, 3];
|
|
@@ -76,44 +32,14 @@ var $BUILD_WATCH = function (args) { return tslib_1.__awaiter(void 0, void 0, vo
|
|
|
76
32
|
}
|
|
77
33
|
});
|
|
78
34
|
}); };
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region BUILD / build
|
|
79
37
|
var $BUILD = function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
80
|
-
return tslib_1.__generator(this, function (_a) {
|
|
81
|
-
switch (_a.label) {
|
|
82
|
-
case 0: return [4 /*yield*/, $BUILD_WATCH(args)];
|
|
83
|
-
case 1:
|
|
84
|
-
_a.sent();
|
|
85
|
-
return [2 /*return*/];
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
}); };
|
|
89
|
-
var $BUILD_TO_ALL = function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
90
|
-
var proj;
|
|
91
|
-
return tslib_1.__generator(this, function (_a) {
|
|
92
|
-
switch (_a.label) {
|
|
93
|
-
case 0:
|
|
94
|
-
proj = tnp_helpers_1.Helpers.cliTool.resolveChildProject(args, project_1.Project.Current);
|
|
95
|
-
if (!proj.isSmartContainerChild) return [3 /*break*/, 1];
|
|
96
|
-
tnp_helpers_1.Helpers.error("Smart container build only available from container level. ", false, true);
|
|
97
|
-
return [3 /*break*/, 3];
|
|
98
|
-
case 1:
|
|
99
|
-
if ((proj.isStandaloneProject || proj.isSmartContainer) && proj.typeIsNot('vscode-ext')) {
|
|
100
|
-
// TODO skipCopyToSelection no loger ipmortant
|
|
101
|
-
args = "".concat(args, " --skipCopyToSelection --copytoAll");
|
|
102
|
-
}
|
|
103
|
-
return [4 /*yield*/, proj.buildProcess.startForLibFromArgs(false, false, 'dist', args)];
|
|
104
|
-
case 2:
|
|
105
|
-
_a.sent();
|
|
106
|
-
_a.label = 3;
|
|
107
|
-
case 3: return [2 /*return*/];
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
}); };
|
|
111
|
-
var $BUILD_UP = function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
112
38
|
var proj;
|
|
113
39
|
return tslib_1.__generator(this, function (_a) {
|
|
114
40
|
switch (_a.label) {
|
|
115
41
|
case 0:
|
|
116
|
-
proj =
|
|
42
|
+
proj = project_1.Project.resolveChildProject(args);
|
|
117
43
|
if (!proj.isSmartContainerChild) return [3 /*break*/, 1];
|
|
118
44
|
tnp_helpers_1.Helpers.error("Smart container build only available from container level. ", false, true);
|
|
119
45
|
return [3 /*break*/, 3];
|
|
@@ -131,160 +57,67 @@ var $BUILD_UP = function (args) { return tslib_1.__awaiter(void 0, void 0, void
|
|
|
131
57
|
});
|
|
132
58
|
}); };
|
|
133
59
|
//#endregion
|
|
134
|
-
//#region BUILD /
|
|
60
|
+
//#region BUILD / default:build (vscpde ctr|cmd + shift + b)
|
|
61
|
+
/**
|
|
62
|
+
* For vscode default build
|
|
63
|
+
*/
|
|
135
64
|
function $DEFAULT_BUILD(args) {
|
|
136
65
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
137
|
-
var project;
|
|
138
66
|
return tslib_1.__generator(this, function (_a) {
|
|
139
67
|
switch (_a.label) {
|
|
140
|
-
case 0:
|
|
141
|
-
project = project_1.Project.Current;
|
|
142
|
-
if (!project.isStandaloneProject) return [3 /*break*/, 3];
|
|
143
|
-
if (!project.typeIs('isomorphic-lib')) return [3 /*break*/, 2];
|
|
144
|
-
return [4 /*yield*/, BUILD_DIST_WATCH(args)];
|
|
68
|
+
case 0: return [4 /*yield*/, $BUILD_WATCH(args)];
|
|
145
69
|
case 1:
|
|
146
70
|
_a.sent();
|
|
147
|
-
|
|
148
|
-
case 2: return [3 /*break*/, 4];
|
|
149
|
-
case 3:
|
|
150
|
-
process.exit(0);
|
|
151
|
-
_a.label = 4;
|
|
152
|
-
case 4: return [2 /*return*/];
|
|
71
|
+
return [2 /*return*/];
|
|
153
72
|
}
|
|
154
73
|
});
|
|
155
74
|
});
|
|
156
75
|
}
|
|
157
76
|
//#endregion
|
|
158
|
-
//#region BUILD /
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}); };
|
|
166
|
-
var BUILD_APP_WATCH = function (args) { return project_1.Project.Current.buildProcess.startForAppFromArgs(false, true, 'dist', args); };
|
|
77
|
+
//#region BUILD / app
|
|
78
|
+
/**
|
|
79
|
+
* watch build for app
|
|
80
|
+
*
|
|
81
|
+
* $ firedev app # sqlite (default), mysql, postgress + docker up
|
|
82
|
+
* $ firedev app --websql # in browser websql
|
|
83
|
+
*/
|
|
167
84
|
var $APP = function (args) { return project_1.Project.Current.buildProcess.startForAppFromArgs(false, true, 'dist', args); };
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
var
|
|
181
|
-
args += ' --ngbuildonly';
|
|
182
|
-
return project_1.Project.Current.buildProcess.startForLibFromArgs(false, true, 'dist', args);
|
|
183
|
-
};
|
|
184
|
-
var BUILD_DIST_ALL = function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region BUILD / build app prod
|
|
87
|
+
var $BUILD_APP_PROD = function (args) { return project_1.Project.Current.buildProcess.startForAppFromArgs(true, false, 'dist', args); };
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region BUILD / build app
|
|
90
|
+
var $BUILD_APP = function (args) { return project_1.Project.Current.buildProcess.startForAppFromArgs(false, false, 'dist', args); };
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region BUILD / start
|
|
93
|
+
/**
|
|
94
|
+
* quick lib/app bootstrapp watch build
|
|
95
|
+
*/
|
|
96
|
+
var $START = function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
97
|
+
var proj;
|
|
185
98
|
return tslib_1.__generator(this, function (_a) {
|
|
186
99
|
switch (_a.label) {
|
|
187
100
|
case 0:
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
101
|
+
proj = project_1.Project.resolveChildProject(args);
|
|
102
|
+
if (!(proj.isStandaloneProject || proj.isSmartContainer)) return [3 /*break*/, 2];
|
|
103
|
+
if (proj.typeIsNot('vscode-ext')) {
|
|
104
|
+
// TODO skipCopyToSelection no loger ipmortant
|
|
105
|
+
args = "".concat(args, " --skipCopyToSelection --copytoAll");
|
|
106
|
+
}
|
|
107
|
+
args = "".concat(args, " --serveApp");
|
|
108
|
+
return [4 /*yield*/, project_1.Project.Current
|
|
109
|
+
.buildProcess
|
|
110
|
+
.startForLibFromArgs(false, true, 'dist', args)];
|
|
192
111
|
case 1:
|
|
193
112
|
_a.sent();
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
});
|
|
197
|
-
}); };
|
|
198
|
-
var BUILD_BUNDLE = function (args) { return project_1.Project.Current.buildProcess.startForLibFromArgs(false, false, 'bundle', args); };
|
|
199
|
-
var BUILD_BUNDLE_PROD = function (args) { return project_1.Project.Current.buildProcess.startForLibFromArgs(true, false, 'bundle', args); };
|
|
200
|
-
var $BUILD_BUNDLE_APP_PROD = function (args) { return project_1.Project.Current.buildProcess.startForAppFromArgs(true, false, 'bundle', args); };
|
|
201
|
-
function BUILD_LIB(args) {
|
|
202
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
203
|
-
return tslib_1.__generator(this, function (_a) {
|
|
204
|
-
switch (_a.label) {
|
|
205
|
-
case 0: return [4 /*yield*/, BUILD_DIST(args)];
|
|
206
|
-
case 1:
|
|
207
|
-
_a.sent();
|
|
208
|
-
return [2 /*return*/];
|
|
209
|
-
}
|
|
210
|
-
});
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
function BD(args) {
|
|
214
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
215
|
-
return tslib_1.__generator(this, function (_a) {
|
|
216
|
-
switch (_a.label) {
|
|
217
|
-
case 0: return [4 /*yield*/, BUILD_DIST(args)];
|
|
218
|
-
case 1:
|
|
219
|
-
_a.sent();
|
|
220
|
-
return [2 /*return*/];
|
|
221
|
-
}
|
|
222
|
-
});
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
function BL(args) {
|
|
226
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
227
|
-
return tslib_1.__generator(this, function (_a) {
|
|
228
|
-
switch (_a.label) {
|
|
229
|
-
case 0: return [4 /*yield*/, BUILD_DIST(args)];
|
|
230
|
-
case 1:
|
|
231
|
-
_a.sent();
|
|
232
|
-
return [2 /*return*/];
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
function BB(args) {
|
|
238
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
239
|
-
return tslib_1.__generator(this, function (_a) {
|
|
240
|
-
switch (_a.label) {
|
|
241
|
-
case 0: return [4 /*yield*/, BUILD_BUNDLE(args)];
|
|
242
|
-
case 1:
|
|
243
|
-
_a.sent();
|
|
244
|
-
return [2 /*return*/];
|
|
245
|
-
}
|
|
246
|
-
});
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
var $BUILD_DIST_PROD = function (args) { return project_1.Project.Current.buildProcess.startForLibFromArgs(true, false, 'dist', args); };
|
|
250
|
-
var $BUILD_BUNDLE_WATCH = function (args) { return project_1.Project.Current.buildProcess.startForLibFromArgs(false, true, 'bundle', args); };
|
|
251
|
-
var $BUILD_BUNDLE_PROD = function (args) { return project_1.Project.Current.buildProcess.startForLibFromArgs(true, false, 'bundle', args); };
|
|
252
|
-
var $BUILD_BUNDLE_PROD_WATCH = function (args) { return project_1.Project.Current.buildProcess.startForLibFromArgs(true, true, 'bundle', args); };
|
|
253
|
-
var $BUILD_APP_PROD = function (args) { return project_1.Project.Current.buildProcess.startForAppFromArgs(true, false, 'dist', args); };
|
|
254
|
-
var $BUILD_APP = function (args) { return project_1.Project.Current.buildProcess.startForAppFromArgs(false, false, 'dist', args); };
|
|
255
|
-
var $BUILD_DIST_APP = function (args) { return project_1.Project.Current.buildProcess.startForAppFromArgs(false, false, 'dist', args); };
|
|
256
|
-
var $BUILD_BUNDLE_APP = function (args) { return project_1.Project.Current.buildProcess.startForAppFromArgs(false, false, 'bundle', args); };
|
|
257
|
-
var $BUILD_APP_WATCH_PROD = function (args) { return project_1.Project.Current.buildProcess.startForAppFromArgs(false, true, 'dist', args); };
|
|
258
|
-
var $BUILD_PROD = function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
259
|
-
var _a, _b;
|
|
260
|
-
return tslib_1.__generator(this, function (_c) {
|
|
261
|
-
switch (_c.label) {
|
|
262
|
-
case 0:
|
|
263
|
-
if (!(_a = project_1.Project.Current).typeIs.apply(_a, tslib_1.__spreadArray([], tslib_1.__read(tnp_config_1.config.allowedTypes.libs), false))) return [3 /*break*/, 2];
|
|
264
|
-
return [4 /*yield*/, project_1.Project.Current.buildProcess.startForLibFromArgs(true, false, 'dist', args)];
|
|
265
|
-
case 1:
|
|
266
|
-
_c.sent();
|
|
267
|
-
_c.label = 2;
|
|
268
|
-
case 2:
|
|
269
|
-
if (!(_b = project_1.Project.Current).typeIs.apply(_b, tslib_1.__spreadArray([], tslib_1.__read(tnp_config_1.config.allowedTypes.app), false))) return [3 /*break*/, 4];
|
|
270
|
-
return [4 /*yield*/, project_1.Project.Current.buildProcess.startForAppFromArgs(true, false, 'dist', args)];
|
|
271
|
-
case 3:
|
|
272
|
-
_c.sent();
|
|
273
|
-
_c.label = 4;
|
|
274
|
-
case 4:
|
|
275
|
-
process.exit(0);
|
|
276
|
-
return [2 /*return*/];
|
|
113
|
+
_a.label = 2;
|
|
114
|
+
case 2: return [2 /*return*/];
|
|
277
115
|
}
|
|
278
116
|
});
|
|
279
117
|
}); };
|
|
280
|
-
var BUILD_LIB_WATCH = function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () { return tslib_1.__generator(this, function (_a) {
|
|
281
|
-
return [2 /*return*/, BUILD_DIST_WATCH(args)];
|
|
282
|
-
}); }); };
|
|
283
|
-
var BDW = function (args) { return BUILD_DIST_WATCH(args); };
|
|
284
|
-
var BLW = function (args) { return BUILD_DIST_WATCH(args); };
|
|
285
|
-
var $BAW = function (args) { return BUILD_APP_WATCH(args); };
|
|
286
118
|
//#endregion
|
|
287
|
-
//#
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region MKDOCS
|
|
288
121
|
exports.DocsActions = {
|
|
289
122
|
/* */
|
|
290
123
|
/* */
|
|
@@ -318,7 +151,10 @@ exports.DocsActions = {
|
|
|
318
151
|
},
|
|
319
152
|
},
|
|
320
153
|
};
|
|
321
|
-
|
|
154
|
+
/**
|
|
155
|
+
* documentation from /documentation folder NOT /docs fodler
|
|
156
|
+
*/
|
|
157
|
+
function $MKDOCS(args) {
|
|
322
158
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
323
159
|
var proj, res;
|
|
324
160
|
return tslib_1.__generator(this, function (_a) {
|
|
@@ -351,278 +187,8 @@ function $DOCS(args) {
|
|
|
351
187
|
});
|
|
352
188
|
});
|
|
353
189
|
}
|
|
354
|
-
function $BUILD_DOCS(args) {
|
|
355
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
356
|
-
return tslib_1.__generator(this, function (_a) {
|
|
357
|
-
switch (_a.label) {
|
|
358
|
-
case 0:
|
|
359
|
-
if (!project_1.Project.Current.isStandaloneProject) return [3 /*break*/, 3];
|
|
360
|
-
return [4 /*yield*/, project_1.Project.Current.filesStructure.init('')];
|
|
361
|
-
case 1:
|
|
362
|
-
_a.sent();
|
|
363
|
-
return [4 /*yield*/, project_1.Project.Current.buildProcess.startForAppFromArgs(false, false, 'dist', args)];
|
|
364
|
-
case 2:
|
|
365
|
-
_a.sent();
|
|
366
|
-
_a.label = 3;
|
|
367
|
-
case 3:
|
|
368
|
-
process.exit(0);
|
|
369
|
-
return [2 /*return*/];
|
|
370
|
-
}
|
|
371
|
-
});
|
|
372
|
-
});
|
|
373
|
-
}
|
|
374
|
-
function $BUILD_DOCS_PROD(args) {
|
|
375
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
376
|
-
return tslib_1.__generator(this, function (_a) {
|
|
377
|
-
switch (_a.label) {
|
|
378
|
-
case 0:
|
|
379
|
-
if (!project_1.Project.Current.isStandaloneProject) return [3 /*break*/, 3];
|
|
380
|
-
return [4 /*yield*/, project_1.Project.Current.filesStructure.init('')];
|
|
381
|
-
case 1:
|
|
382
|
-
_a.sent();
|
|
383
|
-
return [4 /*yield*/, project_1.Project.Current.buildProcess.startForAppFromArgs(true, false, 'dist', args)];
|
|
384
|
-
case 2:
|
|
385
|
-
_a.sent();
|
|
386
|
-
_a.label = 3;
|
|
387
|
-
case 3:
|
|
388
|
-
process.exit(0);
|
|
389
|
-
return [2 /*return*/];
|
|
390
|
-
}
|
|
391
|
-
});
|
|
392
|
-
});
|
|
393
|
-
}
|
|
394
|
-
//#endregion
|
|
395
|
-
//#endregion
|
|
396
|
-
//#region SERVE
|
|
397
|
-
var $SERVE = function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
398
|
-
return tslib_1.__generator(this, function (_a) {
|
|
399
|
-
return [2 /*return*/];
|
|
400
|
-
});
|
|
401
|
-
}); };
|
|
402
|
-
var $START = function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
403
|
-
var proj;
|
|
404
|
-
return tslib_1.__generator(this, function (_a) {
|
|
405
|
-
switch (_a.label) {
|
|
406
|
-
case 0:
|
|
407
|
-
proj = tnp_helpers_1.Helpers.cliTool.resolveChildProject(args, project_1.Project.Current);
|
|
408
|
-
if (!(proj.isStandaloneProject || proj.isSmartContainer)) return [3 /*break*/, 2];
|
|
409
|
-
if (proj.typeIsNot('vscode-ext')) {
|
|
410
|
-
// TODO skipCopyToSelection no loger ipmortant
|
|
411
|
-
args = "".concat(args, " --skipCopyToSelection --copytoAll");
|
|
412
|
-
}
|
|
413
|
-
args = "".concat(args, " --serveApp");
|
|
414
|
-
return [4 /*yield*/, project_1.Project.Current
|
|
415
|
-
.buildProcess
|
|
416
|
-
.startForLibFromArgs(false, true, 'dist', args)];
|
|
417
|
-
case 1:
|
|
418
|
-
_a.sent();
|
|
419
|
-
_a.label = 2;
|
|
420
|
-
case 2: return [2 /*return*/];
|
|
421
|
-
}
|
|
422
|
-
});
|
|
423
|
-
}); };
|
|
424
|
-
// const $START_WATCH = async (args) => {
|
|
425
|
-
// const proj = Helpers.cliTool.resolveChildProject(args, Project.Current) as Project;
|
|
426
|
-
// if (proj.isStandaloneProject || proj.isSmartContainer) {
|
|
427
|
-
// if (proj.typeIsNot('vscode-ext')) {
|
|
428
|
-
// // TODO skipCopyToSelection no loger ipmortant
|
|
429
|
-
// args = `${args} --skipCopyToSelection --copytoAll`;
|
|
430
|
-
// }
|
|
431
|
-
// args = `${args} --serveApp`;
|
|
432
|
-
// await (Project.Current as Project)
|
|
433
|
-
// .buildProcess
|
|
434
|
-
// .startForLibFromArgs(false, true, 'dist', args);
|
|
435
|
-
// }
|
|
436
|
-
// };
|
|
437
|
-
var $REVERT = function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
438
|
-
var deleteGlobalPkg, restorePreviousGlobalPkg, whenNothing, getPackagesFromContainer, proj, projName, container, isSmartContainer, packageName, wasOriginaly, prefixedPath, orgNormalPath;
|
|
439
|
-
return tslib_1.__generator(this, function (_a) {
|
|
440
|
-
switch (_a.label) {
|
|
441
|
-
case 0:
|
|
442
|
-
deleteGlobalPkg = function (prefixedPath, isSmartContainer, packageName, container) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
443
|
-
var orgNormalPath;
|
|
444
|
-
return tslib_1.__generator(this, function (_a) {
|
|
445
|
-
switch (_a.label) {
|
|
446
|
-
case 0:
|
|
447
|
-
tnp_helpers_1.Helpers.info("\nPackage".concat(isSmartContainer ? 's from' : '', " \"").concat(packageName, "\"\n").concat(isSmartContainer ? 'were' : 'was', " not originally in global container.\n "));
|
|
448
|
-
return [4 /*yield*/, tnp_helpers_1.Helpers.questionYesNo("Would you like to remove this package from global container ?")];
|
|
449
|
-
case 1:
|
|
450
|
-
if (_a.sent()) {
|
|
451
|
-
orgNormalPath = prefixedPath.replace(tnp_config_1.PREFIXES.RESTORE_NPM, '');
|
|
452
|
-
tnp_helpers_1.Helpers.removeFolderIfExists(orgNormalPath);
|
|
453
|
-
tnp_helpers_1.Helpers.success("DONE package".concat(isSmartContainer ? 's from' : '', " ").concat(packageName, " removed from global container (since they don't belong to him)."));
|
|
454
|
-
}
|
|
455
|
-
return [2 /*return*/];
|
|
456
|
-
}
|
|
457
|
-
});
|
|
458
|
-
}); };
|
|
459
|
-
restorePreviousGlobalPkg = function (prefixedPath, isSmartContainer, packageName, ask) {
|
|
460
|
-
if (ask === void 0) { ask = false; }
|
|
461
|
-
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
462
|
-
var restoreAction;
|
|
463
|
-
return tslib_1.__generator(this, function (_a) {
|
|
464
|
-
switch (_a.label) {
|
|
465
|
-
case 0:
|
|
466
|
-
restoreAction = function () { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
467
|
-
var orgNormalPath;
|
|
468
|
-
return tslib_1.__generator(this, function (_a) {
|
|
469
|
-
orgNormalPath = prefixedPath.replace(tnp_config_1.PREFIXES.RESTORE_NPM, '');
|
|
470
|
-
tnp_helpers_1.Helpers.removeFolderIfExists(orgNormalPath);
|
|
471
|
-
tnp_helpers_1.Helpers.move(prefixedPath, orgNormalPath);
|
|
472
|
-
if (isSmartContainer) {
|
|
473
|
-
tnp_helpers_1.Helpers.info("Revert done.. now you are using globally npm version of packages from \"".concat(packageName, "\""));
|
|
474
|
-
}
|
|
475
|
-
else {
|
|
476
|
-
tnp_helpers_1.Helpers.info("Revert done.. now you are using globally npm version of package \"".concat(packageName, "\""));
|
|
477
|
-
}
|
|
478
|
-
tnp_helpers_1.Helpers.success("DONE package".concat(isSmartContainer ? 's from' : '', " ").concat(packageName, " reverted to original state in core container."));
|
|
479
|
-
return [2 /*return*/];
|
|
480
|
-
});
|
|
481
|
-
}); };
|
|
482
|
-
if (!ask) return [3 /*break*/, 4];
|
|
483
|
-
return [4 /*yield*/, tnp_helpers_1.Helpers.questionYesNo("Are you sure about globally reverting package".concat(isSmartContainer ? 's from' : '', " ").concat(packageName, " ?"))];
|
|
484
|
-
case 1:
|
|
485
|
-
if (!_a.sent()) return [3 /*break*/, 3];
|
|
486
|
-
return [4 /*yield*/, restoreAction()];
|
|
487
|
-
case 2:
|
|
488
|
-
_a.sent();
|
|
489
|
-
_a.label = 3;
|
|
490
|
-
case 3: return [3 /*break*/, 6];
|
|
491
|
-
case 4: return [4 /*yield*/, restoreAction()];
|
|
492
|
-
case 5:
|
|
493
|
-
_a.sent();
|
|
494
|
-
_a.label = 6;
|
|
495
|
-
case 6: return [2 /*return*/];
|
|
496
|
-
}
|
|
497
|
-
});
|
|
498
|
-
});
|
|
499
|
-
};
|
|
500
|
-
whenNothing = function (packageName, container) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
501
|
-
var packages, choices, selected, index, toRestore, packageName_1;
|
|
502
|
-
return tslib_1.__generator(this, function (_a) {
|
|
503
|
-
switch (_a.label) {
|
|
504
|
-
case 0:
|
|
505
|
-
tnp_helpers_1.Helpers.info("Nothing to globally revert for package \"".concat(packageName, "\""));
|
|
506
|
-
packages = tnp_helpers_1.Helpers
|
|
507
|
-
.foldersFrom(container.smartNodeModules.path)
|
|
508
|
-
.filter(function (f) { return tnp_core_2.path.basename(f).startsWith(tnp_config_1.PREFIXES.RESTORE_NPM); });
|
|
509
|
-
if (!(packages.length > 0)) return [3 /*break*/, 6];
|
|
510
|
-
return [4 /*yield*/, tnp_helpers_1.Helpers.questionYesNo("Would you like to see a list of packages that can be reverted ?")];
|
|
511
|
-
case 1:
|
|
512
|
-
if (!_a.sent()) return [3 /*break*/, 6];
|
|
513
|
-
choices = packages.map(function (c) {
|
|
514
|
-
return {
|
|
515
|
-
name: tnp_core_2.path.basename(c).replace(tnp_config_1.PREFIXES.RESTORE_NPM, ''),
|
|
516
|
-
value: c
|
|
517
|
-
};
|
|
518
|
-
});
|
|
519
|
-
return [4 /*yield*/, tnp_helpers_1.Helpers.multipleChoicesAsk('Choose packages to revert', choices)];
|
|
520
|
-
case 2:
|
|
521
|
-
selected = _a.sent();
|
|
522
|
-
index = 0;
|
|
523
|
-
_a.label = 3;
|
|
524
|
-
case 3:
|
|
525
|
-
if (!(index < selected.length)) return [3 /*break*/, 6];
|
|
526
|
-
toRestore = selected[index];
|
|
527
|
-
packageName_1 = tnp_core_2.path.basename(toRestore).replace(tnp_config_1.PREFIXES.RESTORE_NPM, '');
|
|
528
|
-
return [4 /*yield*/, restorePreviousGlobalPkg(toRestore, packageName_1.startsWith('@'), packageName_1)];
|
|
529
|
-
case 4:
|
|
530
|
-
_a.sent();
|
|
531
|
-
_a.label = 5;
|
|
532
|
-
case 5:
|
|
533
|
-
index++;
|
|
534
|
-
return [3 /*break*/, 3];
|
|
535
|
-
case 6: return [2 /*return*/];
|
|
536
|
-
}
|
|
537
|
-
});
|
|
538
|
-
}); };
|
|
539
|
-
getPackagesFromContainer = function (container, packageName) {
|
|
540
|
-
container.packageJson.showDeps('For reverting packages');
|
|
541
|
-
var pj = tnp_helpers_1.Helpers.readJson(container.packageJson.path);
|
|
542
|
-
var availablePackages = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, ((pj === null || pj === void 0 ? void 0 : pj.dependencies) || {})), ((pj === null || pj === void 0 ? void 0 : pj.devDependencies) || {})), ((pj === null || pj === void 0 ? void 0 : pj.peerDependencies) || {}));
|
|
543
|
-
var wasOriginaly = !tnp_core_1._.isUndefined(Object.keys(availablePackages).find(function (key) { return key.startsWith(packageName); }));
|
|
544
|
-
return wasOriginaly;
|
|
545
|
-
};
|
|
546
|
-
proj = project_1.Project.Current;
|
|
547
|
-
projName = (args.trim() === '') ? proj === null || proj === void 0 ? void 0 : proj.name : args.trim();
|
|
548
|
-
container = project_1.Project.by('container', proj._frameworkVersion);
|
|
549
|
-
if (!container) return [3 /*break*/, 9];
|
|
550
|
-
isSmartContainer = (args.trim() === '') ? proj === null || proj === void 0 ? void 0 : proj.isSmartContainer : projName.startsWith('@');
|
|
551
|
-
packageName = (isSmartContainer ? '@' : '') + projName;
|
|
552
|
-
wasOriginaly = getPackagesFromContainer(container, packageName);
|
|
553
|
-
prefixedPath = (0, tnp_core_1.crossPlatformPath)([container.smartNodeModules.path, (tnp_config_1.PREFIXES.RESTORE_NPM + packageName)]);
|
|
554
|
-
orgNormalPath = prefixedPath.replace(tnp_config_1.PREFIXES.RESTORE_NPM, '');
|
|
555
|
-
if (!wasOriginaly) return [3 /*break*/, 5];
|
|
556
|
-
if (!tnp_helpers_1.Helpers.exists(prefixedPath)) return [3 /*break*/, 2];
|
|
557
|
-
return [4 /*yield*/, restorePreviousGlobalPkg(prefixedPath, isSmartContainer, packageName, true)];
|
|
558
|
-
case 1:
|
|
559
|
-
_a.sent();
|
|
560
|
-
return [3 /*break*/, 4];
|
|
561
|
-
case 2: return [4 /*yield*/, whenNothing(packageName, container)];
|
|
562
|
-
case 3:
|
|
563
|
-
_a.sent();
|
|
564
|
-
_a.label = 4;
|
|
565
|
-
case 4: return [3 /*break*/, 9];
|
|
566
|
-
case 5:
|
|
567
|
-
if (!tnp_helpers_1.Helpers.exists(orgNormalPath)) return [3 /*break*/, 7];
|
|
568
|
-
return [4 /*yield*/, deleteGlobalPkg(prefixedPath, isSmartContainer, packageName, container)];
|
|
569
|
-
case 6:
|
|
570
|
-
_a.sent();
|
|
571
|
-
return [3 /*break*/, 9];
|
|
572
|
-
case 7: return [4 /*yield*/, whenNothing(packageName, container)];
|
|
573
|
-
case 8:
|
|
574
|
-
_a.sent();
|
|
575
|
-
_a.label = 9;
|
|
576
|
-
case 9:
|
|
577
|
-
process.exit(0);
|
|
578
|
-
return [2 /*return*/];
|
|
579
|
-
}
|
|
580
|
-
});
|
|
581
|
-
}); };
|
|
582
|
-
var $RUN = function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
583
|
-
return tslib_1.__generator(this, function (_a) {
|
|
584
|
-
return [2 /*return*/];
|
|
585
|
-
});
|
|
586
|
-
}); };
|
|
587
190
|
//#endregion
|
|
588
|
-
//#region
|
|
589
|
-
var $RECREATE = function () {
|
|
590
|
-
var proj = project_1.Project.Current;
|
|
591
|
-
if (proj.isContainer) {
|
|
592
|
-
var childs = proj.children
|
|
593
|
-
.filter(function (c) { return c.frameworkVersionAtLeast('v2') && !c.isTnp; });
|
|
594
|
-
for (var index = 0; index < childs.length; index++) {
|
|
595
|
-
var c = childs[index];
|
|
596
|
-
c.git.restoreLastVersion(tnp_config_1.config.file.package_json);
|
|
597
|
-
}
|
|
598
|
-
project_1.Project.projects = [];
|
|
599
|
-
for (var index = 0; index < childs.length; index++) {
|
|
600
|
-
var c = childs[index];
|
|
601
|
-
childs[index] = project_1.Project.From(c.location);
|
|
602
|
-
c = childs[index];
|
|
603
|
-
tnp_helpers_1.Helpers.info("Saving package for ".concat(c.location));
|
|
604
|
-
c.packageJson.save("rereating container");
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
process.exit(0);
|
|
608
|
-
};
|
|
609
|
-
var $BACKUP = function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
610
|
-
var proj;
|
|
611
|
-
return tslib_1.__generator(this, function (_a) {
|
|
612
|
-
switch (_a.label) {
|
|
613
|
-
case 0:
|
|
614
|
-
proj = tnp_helpers_1.Helpers.cliTool.resolveChildProject(args, project_1.Project.Current);
|
|
615
|
-
if (!proj.isDocker) return [3 /*break*/, 2];
|
|
616
|
-
return [4 /*yield*/, proj.saveToFile()];
|
|
617
|
-
case 1:
|
|
618
|
-
_a.sent();
|
|
619
|
-
_a.label = 2;
|
|
620
|
-
case 2:
|
|
621
|
-
process.exit(0);
|
|
622
|
-
return [2 /*return*/];
|
|
623
|
-
}
|
|
624
|
-
});
|
|
625
|
-
}); };
|
|
191
|
+
//#region VSCODE INSTALL LOCALLY
|
|
626
192
|
var $INSTALL_LOCALLY = function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
627
193
|
var argsObj, proj;
|
|
628
194
|
return tslib_1.__generator(this, function (_a) {
|
|
@@ -630,7 +196,7 @@ var $INSTALL_LOCALLY = function (args) { return tslib_1.__awaiter(void 0, void 0
|
|
|
630
196
|
case 0:
|
|
631
197
|
argsObj = require('minimist')(args.split(' '));
|
|
632
198
|
argsObj.args = args;
|
|
633
|
-
proj =
|
|
199
|
+
proj = project_1.Project.resolveChildProject(args);
|
|
634
200
|
if (!proj.isVscodeExtension) return [3 /*break*/, 2];
|
|
635
201
|
return [4 /*yield*/, proj.vscodext.installLocaly(argsObj)];
|
|
636
202
|
case 1:
|
|
@@ -642,53 +208,6 @@ var $INSTALL_LOCALLY = function (args) { return tslib_1.__awaiter(void 0, void 0
|
|
|
642
208
|
}
|
|
643
209
|
});
|
|
644
210
|
}); };
|
|
645
|
-
var $STOP = function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
646
|
-
var proj;
|
|
647
|
-
return tslib_1.__generator(this, function (_a) {
|
|
648
|
-
proj = tnp_helpers_1.Helpers.cliTool.resolveChildProject(args, project_1.Project.Current);
|
|
649
|
-
if (proj) {
|
|
650
|
-
proj.stop();
|
|
651
|
-
}
|
|
652
|
-
process.exit(0);
|
|
653
|
-
return [2 /*return*/];
|
|
654
|
-
});
|
|
655
|
-
}); };
|
|
656
|
-
//#endregion
|
|
657
|
-
//#region rebuild
|
|
658
|
-
// TODO
|
|
659
|
-
var $REBUILD = function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
660
|
-
var proj, children, children_1, children_1_1, child;
|
|
661
|
-
var e_1, _a;
|
|
662
|
-
return tslib_1.__generator(this, function (_b) {
|
|
663
|
-
switch (_b.label) {
|
|
664
|
-
case 0:
|
|
665
|
-
proj = tnp_helpers_1.Helpers.cliTool.resolveChildProject(args, project_1.Project.Current);
|
|
666
|
-
if (!(proj === null || proj === void 0 ? void 0 : proj.isContainer)) return [3 /*break*/, 1];
|
|
667
|
-
children = proj.projectsInOrderForChainBuild();
|
|
668
|
-
try {
|
|
669
|
-
for (children_1 = tslib_1.__values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {
|
|
670
|
-
child = children_1_1.value;
|
|
671
|
-
console.log(child.genericName);
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
675
|
-
finally {
|
|
676
|
-
try {
|
|
677
|
-
if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);
|
|
678
|
-
}
|
|
679
|
-
finally { if (e_1) throw e_1.error; }
|
|
680
|
-
}
|
|
681
|
-
return [3 /*break*/, 3];
|
|
682
|
-
case 1: return [4 /*yield*/, $BUILD_WATCH(args)];
|
|
683
|
-
case 2:
|
|
684
|
-
_b.sent();
|
|
685
|
-
_b.label = 3;
|
|
686
|
-
case 3:
|
|
687
|
-
process.exit(0);
|
|
688
|
-
return [2 /*return*/];
|
|
689
|
-
}
|
|
690
|
-
});
|
|
691
|
-
}); };
|
|
692
211
|
//#endregion
|
|
693
212
|
//#region electron
|
|
694
213
|
var ELECTRON_WATCH = function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
@@ -729,14 +248,14 @@ var ELECTRON_BUILD = function (args) { return tslib_1.__awaiter(void 0, void 0,
|
|
|
729
248
|
}
|
|
730
249
|
});
|
|
731
250
|
}); };
|
|
732
|
-
var
|
|
251
|
+
var ELECTRON_BUILD_RELEASE = function (args) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
733
252
|
var proj;
|
|
734
253
|
return tslib_1.__generator(this, function (_a) {
|
|
735
254
|
switch (_a.label) {
|
|
736
255
|
case 0:
|
|
737
256
|
proj = project_1.Project.Current;
|
|
738
257
|
if (!proj.isStandaloneProject) return [3 /*break*/, 2];
|
|
739
|
-
return [4 /*yield*/, proj.buildElectron('
|
|
258
|
+
return [4 /*yield*/, proj.buildElectron('dist', args)];
|
|
740
259
|
case 1:
|
|
741
260
|
_a.sent();
|
|
742
261
|
return [3 /*break*/, 3];
|
|
@@ -751,7 +270,7 @@ var ELECTRON_BUILD_BUNDLE = function (args) { return tslib_1.__awaiter(void 0, v
|
|
|
751
270
|
}); };
|
|
752
271
|
//#endregion
|
|
753
272
|
//#region inactive links
|
|
754
|
-
var INACTIVE_LINKS = function (
|
|
273
|
+
var INACTIVE_LINKS = function () { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
755
274
|
var proj, unexistedLinks;
|
|
756
275
|
return tslib_1.__generator(this, function (_a) {
|
|
757
276
|
proj = project_1.Project.Current;
|
|
@@ -770,58 +289,16 @@ exports.default = {
|
|
|
770
289
|
INACTIVE_LINKS: tnp_helpers_1.Helpers.CLIWRAP(INACTIVE_LINKS, 'INACTIVE_LINKS'),
|
|
771
290
|
ELECTRON_WATCH: tnp_helpers_1.Helpers.CLIWRAP(ELECTRON_WATCH, 'ELECTRON_WATCH'),
|
|
772
291
|
ELECTRON_BUILD: tnp_helpers_1.Helpers.CLIWRAP(ELECTRON_BUILD, 'ELECTRON_BUILD'),
|
|
773
|
-
|
|
774
|
-
DEV: tnp_helpers_1.Helpers.CLIWRAP(DEV, 'DEV'),
|
|
775
|
-
$REBUILD: tnp_helpers_1.Helpers.CLIWRAP($REBUILD, '$REBUILD'),
|
|
776
|
-
$BUILD_UP: tnp_helpers_1.Helpers.CLIWRAP($BUILD_UP, '$BUILD_UP'),
|
|
777
|
-
BUILD_NG: tnp_helpers_1.Helpers.CLIWRAP(BUILD_NG, 'BUILD_NG'),
|
|
778
|
-
BUILD_NG_WATCH: tnp_helpers_1.Helpers.CLIWRAP(BUILD_NG_WATCH, 'BUILD_NG_WATCH'),
|
|
779
|
-
$RECREATE: tnp_helpers_1.Helpers.CLIWRAP($RECREATE, '$RECREATE'),
|
|
780
|
-
$BUILD_DOCS: tnp_helpers_1.Helpers.CLIWRAP($BUILD_DOCS, '$BUILD_DOCS'),
|
|
781
|
-
$BUILD_DOCS_PROD: tnp_helpers_1.Helpers.CLIWRAP($BUILD_DOCS_PROD, '$BUILD_DOCS_PROD'),
|
|
292
|
+
ELECTRON_BUILD_RELEASE: tnp_helpers_1.Helpers.CLIWRAP(ELECTRON_BUILD_RELEASE, 'ELECTRON_BUILD_RELEASE'),
|
|
782
293
|
$BUILD: tnp_helpers_1.Helpers.CLIWRAP($BUILD, '$BUILD'),
|
|
783
|
-
$CLEAN_BUILD: tnp_helpers_1.Helpers.CLIWRAP($CLEAN_BUILD, '$CLEAN_BUILD'),
|
|
784
294
|
$BUILD_WATCH: tnp_helpers_1.Helpers.CLIWRAP($BUILD_WATCH, '$BUILD_WATCH'),
|
|
785
|
-
$BUILD_TO_ALL: tnp_helpers_1.Helpers.CLIWRAP($BUILD_TO_ALL, '$BUILD_TO_ALL'),
|
|
786
295
|
$DEFAULT_BUILD: tnp_helpers_1.Helpers.CLIWRAP($DEFAULT_BUILD, '$DEFAULT_BUILD'),
|
|
787
|
-
BUILD_DIST: tnp_helpers_1.Helpers.CLIWRAP(BUILD_DIST, 'BUILD_DIST'),
|
|
788
|
-
BUILD_DIST_ALL: tnp_helpers_1.Helpers.CLIWRAP(BUILD_DIST_ALL, 'BUILD_DIST_ALL'),
|
|
789
|
-
BUILD_LIB: tnp_helpers_1.Helpers.CLIWRAP(BUILD_LIB, 'BUILD_LIB'),
|
|
790
|
-
BD: tnp_helpers_1.Helpers.CLIWRAP(BD, 'BD'),
|
|
791
|
-
BL: tnp_helpers_1.Helpers.CLIWRAP(BL, 'BL'),
|
|
792
|
-
BUILD_BUNDLE_PROD: tnp_helpers_1.Helpers.CLIWRAP(BUILD_BUNDLE_PROD, 'BUILD_BUNDLE_PROD'),
|
|
793
|
-
BUILD_BUNDLE: tnp_helpers_1.Helpers.CLIWRAP(BUILD_BUNDLE, 'BUILD_BUNDLE'),
|
|
794
|
-
BB: tnp_helpers_1.Helpers.CLIWRAP(BB, 'BB'),
|
|
795
|
-
BUILD_DIST_WATCH: tnp_helpers_1.Helpers.CLIWRAP(BUILD_DIST_WATCH, 'BUILD_DIST_WATCH'),
|
|
796
|
-
BUILD_DIST_WATCH_ALL: tnp_helpers_1.Helpers.CLIWRAP(BUILD_DIST_WATCH_ALL, 'BUILD_DIST_WATCH_ALL'),
|
|
797
|
-
BDW: tnp_helpers_1.Helpers.CLIWRAP(BDW, 'BDW'),
|
|
798
|
-
BUILD_LIB_WATCH: tnp_helpers_1.Helpers.CLIWRAP(BUILD_LIB_WATCH, 'BUILD_LIB_WATCH'),
|
|
799
|
-
BLW: tnp_helpers_1.Helpers.CLIWRAP(BLW, 'BLW'),
|
|
800
|
-
BUILD_APP_WATCH: tnp_helpers_1.Helpers.CLIWRAP(BUILD_APP_WATCH, 'BUILD_APP_WATCH'),
|
|
801
296
|
$APP: tnp_helpers_1.Helpers.CLIWRAP($APP, '$APP'),
|
|
802
|
-
$WEBAPP: tnp_helpers_1.Helpers.CLIWRAP($WEBAPP, '$WEBAPP'),
|
|
803
|
-
$WEBSQL: tnp_helpers_1.Helpers.CLIWRAP($WEBSQL, '$WEBSQL'),
|
|
804
|
-
$BAW: tnp_helpers_1.Helpers.CLIWRAP($BAW, '$BAW'),
|
|
805
|
-
$BUILD_DIST_PROD: tnp_helpers_1.Helpers.CLIWRAP($BUILD_DIST_PROD, '$BUILD_DIST_PROD'),
|
|
806
|
-
$BUILD_BUNDLE_WATCH: tnp_helpers_1.Helpers.CLIWRAP($BUILD_BUNDLE_WATCH, '$BUILD_BUNDLE_WATCH'),
|
|
807
|
-
$BUILD_BUNDLE_PROD: tnp_helpers_1.Helpers.CLIWRAP($BUILD_BUNDLE_PROD, '$BUILD_BUNDLE_PROD'),
|
|
808
|
-
$BUILD_BUNDLE_APP_PROD: tnp_helpers_1.Helpers.CLIWRAP($BUILD_BUNDLE_APP_PROD, '$BUILD_BUNDLE_APP_PROD'),
|
|
809
|
-
$BUILD_BUNDLE_PROD_WATCH: tnp_helpers_1.Helpers.CLIWRAP($BUILD_BUNDLE_PROD_WATCH, '$BUILD_BUNDLE_PROD_WATCH'),
|
|
810
297
|
$BUILD_APP_PROD: tnp_helpers_1.Helpers.CLIWRAP($BUILD_APP_PROD, '$BUILD_APP_PROD'),
|
|
811
298
|
$BUILD_APP: tnp_helpers_1.Helpers.CLIWRAP($BUILD_APP, '$BUILD_APP'),
|
|
812
|
-
$BUILD_DIST_APP: tnp_helpers_1.Helpers.CLIWRAP($BUILD_DIST_APP, '$BUILD_DIST_APP'),
|
|
813
|
-
$BUILD_BUNDLE_APP: tnp_helpers_1.Helpers.CLIWRAP($BUILD_BUNDLE_APP, '$BUILD_BUNDLE_APP'),
|
|
814
|
-
$BUILD_APP_WATCH_PROD: tnp_helpers_1.Helpers.CLIWRAP($BUILD_APP_WATCH_PROD, '$BUILD_APP_WATCH_PROD'),
|
|
815
|
-
$BUILD_PROD: tnp_helpers_1.Helpers.CLIWRAP($BUILD_PROD, '$BUILD_PROD'),
|
|
816
299
|
$START: tnp_helpers_1.Helpers.CLIWRAP($START, '$START'),
|
|
817
|
-
// $START_WATCH: Helpers.CLIWRAP($START_WATCH, '$START_WATCH'),
|
|
818
|
-
// $RUN: Helpers.CLIWRAP($RUN, '$RUN'),
|
|
819
|
-
$STOP: tnp_helpers_1.Helpers.CLIWRAP($STOP, '$STOP'),
|
|
820
|
-
$SERVE: tnp_helpers_1.Helpers.CLIWRAP($SERVE, '$SERVE'),
|
|
821
300
|
$INSTALL_LOCALLY: tnp_helpers_1.Helpers.CLIWRAP($INSTALL_LOCALLY, '$INSTALL_LOCALLY'),
|
|
822
|
-
$
|
|
823
|
-
$REVERT: tnp_helpers_1.Helpers.CLIWRAP($REVERT, '$REVERT'),
|
|
824
|
-
$DOCS: tnp_helpers_1.Helpers.CLIWRAP($DOCS, '$DOCS'),
|
|
301
|
+
$MKDOCS: tnp_helpers_1.Helpers.CLIWRAP($MKDOCS, '$MKDOCS'),
|
|
825
302
|
//#endregion
|
|
826
303
|
};
|
|
827
304
|
//# sourceMappingURL=BUILD.backend.js.map
|