tnp 16.0.20 → 16.5.1
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/bin/start.js +275 -275
- package/bin/tnp +5 -5
- package/bin/tnp-debug +5 -5
- package/bin/tnp-debug-brk +4 -4
- package/browser/README.md +24 -24
- package/browser/esm2022/lib/constants.mjs +41 -0
- package/browser/esm2022/lib/helpers.mjs +26 -0
- package/browser/esm2022/lib/index.mjs +3 -1
- 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 +1 -8
- 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 -7
- package/browser/fesm2022/tnp.mjs +68 -14
- package/browser/fesm2022/tnp.mjs.map +1 -1
- package/browser/lib/constants.d.ts +16 -0
- package/browser/lib/helpers.d.ts +19 -0
- package/browser/lib/index.d.ts +2 -0
- package/build/Release/better_sqlite3.node +0 -0
- package/cli.js +29084 -62010
- package/cli.js.map +1 -1
- package/client/README.md +24 -24
- package/client/esm2022/lib/constants.mjs +41 -0
- package/client/esm2022/lib/helpers.mjs +26 -0
- package/client/esm2022/lib/index.mjs +3 -1
- 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 +1 -8
- 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 -7
- package/client/fesm2022/tnp.mjs +68 -14
- package/client/fesm2022/tnp.mjs.map +1 -1
- package/client/lib/constants.d.ts +16 -0
- package/client/lib/helpers.d.ts +19 -0
- package/client/lib/index.d.ts +2 -0
- package/client/package.json +93 -77
- package/git-log.js.map +1 -1
- package/global-typings.js.map +1 -1
- package/index.js.map +1 -1
- package/lib/console-ui.js.map +1 -1
- package/lib/constants.d.ts +1 -0
- package/lib/constants.js +7 -1
- package/lib/constants.js.map +1 -1
- package/lib/environment-config.js.map +1 -1
- package/lib/helpers.d.ts +18 -0
- package/lib/helpers.js +27 -0
- package/lib/helpers.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/models.js.map +1 -1
- package/lib/project/abstract/feature-compiler-for-project.backend.js.map +1 -1
- package/lib/project/abstract/feature-for-project.js.map +1 -1
- package/lib/project/abstract/index.js.map +1 -1
- package/lib/project/abstract/project/base-project.d.ts +0 -10
- package/lib/project/abstract/project/base-project.js +8 -161
- package/lib/project/abstract/project/base-project.js.map +1 -1
- package/lib/project/abstract/project/{buildable-project.js → buildable-project.backend.js} +63 -80
- package/lib/project/abstract/project/buildable-project.backend.js.map +1 -0
- package/lib/project/abstract/project/cloud-project.js.map +1 -1
- package/lib/project/abstract/project/db-process-project.backend.js.map +1 -1
- package/lib/project/abstract/project/dependency-project.backend.js +4 -9
- package/lib/project/abstract/project/dependency-project.backend.js.map +1 -1
- package/lib/project/abstract/project/entity-projects.backend.js.map +1 -1
- package/lib/project/abstract/project/feature-project.d.ts +2 -4
- package/lib/project/abstract/project/feature-project.js.map +1 -1
- package/lib/project/abstract/project/folder-project.d.ts +1 -1
- package/lib/project/abstract/project/folder-project.js +4 -12
- package/lib/project/abstract/project/folder-project.js.map +1 -1
- package/lib/project/abstract/project/index.js.map +1 -1
- package/lib/project/abstract/project/lib-project-base.backend.js.map +1 -1
- package/lib/project/abstract/project/lib-project-smart-container.backend.js.map +1 -1
- package/lib/project/abstract/project/lib-project-standalone.backend.js.map +1 -1
- package/lib/project/abstract/project/lib-project-vscode-ext.js.map +1 -1
- package/lib/project/abstract/project/lib-project.backend.js +0 -1
- package/lib/project/abstract/project/lib-project.backend.js.map +1 -1
- package/lib/project/abstract/project/npm-project.js +2 -15
- package/lib/project/abstract/project/npm-project.js.map +1 -1
- package/lib/project/abstract/project/project.d.ts +2 -4
- package/lib/project/abstract/project/project.js +2 -10
- package/lib/project/abstract/project/project.js.map +1 -1
- package/lib/project/abstract/project/recreatable-project.backend.js +0 -22
- package/lib/project/abstract/project/recreatable-project.backend.js.map +1 -1
- package/lib/project/abstract/project/router-project.backend.js +13 -33
- package/lib/project/abstract/project/router-project.backend.js.map +1 -1
- package/lib/project/abstract/project/tnp-project.js +0 -8
- package/lib/project/abstract/project/tnp-project.js.map +1 -1
- package/lib/project/abstract/project/vscode-project.backend.js +19 -124
- 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 +3 -2
- package/lib/project/compilers/assets-list-file-generator/assets-list-file-generator.backend.js +5 -6
- 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 +13 -3
- package/lib/project/compilers/build-isomorphic-lib/code-cut/browser-code-cut.backend.js +180 -46
- 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.js +4 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/code-cut.backend.js.map +1 -1
- package/lib/project/compilers/build-isomorphic-lib/code-cut/cut-fn.backend.js.map +1 -1
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-backend.backend.js +8 -12
- 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.js +1 -1
- 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 +0 -4
- package/lib/project/compilers/build-isomorphic-lib/compilations/incremental-build-process.backend.js +18 -94
- package/lib/project/compilers/build-isomorphic-lib/compilations/incremental-build-process.backend.js.map +1 -1
- package/lib/project/compilers/framework-file-generator/controllers-generator.backend.js.map +1 -1
- package/lib/project/compilers/framework-file-generator/entities-generator.backend.js.map +1 -1
- package/lib/project/compilers/framework-file-generator/framework-files-generator.backend.js.map +1 -1
- package/lib/project/compilers/framework-file-generator/index.js.map +1 -1
- package/lib/project/compilers/index.d.ts +0 -1
- package/lib/project/compilers/index.js +0 -1
- package/lib/project/compilers/index.js.map +1 -1
- package/lib/project/compilers/source-modifier/index.js.map +1 -1
- package/lib/project/compilers/source-modifier/source-mod-for-standalone-projects.backend.js +1 -9
- package/lib/project/compilers/source-modifier/source-mod-for-standalone-projects.backend.js.map +1 -1
- package/lib/project/compilers/source-modifier/source-modifier.backend.d.ts +2 -2
- package/lib/project/compilers/source-modifier/source-modifier.backend.js +56 -101
- package/lib/project/compilers/source-modifier/source-modifier.backend.js.map +1 -1
- package/lib/project/compilers/source-modifier/source-modifier.helpers.backend.js +2 -4
- package/lib/project/compilers/source-modifier/source-modifier.helpers.backend.js.map +1 -1
- package/lib/project/compilers/source-modifier/source-modifier.models.js.map +1 -1
- package/lib/project/features/assets-manager.backend.js.map +1 -1
- package/lib/project/features/branding.backend.js.map +1 -1
- package/lib/project/features/build-process/build-proces.backend.d.ts +0 -1
- package/lib/project/features/build-process/build-proces.backend.js +2 -67
- package/lib/project/features/build-process/build-proces.backend.js.map +1 -1
- package/lib/project/features/build-process/index.d.ts +0 -1
- 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/build-process/waiting-for-builds-conditions-helpers.backend.js.map +1 -1
- package/lib/project/features/compiler-cache.backend.js.map +1 -1
- package/lib/project/features/copy-manager/base-copy-manager.backend.d.ts +8 -0
- package/lib/project/features/copy-manager/base-copy-manager.backend.js +68 -30
- package/lib/project/features/copy-manager/base-copy-manager.backend.js.map +1 -1
- package/lib/project/features/copy-manager/bundle-mjs-fesm-module-spliter.backend.js.map +1 -1
- package/lib/project/features/copy-manager/copy-manager-helpers.backend.js +1 -1
- 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.js.map +1 -1
- package/lib/project/features/copy-manager/copy-manager-organization.backend.js +3 -2
- package/lib/project/features/copy-manager/copy-manager-organization.backend.js.map +1 -1
- package/lib/project/features/copy-manager/copy-manager-standalone.backend.js +3 -1
- package/lib/project/features/copy-manager/copy-manager-standalone.backend.js.map +1 -1
- package/lib/project/features/copy-manager/copy-manager.backend.js.map +1 -1
- package/lib/project/features/copy-manager/index.js.map +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.js.map +1 -1
- package/lib/project/features/docs-app-build-config.backend.js.map +1 -1
- package/lib/project/features/environment-config/environment-config-helpers.js +28 -9
- package/lib/project/features/environment-config/environment-config-helpers.js.map +1 -1
- package/lib/project/features/environment-config/environment-config.js +1 -8
- package/lib/project/features/environment-config/environment-config.js.map +1 -1
- package/lib/project/features/environment-config/example-environment-config.js.map +1 -1
- package/lib/project/features/environment-config/index.js.map +1 -1
- package/lib/project/features/extension-for-project/extension-for-project.js.map +1 -1
- package/lib/project/features/files-recreation/files-factory.backend.js.map +1 -1
- package/lib/project/features/files-recreation/files-recreator.d.ts +0 -9
- package/lib/project/features/files-recreation/files-recreator.js +13 -162
- package/lib/project/features/files-recreation/files-recreator.js.map +1 -1
- package/lib/project/features/files-recreation/files-structure.backend.d.ts +0 -1
- package/lib/project/features/files-recreation/files-structure.backend.js +25 -44
- package/lib/project/features/files-recreation/files-structure.backend.js.map +1 -1
- package/lib/project/features/files-recreation/files-templates/base-firedev-file-template.backend.js.map +1 -1
- package/lib/project/features/files-recreation/files-templates/file-tmp-for-save.backend.js.map +1 -1
- package/lib/project/features/files-recreation/files-templates/firedev-logic-ui-module-template.backend.js.map +1 -1
- package/lib/project/features/files-recreation/files-templates/index.js +3 -3
- package/lib/project/features/files-recreation/files-templates/index.js.map +1 -1
- package/lib/project/features/files-recreation/files-templates.js +2 -2
- package/lib/project/features/files-recreation/files-templates.js.map +1 -1
- package/lib/project/features/files-recreation/index.js.map +1 -1
- package/lib/project/features/git-actions.backend.js +8 -19
- package/lib/project/features/git-actions.backend.js.map +1 -1
- package/lib/project/features/global-worker-apps.js.map +1 -1
- package/lib/project/features/html-to-md.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/inside-struct.js.map +1 -1
- package/lib/project/features/inside-structures/inside-structures.js +1 -2
- package/lib/project/features/inside-structures/inside-structures.js.map +1 -1
- package/lib/project/features/inside-structures/structs/base-inside-struct.js.map +1 -1
- package/lib/project/features/inside-structures/structs/index.js.map +1 -1
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-app.js +2 -1
- 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 +37 -16
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-lib.js.map +1 -1
- package/lib/project/features/inside-structures/structs/inside-struct-constants.js.map +1 -1
- package/lib/project/features/inside-structures/structs/inside-struct-helpers.js.map +1 -1
- package/lib/project/features/inside-structures/structs/loaders/image-loader.js.map +1 -1
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-default.js.map +1 -1
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-ellipsis.js.map +1 -1
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-facebook.js.map +1 -1
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-grid.js.map +1 -1
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-heart.js.map +1 -1
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-ripple.js.map +1 -1
- package/lib/project/features/inside-structures/structs/loaders/loaders.js.map +1 -1
- package/lib/project/features/linked-repos.backend.js.map +1 -1
- package/lib/project/features/node-modules/index.js.map +1 -1
- package/lib/project/features/node-modules/node-modules-base.backend.d.ts +0 -1
- package/lib/project/features/node-modules/node-modules-base.backend.js +29 -62
- package/lib/project/features/node-modules/node-modules-base.backend.js.map +1 -1
- package/lib/project/features/node-modules/node-modules-core.backend.js +2 -5
- 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 +0 -1
- package/lib/project/features/node-modules/node-modules-helpers.backend.js +4 -229
- package/lib/project/features/node-modules/node-modules-helpers.backend.js.map +1 -1
- package/lib/project/features/node-modules/node-modules.js.map +1 -1
- package/lib/project/features/npm-packages/index.js.map +1 -1
- package/lib/project/features/npm-packages/npm-packages-base.backend.js +3 -15
- package/lib/project/features/npm-packages/npm-packages-base.backend.js.map +1 -1
- package/lib/project/features/npm-packages/npm-packages-core.backend.js.map +1 -1
- package/lib/project/features/npm-packages/npm-packages-helpers.backend.js.map +1 -1
- package/lib/project/features/npm-packages/npm-packages.js.map +1 -1
- package/lib/project/features/package-json/index.js.map +1 -1
- package/lib/project/features/package-json/package-json-base.backend.js +1 -7
- 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 +0 -4
- package/lib/project/features/package-json/package-json-core.backend.js +0 -67
- 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.js.map +1 -1
- package/lib/project/features/package-json/package-json-file.js.map +1 -1
- package/lib/project/features/package-json/package-json-helpers.backend.js +1 -13
- package/lib/project/features/package-json/package-json-helpers.backend.js.map +1 -1
- package/lib/project/features/package-json/package-json.js.map +1 -1
- package/lib/project/features/package-recognition/packages-recognition.js +1 -1
- package/lib/project/features/package-recognition/packages-recognition.js.map +1 -1
- package/lib/project/features/proxy-router.d.ts +0 -1
- package/lib/project/features/proxy-router.js +0 -17
- package/lib/project/features/proxy-router.js.map +1 -1
- package/lib/project/features/quick-fixes.js +1 -34
- package/lib/project/features/quick-fixes.js.map +1 -1
- package/lib/project/features/recent-files.backend.js.map +1 -1
- package/lib/project/features/singular-build.backend.d.ts +2 -2
- package/lib/project/features/singular-build.backend.js +126 -101
- package/lib/project/features/singular-build.backend.js.map +1 -1
- package/lib/project/features/smart-node-modules.backend.js +1 -2
- package/lib/project/features/smart-node-modules.backend.js.map +1 -1
- package/lib/project/features/target-project.backend.js.map +1 -1
- package/lib/project/features/test-runner/cypress-test-runner.js.map +1 -1
- package/lib/project/features/test-runner/index.js.map +1 -1
- package/lib/project/features/test-runner/jest-test-runner.js.map +1 -1
- package/lib/project/features/test-runner/mocha-test-runner.js.map +1 -1
- package/lib/project/features/webpack-backend-compilation.backend.js.map +1 -1
- package/lib/project/index.d.ts +0 -6
- package/lib/project/index.js +0 -6
- package/lib/project/index.js.map +1 -1
- package/lib/project/project-specyfic/index.d.ts +0 -4
- package/lib/project/project-specyfic/index.js +0 -4
- package/lib/project/project-specyfic/index.js.map +1 -1
- package/lib/project/project-specyfic/project-container.d.ts +1 -0
- package/lib/project/project-specyfic/project-container.js +10 -14
- package/lib/project/project-specyfic/project-container.js.map +1 -1
- package/lib/project/project-specyfic/project-docker.js.map +1 -1
- package/lib/project/project-specyfic/project-isomorphic-lib.js +11 -15
- package/lib/project/project-specyfic/project-isomorphic-lib.js.map +1 -1
- package/lib/project/project-specyfic/project-navi.js.map +1 -1
- package/lib/project/project-specyfic/project-scenario.js.map +1 -1
- package/lib/project/project-specyfic/project-unknow-npm.js.map +1 -1
- package/lib/project/project-specyfic/project-vscode-ext.js.map +1 -1
- package/lib/project/project-specyfic/select-clients.backend.js.map +1 -1
- package/lib/scripts/BASH-CONFIG.backend.js.map +1 -1
- package/lib/scripts/CLOUD/CLOUD.backend.js.map +1 -1
- package/lib/scripts/COMPILERS-TESTING/COMPILERS.backend.d.ts +0 -3
- package/lib/scripts/COMPILERS-TESTING/COMPILERS.backend.js +0 -40
- package/lib/scripts/COMPILERS-TESTING/COMPILERS.backend.js.map +1 -1
- package/lib/scripts/COMPILERS-TESTING/INCREMENTAL-TEST.backend.js.map +1 -1
- package/lib/scripts/COMPILERS-TESTING/index.js.map +1 -1
- package/lib/scripts/DAEMON.backend.js.map +1 -1
- package/lib/scripts/DEPENDENCIES-MANAGEMENT/DEPS.backend.d.ts +0 -2
- package/lib/scripts/DEPENDENCIES-MANAGEMENT/DEPS.backend.js +1 -72
- package/lib/scripts/DEPENDENCIES-MANAGEMENT/DEPS.backend.js.map +1 -1
- package/lib/scripts/DEPENDENCIES-MANAGEMENT/index.js.map +1 -1
- package/lib/scripts/HELP.backend.js.map +1 -1
- package/lib/scripts/JAVA.backend.js.map +1 -1
- package/lib/scripts/NEW-PROJECT_FILES_MODULES/NEW.backend.js +3 -0
- package/lib/scripts/NEW-PROJECT_FILES_MODULES/NEW.backend.js.map +1 -1
- package/lib/scripts/NEW-PROJECT_FILES_MODULES/index.js.map +1 -1
- package/lib/scripts/NEW-PROJECT_FILES_MODULES/project-factory.backend.js.map +1 -1
- package/lib/scripts/OTHER.backend.js +0 -1
- package/lib/scripts/OTHER.backend.js.map +1 -1
- package/lib/scripts/PROJECTS-DEVELOPMENT/BRANDING.backend.js.map +1 -1
- package/lib/scripts/PROJECTS-DEVELOPMENT/BUILD.backend.d.ts +1 -0
- package/lib/scripts/PROJECTS-DEVELOPMENT/BUILD.backend.js +54 -105
- package/lib/scripts/PROJECTS-DEVELOPMENT/BUILD.backend.js.map +1 -1
- package/lib/scripts/PROJECTS-DEVELOPMENT/DEVELOP.backend.d.ts +2 -3
- package/lib/scripts/PROJECTS-DEVELOPMENT/DEVELOP.backend.js +112 -97
- package/lib/scripts/PROJECTS-DEVELOPMENT/DEVELOP.backend.js.map +1 -1
- package/lib/scripts/PROJECTS-DEVELOPMENT/FILES_STRUCTURE.d.ts +0 -21
- package/lib/scripts/PROJECTS-DEVELOPMENT/FILES_STRUCTURE.js +3 -160
- package/lib/scripts/PROJECTS-DEVELOPMENT/FILES_STRUCTURE.js.map +1 -1
- package/lib/scripts/PROJECTS-DEVELOPMENT/RELEASE.backend.js +10 -13
- package/lib/scripts/PROJECTS-DEVELOPMENT/RELEASE.backend.js.map +1 -1
- package/lib/scripts/PROJECTS-DEVELOPMENT/TESTS.js.map +1 -1
- package/lib/scripts/PROJECTS-DEVELOPMENT/index.js.map +1 -1
- package/lib/scripts/UPDATE.backend.js.map +1 -1
- package/lib/scripts/VSCODE-EXT/GIT.backend.js.map +1 -1
- package/lib/scripts/VSCODE-EXT/OPEN.backend.d.ts +0 -3
- package/lib/scripts/VSCODE-EXT/OPEN.backend.js +0 -42
- package/lib/scripts/VSCODE-EXT/OPEN.backend.js.map +1 -1
- package/lib/scripts/VSCODE-EXT/VSCODE.backend.js +6 -21
- package/lib/scripts/VSCODE-EXT/VSCODE.backend.js.map +1 -1
- package/lib/scripts/VSCODE-EXT/index.js.map +1 -1
- package/lib/scripts/index.js.map +1 -1
- package/lib/templates.js.map +1 -1
- package/package.json +33 -32
- package/package.json_devDependencies.json +1 -1
- package/package.json_tnp.json5 +574 -577
- package/paste.vbs +52 -0
- package/start.backend.js.map +1 -1
- package/tmp-environment.json +99 -85
- package/websql/README.md +24 -24
- package/websql/esm2022/lib/constants.mjs +41 -0
- package/websql/esm2022/lib/helpers.mjs +26 -0
- package/websql/esm2022/lib/index.mjs +3 -1
- 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 +1 -8
- 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 -7
- package/websql/fesm2022/tnp.mjs +68 -14
- package/websql/fesm2022/tnp.mjs.map +1 -1
- package/websql/lib/constants.d.ts +16 -0
- package/websql/lib/helpers.d.ts +19 -0
- package/websql/lib/index.d.ts +2 -0
- package/xdg-open +0 -0
- package/fsevents.node +0 -0
- package/lib/project/abstract/project/buildable-project.js.map +0 -1
- package/lib/project/abstract/project/site-project.backend.d.ts +0 -19
- package/lib/project/abstract/project/site-project.backend.js +0 -138
- package/lib/project/abstract/project/site-project.backend.js.map +0 -1
- package/lib/project/abstract/project/static-project.backend.d.ts +0 -27
- package/lib/project/abstract/project/static-project.backend.js +0 -156
- package/lib/project/abstract/project/static-project.backend.js.map +0 -1
- package/lib/project/compilers/baseline-site-join/baseline-site-join.backend.d.ts +0 -23
- package/lib/project/compilers/baseline-site-join/baseline-site-join.backend.js +0 -248
- package/lib/project/compilers/baseline-site-join/baseline-site-join.backend.js.map +0 -1
- package/lib/project/compilers/baseline-site-join/files-join-actions.backend.d.ts +0 -9
- package/lib/project/compilers/baseline-site-join/files-join-actions.backend.js +0 -43
- package/lib/project/compilers/baseline-site-join/files-join-actions.backend.js.map +0 -1
- package/lib/project/compilers/baseline-site-join/index.d.ts +0 -1
- package/lib/project/compilers/baseline-site-join/index.js +0 -7
- package/lib/project/compilers/baseline-site-join/index.js.map +0 -1
- package/lib/project/compilers/baseline-site-join/merge-helpers.d.ts +0 -23
- package/lib/project/compilers/baseline-site-join/merge-helpers.js +0 -108
- package/lib/project/compilers/baseline-site-join/merge-helpers.js.map +0 -1
- package/lib/project/compilers/baseline-site-join/modify-ts-file-action/1_handle-prefixing-file-to-easy-override.backend.d.ts +0 -21
- package/lib/project/compilers/baseline-site-join/modify-ts-file-action/1_handle-prefixing-file-to-easy-override.backend.js +0 -56
- package/lib/project/compilers/baseline-site-join/modify-ts-file-action/1_handle-prefixing-file-to-easy-override.backend.js.map +0 -1
- package/lib/project/compilers/baseline-site-join/modify-ts-file-action/2_handle-refering-to-angular-lib-modules-name.backend.d.ts +0 -21
- package/lib/project/compilers/baseline-site-join/modify-ts-file-action/2_handle-refering-to-angular-lib-modules-name.backend.js +0 -43
- package/lib/project/compilers/baseline-site-join/modify-ts-file-action/2_handle-refering-to-angular-lib-modules-name.backend.js.map +0 -1
- package/lib/project/compilers/baseline-site-join/modify-ts-file-action/3_handle-refering-to-baseline-pathes.backend.d.ts +0 -17
- package/lib/project/compilers/baseline-site-join/modify-ts-file-action/3_handle-refering-to-baseline-pathes.backend.js +0 -80
- package/lib/project/compilers/baseline-site-join/modify-ts-file-action/3_handle-refering-to-baseline-pathes.backend.js.map +0 -1
- package/lib/project/compilers/baseline-site-join/modify-ts-file-action/4_handle-refering-to-new-file-only-available-in-custom.backend.d.ts +0 -16
- package/lib/project/compilers/baseline-site-join/modify-ts-file-action/4_handle-refering-to-new-file-only-available-in-custom.backend.js +0 -50
- package/lib/project/compilers/baseline-site-join/modify-ts-file-action/4_handle-refering-to-new-file-only-available-in-custom.backend.js.map +0 -1
- package/lib/project/compilers/baseline-site-join/modify-ts-file-action/index.d.ts +0 -4
- package/lib/project/compilers/baseline-site-join/modify-ts-file-action/index.js +0 -10
- package/lib/project/compilers/baseline-site-join/modify-ts-file-action/index.js.map +0 -1
- package/lib/project/compilers/baseline-site-join/modify-ts-file-action/modify-ts-file-action-base.backend.d.ts +0 -3
- package/lib/project/compilers/baseline-site-join/modify-ts-file-action/modify-ts-file-action-base.backend.js +0 -13
- package/lib/project/compilers/baseline-site-join/modify-ts-file-action/modify-ts-file-action-base.backend.js.map +0 -1
- package/lib/project/compilers/source-modifier/source-mod-for-site.backend.d.ts +0 -5
- package/lib/project/compilers/source-modifier/source-mod-for-site.backend.js +0 -162
- package/lib/project/compilers/source-modifier/source-mod-for-site.backend.js.map +0 -1
- package/lib/project/compilers/source-modifier/source-mod-for-worspace-childs.backend.d.ts +0 -9
- package/lib/project/compilers/source-modifier/source-mod-for-worspace-childs.backend.js +0 -163
- package/lib/project/compilers/source-modifier/source-mod-for-worspace-childs.backend.js.map +0 -1
- package/lib/project/features/build-process/static-build.d.ts +0 -5
- package/lib/project/features/build-process/static-build.js +0 -185
- package/lib/project/features/build-process/static-build.js.map +0 -1
- package/lib/project/features/workspace-symlinks.d.ts +0 -6
- package/lib/project/features/workspace-symlinks.js +0 -89
- package/lib/project/features/workspace-symlinks.js.map +0 -1
- package/lib/project/project-specyfic/project-angular-client.d.ts +0 -15
- package/lib/project/project-specyfic/project-angular-client.js +0 -132
- package/lib/project/project-specyfic/project-angular-client.js.map +0 -1
- package/lib/project/project-specyfic/project-angular-lib.d.ts +0 -20
- package/lib/project/project-specyfic/project-angular-lib.js +0 -207
- package/lib/project/project-specyfic/project-angular-lib.js.map +0 -1
- package/lib/project/project-specyfic/project-electron-client.d.ts +0 -8
- package/lib/project/project-specyfic/project-electron-client.js +0 -58
- package/lib/project/project-specyfic/project-electron-client.js.map +0 -1
- package/lib/project/project-specyfic/project-ionic-client.d.ts +0 -8
- package/lib/project/project-specyfic/project-ionic-client.js +0 -58
- package/lib/project/project-specyfic/project-ionic-client.js.map +0 -1
- package/lib/project/project-specyfic/project-workspace.d.ts +0 -11
- package/lib/project/project-specyfic/project-workspace.js +0 -241
- package/lib/project/project-specyfic/project-workspace.js.map +0 -1
- package/socket.io.js +0 -9
- package/socket.io.js.map +0 -1
- /package/lib/project/abstract/project/{buildable-project.d.ts → buildable-project.backend.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
THIS FILE IS GENERATED. THIS FILE IS GENERATED. THIS FILE IS GENERATED.
|
|
2
2
|
|
|
3
|
-
Assets from this folder are being shipped with this npm package (tnp@16.
|
|
3
|
+
Assets from this folder are being shipped with this npm package (tnp@16.5.1)
|
|
4
4
|
created from this project.
|
|
5
5
|
|
|
6
6
|
THIS FILE IS GENERATED.THIS FILE IS GENERATED. THIS FILE IS GENERATED.
|
package/bin/start.js
CHANGED
|
@@ -1,275 +1,275 @@
|
|
|
1
|
-
//#region @backend
|
|
2
|
-
|
|
3
|
-
//#region quick fixes
|
|
4
|
-
// console.log('-- FIREDEV started... please wait. --')
|
|
5
|
-
// require('cache-require-paths');
|
|
6
|
-
Error.stackTraceLimit = 100;
|
|
7
|
-
// require('cache-require-paths');
|
|
8
|
-
// console.log(global.i0);
|
|
9
|
-
// process.exit(0)
|
|
10
|
-
|
|
11
|
-
// TODO QUIK_FIX
|
|
12
|
-
global.i0 = {
|
|
13
|
-
defineInjectable: function () { }
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
|
|
17
|
-
//#region resolve constants
|
|
18
|
-
const childprocsecretarg = '-childproc';
|
|
19
|
-
const isWinGitBash = (process.platform === 'win32');
|
|
20
|
-
const procType = (process.argv[1].endsWith('tnp') || process.argv[1].endsWith('firedev')) ? 'root'
|
|
21
|
-
: ((process.argv.find(a => a.startsWith(childprocsecretarg)))
|
|
22
|
-
? 'child-of-root'
|
|
23
|
-
: 'child-of-child'
|
|
24
|
-
);
|
|
25
|
-
const debugMode = (process.argv[1].endsWith('-debug') || process.argv[1].endsWith('-debug-brk'))
|
|
26
|
-
global.spinnerInParentProcess = (procType === 'child-of-root');
|
|
27
|
-
const orgArgv = JSON.parse(JSON.stringify(process.argv));
|
|
28
|
-
global.tnpNonInteractive = (typeof process.argv.find(a => a.startsWith('--tnpNonInteractive')) !== 'undefined');
|
|
29
|
-
const spinnerIsDefault = !tnpNonInteractive;
|
|
30
|
-
const splited = crossPlatofrmPath(process.argv[1]).split('/');
|
|
31
|
-
global.frameworkName = 'tnp';
|
|
32
|
-
|
|
33
|
-
global.restartWorker = (typeof (process.argv.find(a => a.startsWith('-restartWorker'))) !== 'undefined');
|
|
34
|
-
global.reinitDb = (typeof (process.argv.find(a => a.startsWith('-reinitDb'))) !== 'undefined');
|
|
35
|
-
global.globalSystemToolMode = true;
|
|
36
|
-
const verbose = process.argv.includes('-verbose')
|
|
37
|
-
global.hideLog = !verbose;
|
|
38
|
-
global.verboseLevel = 0;
|
|
39
|
-
global.useWorker = !(typeof process.argv.find(a => a.startsWith('-useWorker=false')) !== 'undefined');
|
|
40
|
-
global.useWebpackBackendBuild = (typeof process.argv.find(a => a.startsWith('-webpack')) !== 'undefined');
|
|
41
|
-
global.skipCoreCheck = (typeof process.argv.find(a => a.startsWith('--skipCoreCheck')) !== 'undefined');
|
|
42
|
-
const verboseLevelExists = (typeof process.argv.find(a => a.startsWith('-verbose=')) !== 'undefined');
|
|
43
|
-
global.verboseLevel = (verboseLevelExists ? Number(
|
|
44
|
-
process.argv.find(a => {
|
|
45
|
-
const v = a.startsWith('-verbose=');
|
|
46
|
-
if (v) {
|
|
47
|
-
return v.replace('-verbose=', '');
|
|
48
|
-
}
|
|
49
|
-
})
|
|
50
|
-
) : 0) || 0;
|
|
51
|
-
|
|
52
|
-
if (!verbose && verboseLevelExists) {
|
|
53
|
-
global.hideLog = false;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
const distOnly = (process.argv.includes('-dist'));
|
|
57
|
-
const npmOnly = (process.argv.includes('-npm'));
|
|
58
|
-
const spinnerOnInArgs = process.argv.includes('-spinner');
|
|
59
|
-
const spinnerOffInArgs = (process.argv.includes('-spinner=false') || process.argv.includes('-spinner=off'));
|
|
60
|
-
//#endregion
|
|
61
|
-
|
|
62
|
-
//#region clear argument from variables
|
|
63
|
-
process.argv = process.argv.filter(a => !a.startsWith('-spinner'));
|
|
64
|
-
process.argv = process.argv.filter(a => a !== '-childproc');
|
|
65
|
-
process.argv = process.argv.filter(a => a !== '--skipCoreCheck');
|
|
66
|
-
process.argv = process.argv.filter(a => a !== '-dist');
|
|
67
|
-
process.argv = process.argv.filter(a => a !== '-npm');
|
|
68
|
-
process.argv = process.argv.filter(a => !a.startsWith('-verbose'));
|
|
69
|
-
//#endregion
|
|
70
|
-
|
|
71
|
-
//#region fix argument
|
|
72
|
-
process.argv = process.argv.map(a => {
|
|
73
|
-
if (a === '-websql') {
|
|
74
|
-
return '--websql'
|
|
75
|
-
}
|
|
76
|
-
return a;
|
|
77
|
-
})
|
|
78
|
-
//#endregion
|
|
79
|
-
|
|
80
|
-
//#region variables
|
|
81
|
-
let mode;
|
|
82
|
-
let start;
|
|
83
|
-
let startSpinner = spinnerIsDefault || spinnerOnInArgs;
|
|
84
|
-
if (spinnerOffInArgs) {
|
|
85
|
-
startSpinner = false;
|
|
86
|
-
}
|
|
87
|
-
if (procType === 'child-of-root' || debugMode) {
|
|
88
|
-
startSpinner = false;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// if (startSpinner) {
|
|
92
|
-
// const inspector = require('inspector');
|
|
93
|
-
// isNodeDebuggerEnabled = (inspector.url() !== undefined);
|
|
94
|
-
// startSpinner = !isNodeDebuggerEnabled;
|
|
95
|
-
// }
|
|
96
|
-
|
|
97
|
-
if (verbose || frameworkName === 'tnp' || global.skipCoreCheck) {
|
|
98
|
-
startSpinner = false;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
//#endregion
|
|
102
|
-
|
|
103
|
-
const path = require('path');
|
|
104
|
-
|
|
105
|
-
// console.log({
|
|
106
|
-
// ppid: process.ppid,
|
|
107
|
-
// pid: process.pid,
|
|
108
|
-
// procType
|
|
109
|
-
// })
|
|
110
|
-
|
|
111
|
-
// if(procType !== 'root') {
|
|
112
|
-
// var fn = process.stdout.write
|
|
113
|
-
|
|
114
|
-
// function write() {
|
|
115
|
-
// if((arguments.length > 0) && typeof arguments[0] === 'string') {
|
|
116
|
-
// arguments[0] = arguments[0].trim();
|
|
117
|
-
// }
|
|
118
|
-
// fn.apply(process.stdout, arguments);
|
|
119
|
-
// }
|
|
120
|
-
|
|
121
|
-
// process.stdout.write = write;
|
|
122
|
-
// }
|
|
123
|
-
|
|
124
|
-
if (procType === 'child-of-root') {
|
|
125
|
-
global.spinner = {
|
|
126
|
-
start() {
|
|
127
|
-
process.send && process.send('start-spinner')
|
|
128
|
-
},
|
|
129
|
-
stop() {
|
|
130
|
-
process.send && process.send('stop-spinner')
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
if (startSpinner) {
|
|
136
|
-
//#region start spinner in processs
|
|
137
|
-
var ora = require('ora');
|
|
138
|
-
var spinner = ora();
|
|
139
|
-
spinner.start();
|
|
140
|
-
global.spinner = spinner;
|
|
141
|
-
|
|
142
|
-
const child_process = require('child_process');
|
|
143
|
-
const orgArgvForChild = orgArgv.filter(a => !a.startsWith('-spinner'));
|
|
144
|
-
|
|
145
|
-
const env = {
|
|
146
|
-
...process.env,
|
|
147
|
-
FORCE_COLOR: '1'
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
const cwd = process.cwd();
|
|
151
|
-
const argsToCHildProc = (`${orgArgvForChild.slice(2).join(' ')} ${global.verbose ? '-verbose' : ''} ${global.skipCoreCheck ? '--skipCoreCheck' : ''} `
|
|
152
|
-
+ `${spinnerOnInArgs ? '-spinner' : (spinnerOffInArgs ? '-spinner=off' : '')} ${childprocsecretarg}`).split(' ');
|
|
153
|
-
|
|
154
|
-
const proc = child_process.fork(crossPlatofrmPath(__filename), argsToCHildProc, {
|
|
155
|
-
env,
|
|
156
|
-
stdio: [0, 1, 2, 'ipc'],
|
|
157
|
-
cwd,
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
proc.on('exit', (code) => {
|
|
161
|
-
spinner.stop();
|
|
162
|
-
setTimeout(() => {
|
|
163
|
-
process.exit(code);
|
|
164
|
-
})
|
|
165
|
-
});
|
|
166
|
-
|
|
167
|
-
proc.on('message', message => {
|
|
168
|
-
message = (message ? message : '').trimLeft();
|
|
169
|
-
if (message === 'start-spinner') {
|
|
170
|
-
spinner.start();
|
|
171
|
-
} else if (message === 'stop-spinner') {
|
|
172
|
-
spinner.stop();
|
|
173
|
-
} else if (message.startsWith('info::')) {
|
|
174
|
-
setText((message));
|
|
175
|
-
} else if (message.startsWith('success::')) {
|
|
176
|
-
setText((message));
|
|
177
|
-
} else if (message.startsWith('taskstart::')) {
|
|
178
|
-
setText((message));
|
|
179
|
-
} else if (message.startsWith('taskdone::')) {
|
|
180
|
-
setText((message));
|
|
181
|
-
} else if (message.startsWith('error::')) {
|
|
182
|
-
setText((message));
|
|
183
|
-
} else if (message.startsWith('log::')) {
|
|
184
|
-
setText((message), true);
|
|
185
|
-
} else if (message.startsWith('warn::')) {
|
|
186
|
-
setText((message));
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
|
|
190
|
-
// process.stdin.resume(); // not needed ?
|
|
191
|
-
//#endregion
|
|
192
|
-
} else {
|
|
193
|
-
//#region child or child of child
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
if (distOnly) {
|
|
197
|
-
//#region standalrd dist mode
|
|
198
|
-
mode = 'dist';
|
|
199
|
-
!global.hideLog && setText('- dist only -', true);
|
|
200
|
-
process.argv = process.argv.filter(f => !!f);
|
|
201
|
-
|
|
202
|
-
const pathToDistRun = path.join(__dirname, '../dist/cli.js');
|
|
203
|
-
start = require(pathToDistRun.replace(/\.js$/g, '')).start;
|
|
204
|
-
//#endregion
|
|
205
|
-
} else if (npmOnly) {
|
|
206
|
-
//#region npm mode (project as installable package)
|
|
207
|
-
mode = 'npm';
|
|
208
|
-
!global.hideLog && setText('- npm global only -', true);
|
|
209
|
-
// =========================== only dist ============================
|
|
210
|
-
process.argv = process.argv.filter(a => a !== '-npm');
|
|
211
|
-
process.argv = process.argv.filter(f => !!f);
|
|
212
|
-
|
|
213
|
-
const pathToDistRun = path.join(__dirname, '../cli.js');
|
|
214
|
-
start = require(pathToDistRun.replace(/\.js$/g, '')).start;
|
|
215
|
-
//#endregion
|
|
216
|
-
} else {
|
|
217
|
-
//#region uknow dist or npm mode
|
|
218
|
-
const fs = require('fs');
|
|
219
|
-
|
|
220
|
-
const pathToDistRun = path.join(__dirname, '../dist/cli.js');
|
|
221
|
-
const pathToIndexRun = path.join(__dirname, '../cli.js');
|
|
222
|
-
const distExist = fs.existsSync(pathToDistRun);
|
|
223
|
-
|
|
224
|
-
if (distExist) {
|
|
225
|
-
mode = 'dist';
|
|
226
|
-
!global.hideLog && setText('- firedev dist -', true);
|
|
227
|
-
// TODO TOOOO MUCH TIME !!!!!!
|
|
228
|
-
start = require(pathToDistRun.replace(/\.js$/g, '')).start;
|
|
229
|
-
} else {
|
|
230
|
-
mode = 'npm';
|
|
231
|
-
!global.hideLog && setText('- npm mode -', true);
|
|
232
|
-
start = require(pathToIndexRun.replace(/\.js$/g, '')).start;
|
|
233
|
-
}
|
|
234
|
-
//#endregion
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
// global.start = start;
|
|
238
|
-
process.argv = process.argv.filter(f => !!f);
|
|
239
|
-
start(process.argv, global.frameworkName, mode);
|
|
240
|
-
//#endregion
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
function crossPlatofrmPath(p) {
|
|
244
|
-
if (isWinGitBash) {
|
|
245
|
-
return p.replace(/\\/g, '/');
|
|
246
|
-
}
|
|
247
|
-
return p;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
function setText(text, toSpiner = false) {
|
|
251
|
-
const spinner = global.spinner;
|
|
252
|
-
if (text) {
|
|
253
|
-
text = text.split('::').slice(1).join('::');
|
|
254
|
-
}
|
|
255
|
-
if (spinner) {
|
|
256
|
-
if (toSpiner) {
|
|
257
|
-
spinner.text = text.replace(/(?:\r\n|\r|\n)/g, ' ');
|
|
258
|
-
} else {
|
|
259
|
-
const wasSpinning = spinner.isSpinning;
|
|
260
|
-
if (wasSpinning) {
|
|
261
|
-
spinner.stop();
|
|
262
|
-
spinner.clear();
|
|
263
|
-
}
|
|
264
|
-
console.log(text);
|
|
265
|
-
if (wasSpinning) {
|
|
266
|
-
spinner.start()
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
} else {
|
|
270
|
-
console.log(text);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
//#endregion
|
|
1
|
+
//#region @backend
|
|
2
|
+
|
|
3
|
+
//#region quick fixes
|
|
4
|
+
// console.log('-- FIREDEV started... please wait. --')
|
|
5
|
+
// require('cache-require-paths');
|
|
6
|
+
Error.stackTraceLimit = 100;
|
|
7
|
+
// require('cache-require-paths');
|
|
8
|
+
// console.log(global.i0);
|
|
9
|
+
// process.exit(0)
|
|
10
|
+
|
|
11
|
+
// TODO QUIK_FIX
|
|
12
|
+
global.i0 = {
|
|
13
|
+
defineInjectable: function () { }
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
|
|
17
|
+
//#region resolve constants
|
|
18
|
+
const childprocsecretarg = '-childproc';
|
|
19
|
+
const isWinGitBash = (process.platform === 'win32');
|
|
20
|
+
const procType = (process.argv[1].endsWith('tnp') || process.argv[1].endsWith('firedev')) ? 'root'
|
|
21
|
+
: ((process.argv.find(a => a.startsWith(childprocsecretarg)))
|
|
22
|
+
? 'child-of-root'
|
|
23
|
+
: 'child-of-child'
|
|
24
|
+
);
|
|
25
|
+
const debugMode = (process.argv[1].endsWith('-debug') || process.argv[1].endsWith('-debug-brk'))
|
|
26
|
+
global.spinnerInParentProcess = (procType === 'child-of-root');
|
|
27
|
+
const orgArgv = JSON.parse(JSON.stringify(process.argv));
|
|
28
|
+
global.tnpNonInteractive = (typeof process.argv.find(a => a.startsWith('--tnpNonInteractive')) !== 'undefined');
|
|
29
|
+
const spinnerIsDefault = !tnpNonInteractive;
|
|
30
|
+
const splited = crossPlatofrmPath(process.argv[1]).split('/');
|
|
31
|
+
global.frameworkName = 'tnp';
|
|
32
|
+
|
|
33
|
+
global.restartWorker = (typeof (process.argv.find(a => a.startsWith('-restartWorker'))) !== 'undefined');
|
|
34
|
+
global.reinitDb = (typeof (process.argv.find(a => a.startsWith('-reinitDb'))) !== 'undefined');
|
|
35
|
+
global.globalSystemToolMode = true;
|
|
36
|
+
const verbose = process.argv.includes('-verbose')
|
|
37
|
+
global.hideLog = !verbose;
|
|
38
|
+
global.verboseLevel = 0;
|
|
39
|
+
global.useWorker = !(typeof process.argv.find(a => a.startsWith('-useWorker=false')) !== 'undefined');
|
|
40
|
+
global.useWebpackBackendBuild = (typeof process.argv.find(a => a.startsWith('-webpack')) !== 'undefined');
|
|
41
|
+
global.skipCoreCheck = (typeof process.argv.find(a => a.startsWith('--skipCoreCheck')) !== 'undefined');
|
|
42
|
+
const verboseLevelExists = (typeof process.argv.find(a => a.startsWith('-verbose=')) !== 'undefined');
|
|
43
|
+
global.verboseLevel = (verboseLevelExists ? Number(
|
|
44
|
+
process.argv.find(a => {
|
|
45
|
+
const v = a.startsWith('-verbose=');
|
|
46
|
+
if (v) {
|
|
47
|
+
return v.replace('-verbose=', '');
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
) : 0) || 0;
|
|
51
|
+
|
|
52
|
+
if (!verbose && verboseLevelExists) {
|
|
53
|
+
global.hideLog = false;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const distOnly = (process.argv.includes('-dist'));
|
|
57
|
+
const npmOnly = (process.argv.includes('-npm'));
|
|
58
|
+
const spinnerOnInArgs = process.argv.includes('-spinner');
|
|
59
|
+
const spinnerOffInArgs = (process.argv.includes('-spinner=false') || process.argv.includes('-spinner=off'));
|
|
60
|
+
//#endregion
|
|
61
|
+
|
|
62
|
+
//#region clear argument from variables
|
|
63
|
+
process.argv = process.argv.filter(a => !a.startsWith('-spinner'));
|
|
64
|
+
process.argv = process.argv.filter(a => a !== '-childproc');
|
|
65
|
+
process.argv = process.argv.filter(a => a !== '--skipCoreCheck');
|
|
66
|
+
process.argv = process.argv.filter(a => a !== '-dist');
|
|
67
|
+
process.argv = process.argv.filter(a => a !== '-npm');
|
|
68
|
+
process.argv = process.argv.filter(a => !a.startsWith('-verbose'));
|
|
69
|
+
//#endregion
|
|
70
|
+
|
|
71
|
+
//#region fix argument
|
|
72
|
+
process.argv = process.argv.map(a => {
|
|
73
|
+
if (a === '-websql') {
|
|
74
|
+
return '--websql'
|
|
75
|
+
}
|
|
76
|
+
return a;
|
|
77
|
+
})
|
|
78
|
+
//#endregion
|
|
79
|
+
|
|
80
|
+
//#region variables
|
|
81
|
+
let mode;
|
|
82
|
+
let start;
|
|
83
|
+
let startSpinner = spinnerIsDefault || spinnerOnInArgs;
|
|
84
|
+
if (spinnerOffInArgs) {
|
|
85
|
+
startSpinner = false;
|
|
86
|
+
}
|
|
87
|
+
if (procType === 'child-of-root' || debugMode) {
|
|
88
|
+
startSpinner = false;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// if (startSpinner) {
|
|
92
|
+
// const inspector = require('inspector');
|
|
93
|
+
// isNodeDebuggerEnabled = (inspector.url() !== undefined);
|
|
94
|
+
// startSpinner = !isNodeDebuggerEnabled;
|
|
95
|
+
// }
|
|
96
|
+
|
|
97
|
+
if (verbose || frameworkName === 'tnp' || global.skipCoreCheck) {
|
|
98
|
+
startSpinner = false;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
//#endregion
|
|
102
|
+
|
|
103
|
+
const path = require('path');
|
|
104
|
+
|
|
105
|
+
// console.log({
|
|
106
|
+
// ppid: process.ppid,
|
|
107
|
+
// pid: process.pid,
|
|
108
|
+
// procType
|
|
109
|
+
// })
|
|
110
|
+
|
|
111
|
+
// if(procType !== 'root') {
|
|
112
|
+
// var fn = process.stdout.write
|
|
113
|
+
|
|
114
|
+
// function write() {
|
|
115
|
+
// if((arguments.length > 0) && typeof arguments[0] === 'string') {
|
|
116
|
+
// arguments[0] = arguments[0].trim();
|
|
117
|
+
// }
|
|
118
|
+
// fn.apply(process.stdout, arguments);
|
|
119
|
+
// }
|
|
120
|
+
|
|
121
|
+
// process.stdout.write = write;
|
|
122
|
+
// }
|
|
123
|
+
|
|
124
|
+
if (procType === 'child-of-root') {
|
|
125
|
+
global.spinner = {
|
|
126
|
+
start() {
|
|
127
|
+
process.send && process.send('start-spinner')
|
|
128
|
+
},
|
|
129
|
+
stop() {
|
|
130
|
+
process.send && process.send('stop-spinner')
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
if (startSpinner) {
|
|
136
|
+
//#region start spinner in processs
|
|
137
|
+
var ora = require('ora');
|
|
138
|
+
var spinner = ora();
|
|
139
|
+
spinner.start();
|
|
140
|
+
global.spinner = spinner;
|
|
141
|
+
|
|
142
|
+
const child_process = require('child_process');
|
|
143
|
+
const orgArgvForChild = orgArgv.filter(a => !a.startsWith('-spinner'));
|
|
144
|
+
|
|
145
|
+
const env = {
|
|
146
|
+
...process.env,
|
|
147
|
+
FORCE_COLOR: '1'
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
const cwd = process.cwd();
|
|
151
|
+
const argsToCHildProc = (`${orgArgvForChild.slice(2).join(' ')} ${global.verbose ? '-verbose' : ''} ${global.skipCoreCheck ? '--skipCoreCheck' : ''} `
|
|
152
|
+
+ `${spinnerOnInArgs ? '-spinner' : (spinnerOffInArgs ? '-spinner=off' : '')} ${childprocsecretarg}`).split(' ');
|
|
153
|
+
|
|
154
|
+
const proc = child_process.fork(crossPlatofrmPath(__filename), argsToCHildProc, {
|
|
155
|
+
env,
|
|
156
|
+
stdio: [0, 1, 2, 'ipc'],
|
|
157
|
+
cwd,
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
proc.on('exit', (code) => {
|
|
161
|
+
spinner.stop();
|
|
162
|
+
setTimeout(() => {
|
|
163
|
+
process.exit(code);
|
|
164
|
+
})
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
proc.on('message', message => {
|
|
168
|
+
message = (message ? message : '').trimLeft();
|
|
169
|
+
if (message === 'start-spinner') {
|
|
170
|
+
spinner.start();
|
|
171
|
+
} else if (message === 'stop-spinner') {
|
|
172
|
+
spinner.stop();
|
|
173
|
+
} else if (message.startsWith('info::')) {
|
|
174
|
+
setText((message));
|
|
175
|
+
} else if (message.startsWith('success::')) {
|
|
176
|
+
setText((message));
|
|
177
|
+
} else if (message.startsWith('taskstart::')) {
|
|
178
|
+
setText((message));
|
|
179
|
+
} else if (message.startsWith('taskdone::')) {
|
|
180
|
+
setText((message));
|
|
181
|
+
} else if (message.startsWith('error::')) {
|
|
182
|
+
setText((message));
|
|
183
|
+
} else if (message.startsWith('log::')) {
|
|
184
|
+
setText((message), true);
|
|
185
|
+
} else if (message.startsWith('warn::')) {
|
|
186
|
+
setText((message));
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
// process.stdin.resume(); // not needed ?
|
|
191
|
+
//#endregion
|
|
192
|
+
} else {
|
|
193
|
+
//#region child or child of child
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
if (distOnly) {
|
|
197
|
+
//#region standalrd dist mode
|
|
198
|
+
mode = 'dist';
|
|
199
|
+
!global.hideLog && setText('- dist only -', true);
|
|
200
|
+
process.argv = process.argv.filter(f => !!f);
|
|
201
|
+
|
|
202
|
+
const pathToDistRun = path.join(__dirname, '../dist/cli.js');
|
|
203
|
+
start = require(pathToDistRun.replace(/\.js$/g, '')).start;
|
|
204
|
+
//#endregion
|
|
205
|
+
} else if (npmOnly) {
|
|
206
|
+
//#region npm mode (project as installable package)
|
|
207
|
+
mode = 'npm';
|
|
208
|
+
!global.hideLog && setText('- npm global only -', true);
|
|
209
|
+
// =========================== only dist ============================
|
|
210
|
+
process.argv = process.argv.filter(a => a !== '-npm');
|
|
211
|
+
process.argv = process.argv.filter(f => !!f);
|
|
212
|
+
|
|
213
|
+
const pathToDistRun = path.join(__dirname, '../cli.js');
|
|
214
|
+
start = require(pathToDistRun.replace(/\.js$/g, '')).start;
|
|
215
|
+
//#endregion
|
|
216
|
+
} else {
|
|
217
|
+
//#region uknow dist or npm mode
|
|
218
|
+
const fs = require('fs');
|
|
219
|
+
|
|
220
|
+
const pathToDistRun = path.join(__dirname, '../dist/cli.js');
|
|
221
|
+
const pathToIndexRun = path.join(__dirname, '../cli.js');
|
|
222
|
+
const distExist = fs.existsSync(pathToDistRun);
|
|
223
|
+
|
|
224
|
+
if (distExist) {
|
|
225
|
+
mode = 'dist';
|
|
226
|
+
!global.hideLog && setText('- firedev dist -', true);
|
|
227
|
+
// TODO TOOOO MUCH TIME !!!!!!
|
|
228
|
+
start = require(pathToDistRun.replace(/\.js$/g, '')).start;
|
|
229
|
+
} else {
|
|
230
|
+
mode = 'npm';
|
|
231
|
+
!global.hideLog && setText('- npm mode -', true);
|
|
232
|
+
start = require(pathToIndexRun.replace(/\.js$/g, '')).start;
|
|
233
|
+
}
|
|
234
|
+
//#endregion
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// global.start = start;
|
|
238
|
+
process.argv = process.argv.filter(f => !!f);
|
|
239
|
+
start(process.argv, global.frameworkName, mode);
|
|
240
|
+
//#endregion
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
function crossPlatofrmPath(p) {
|
|
244
|
+
if (isWinGitBash) {
|
|
245
|
+
return p.replace(/\\/g, '/');
|
|
246
|
+
}
|
|
247
|
+
return p;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
function setText(text, toSpiner = false) {
|
|
251
|
+
const spinner = global.spinner;
|
|
252
|
+
if (text) {
|
|
253
|
+
text = text.split('::').slice(1).join('::');
|
|
254
|
+
}
|
|
255
|
+
if (spinner) {
|
|
256
|
+
if (toSpiner) {
|
|
257
|
+
spinner.text = text.replace(/(?:\r\n|\r|\n)/g, ' ');
|
|
258
|
+
} else {
|
|
259
|
+
const wasSpinning = spinner.isSpinning;
|
|
260
|
+
if (wasSpinning) {
|
|
261
|
+
spinner.stop();
|
|
262
|
+
spinner.clear();
|
|
263
|
+
}
|
|
264
|
+
console.log(text);
|
|
265
|
+
if (wasSpinning) {
|
|
266
|
+
spinner.start()
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
} else {
|
|
270
|
+
console.log(text);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
//#endregion
|
package/bin/tnp
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
//#region @backend
|
|
3
|
-
// --stack-trace-limit=10000
|
|
4
|
-
require('./start');
|
|
5
|
-
//#endregion
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
//#region @backend
|
|
3
|
+
// --stack-trace-limit=10000
|
|
4
|
+
require('./start');
|
|
5
|
+
//#endregion
|
package/bin/tnp-debug
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
#!/usr/bin/env -S node --inspect --stack-trace-limit=10000
|
|
2
|
-
//#region @backend
|
|
3
|
-
// --stack-trace-limit=10000
|
|
4
|
-
require('./start');
|
|
5
|
-
//#endregion
|
|
1
|
+
#!/usr/bin/env -S node --inspect --stack-trace-limit=10000
|
|
2
|
+
//#region @backend
|
|
3
|
+
// --stack-trace-limit=10000
|
|
4
|
+
require('./start');
|
|
5
|
+
//#endregion
|
package/bin/tnp-debug-brk
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env -S node --inspect-brk --stack-trace-limit=10000
|
|
2
|
-
//#region @backend
|
|
3
|
-
require('./start');
|
|
4
|
-
//#endregion
|
|
1
|
+
#!/usr/bin/env -S node --inspect-brk --stack-trace-limit=10000
|
|
2
|
+
//#region @backend
|
|
3
|
+
require('./start');
|
|
4
|
+
//#endregion
|
package/browser/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# MyLib
|
|
2
|
-
|
|
3
|
-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
|
|
4
|
-
|
|
5
|
-
## Code scaffolding
|
|
6
|
-
|
|
7
|
-
Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
|
|
8
|
-
> Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
-
|
|
10
|
-
## Build
|
|
11
|
-
|
|
12
|
-
Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
-
|
|
14
|
-
## Publishing
|
|
15
|
-
|
|
16
|
-
After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
|
|
17
|
-
|
|
18
|
-
## Running unit tests
|
|
19
|
-
|
|
20
|
-
Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
-
|
|
22
|
-
## Further help
|
|
23
|
-
|
|
24
|
-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
1
|
+
# MyLib
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
|
|
8
|
+
> Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
+
|
|
14
|
+
## Publishing
|
|
15
|
+
|
|
16
|
+
After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
+
|
|
22
|
+
## Further help
|
|
23
|
+
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|