tnp 19.0.19 → 19.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/fesm2022/tnp.mjs +2 -4
- package/browser/fesm2022/tnp.mjs.map +1 -1
- package/browser/lib/build-info._auto-generated_.d.ts +1 -1
- package/browser/lib/models.d.ts +9 -0
- package/browser/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.d.ts +0 -1
- package/browser/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.d.ts +1 -1
- package/browser/lib/project/abstract/artifacts/base-artifact.d.ts +1 -0
- package/browser/lib/project/abstract/artifacts/docs-webapp/artifact-docs-webapp.d.ts +1 -0
- package/browser/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/base-copy-manager.d.ts +1 -1
- package/browser/lib/project/abstract/git.d.ts +1 -0
- package/browser/lib/project/abstract/taonJson.d.ts +1 -0
- package/browser/package.json +1 -1
- package/cli.js +840 -602
- package/client/fesm2022/tnp.mjs +2 -4
- package/client/fesm2022/tnp.mjs.map +1 -1
- package/client/lib/build-info._auto-generated_.d.ts +1 -1
- package/client/lib/models.d.ts +9 -0
- package/client/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.d.ts +0 -1
- package/client/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.d.ts +1 -1
- package/client/lib/project/abstract/artifacts/base-artifact.d.ts +1 -0
- package/client/lib/project/abstract/artifacts/docs-webapp/artifact-docs-webapp.d.ts +1 -0
- package/client/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/base-copy-manager.d.ts +1 -1
- package/client/lib/project/abstract/git.d.ts +1 -0
- package/client/lib/project/abstract/taonJson.d.ts +1 -0
- package/client/package.json +1 -1
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/build-options.d.ts +164 -0
- package/lib/build-options.js +198 -0
- package/lib/build-options.js.map +1 -0
- package/lib/constants.js +1 -3
- package/lib/constants.js.map +1 -1
- package/lib/helpers.js +2 -2
- package/lib/models.d.ts +9 -0
- package/lib/models.js.map +1 -1
- package/lib/project/abstract/artifacts/__helpers__/environment-config/environment-config-helpers.d.ts +3 -5
- package/lib/project/abstract/artifacts/__helpers__/environment-config/environment-config-helpers.js +62 -76
- package/lib/project/abstract/artifacts/__helpers__/environment-config/environment-config-helpers.js.map +1 -1
- package/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.d.ts +0 -1
- package/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.js +20 -31
- package/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.js.map +1 -1
- package/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.backend.d.ts +5 -0
- package/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.backend.js +111 -0
- package/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.backend.js.map +1 -0
- package/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.js +6 -55
- package/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.js.map +1 -1
- package/lib/project/abstract/artifacts/angular-node-app/tools/basename-manager.js +3 -1
- package/lib/project/abstract/artifacts/angular-node-app/tools/basename-manager.js.map +1 -1
- package/lib/project/abstract/artifacts/artifact-angular-node-app/artifact-angular-node-app.d.ts +9 -0
- package/lib/project/abstract/artifacts/artifact-angular-node-app/index.d.ts +1 -0
- package/lib/project/abstract/artifacts/artifact-angular-node-app copy.d.ts +7 -0
- package/lib/project/abstract/artifacts/artifact-angular-node-app copy.js +62 -0
- package/lib/project/abstract/artifacts/artifact-angular-node-app copy.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-angular-node-app.d.ts +9 -0
- package/lib/project/abstract/artifacts/artifact-angular-node-app.js +62 -0
- package/lib/project/abstract/artifacts/artifact-angular-node-app.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-angular-webapp.d.ts +7 -0
- package/lib/project/abstract/artifacts/artifact-angular-webapp.js +62 -0
- package/lib/project/abstract/artifacts/artifact-angular-webapp.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-docs-webapp.d.ts +7 -0
- package/lib/project/abstract/artifacts/artifact-docs-webapp.js +5 -0
- package/lib/project/abstract/artifacts/artifact-docs-webapp.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-electron-app copy.d.ts +1 -0
- package/lib/project/abstract/artifacts/artifact-electron-app copy.js +5 -0
- package/lib/project/abstract/artifacts/artifact-electron-app copy.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-electron-app.d.ts +8 -0
- package/lib/project/abstract/artifacts/artifact-electron-app.js +5 -0
- package/lib/project/abstract/artifacts/artifact-electron-app.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-lib-cli.d.ts +1 -0
- package/lib/project/abstract/artifacts/artifact-lib-cli.js +5 -0
- package/lib/project/abstract/artifacts/artifact-lib-cli.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-lib-with-cli.d.ts +1 -0
- package/lib/project/abstract/artifacts/artifact-lib-with-cli.js +5 -0
- package/lib/project/abstract/artifacts/artifact-lib-with-cli.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-mk-docs-webapp.d.ts +7 -0
- package/lib/project/abstract/artifacts/artifact-mobile-app copy.d.ts +1 -0
- package/lib/project/abstract/artifacts/artifact-mobile-app copy.js +5 -0
- package/lib/project/abstract/artifacts/artifact-mobile-app copy.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-mobile-app.d.ts +7 -0
- package/lib/project/abstract/artifacts/artifact-mobile-app.js +5 -0
- package/lib/project/abstract/artifacts/artifact-mobile-app.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli-tool.d.ts +25 -0
- package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli-tool.js +5 -0
- package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli-tool.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli.d.ts +1 -0
- package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli.js +5 -0
- package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-vscode-ext copy.d.ts +1 -0
- package/lib/project/abstract/artifacts/artifact-vscode-ext copy.js +5 -0
- package/lib/project/abstract/artifacts/artifact-vscode-ext copy.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-vscode-ext.d.ts +1 -0
- package/lib/project/abstract/artifacts/artifact-vscode-ext.js +5 -0
- package/lib/project/abstract/artifacts/artifact-vscode-ext.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-vscode-plugin copy.d.ts +1 -0
- package/lib/project/abstract/artifacts/artifact-vscode-plugin copy.js +5 -0
- package/lib/project/abstract/artifacts/artifact-vscode-plugin copy.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-vscode-plugin.d.ts +9 -0
- package/lib/project/abstract/artifacts/artifact-vscode-plugin.js +5 -0
- package/lib/project/abstract/artifacts/artifact-vscode-plugin.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-webapp.d.ts +1 -0
- package/lib/project/abstract/artifacts/artifact-webapp.js +5 -0
- package/lib/project/abstract/artifacts/artifact-webapp.js.map +1 -0
- package/lib/project/abstract/artifacts/artifacts-helpers.d.ts +2 -0
- package/lib/project/abstract/artifacts/base-artifact.d.ts +1 -0
- package/lib/project/abstract/artifacts/base-artifact.js +29 -0
- package/lib/project/abstract/artifacts/base-artifact.js.map +1 -1
- package/lib/project/abstract/artifacts/build-process-maanger.d.ts +38 -0
- package/lib/project/abstract/artifacts/build-process-maanger.js +269 -0
- package/lib/project/abstract/artifacts/build-process-maanger.js.map +1 -0
- package/lib/project/abstract/artifacts/build-process-manager.d.ts +0 -51
- package/lib/project/abstract/artifacts/build-process-manager.js +388 -415
- package/lib/project/abstract/artifacts/build-process-manager.js.map +1 -1
- package/lib/project/abstract/artifacts/docs-webapp/artifact-docs-webapp.d.ts +1 -0
- package/lib/project/abstract/artifacts/docs-webapp/artifact-docs-webapp.js +68 -8
- package/lib/project/abstract/artifacts/docs-webapp/artifact-docs-webapp.js.map +1 -1
- package/lib/project/abstract/artifacts/docs-webapp/docs.js +1 -1
- package/lib/project/abstract/artifacts/docs-webapp/docs.js.map +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/artifact-npm-lib-and-cli-tool.js +7 -0
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/artifact-npm-lib-and-cli-tool.js.map +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/browser-code-cut.js +13 -12
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/browser-code-cut.js.map +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/base-copy-manager.d.ts +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/base-copy-manager.js +6 -10
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/base-copy-manager.js.map +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-organization-angular-files.d.ts +49 -0
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-organization-angular-files.js +335 -0
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-organization-angular-files.js.map +1 -0
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-organization.js +2 -2
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-standalone.js +6 -2
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-standalone.js.map +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/source-maping-url.js +0 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/source-maping-url.js.map +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/files-recreation/files-recreator.js +4 -7
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/files-recreation/files-recreator.js.map +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/inside-structures/structs/inside-struct-helpers.js +14 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/inside-structures/structs/inside-struct-helpers.js.map +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/inside-structures/structs/loaders/image-loader.js +4 -3
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/inside-structures/structs/loaders/image-loader.js.map +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/lib-project/lib-project-smart-container.js +2 -2
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/singular-build.backend.d.ts +17 -0
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/singular-build.backend.js +383 -0
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/singular-build.backend.js.map +1 -0
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/singular-build.js +2 -2
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/webpack-backend-compilation.js +2 -2
- package/lib/project/abstract/base-compiler-for-project.backend.d.ts +6 -0
- package/lib/project/abstract/base-compiler-for-project.backend.js +57 -0
- package/lib/project/abstract/base-compiler-for-project.backend.js.map +1 -0
- package/lib/project/abstract/base-local-release.d.ts +7 -0
- package/lib/project/abstract/base-local-release.js +110 -0
- package/lib/project/abstract/base-local-release.js.map +1 -0
- package/lib/project/abstract/docs.d.ts +51 -0
- package/lib/project/abstract/docs.js +813 -0
- package/lib/project/abstract/docs.js.map +1 -0
- package/lib/project/abstract/git.d.ts +1 -0
- package/lib/project/abstract/git.js +30 -3
- package/lib/project/abstract/git.js.map +1 -1
- package/lib/project/abstract/migrations-helper.d.ts +18 -0
- package/lib/project/abstract/migrations-helper.js +124 -0
- package/lib/project/abstract/migrations-helper.js.map +1 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-electron-app copy.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-electron-app.d.ts +4 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-electron-app.js +19 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-electron-app.js.map +1 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-frontend-webapp copy.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-frontend-webapp.d.ts +4 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-frontend-webapp.js +19 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-frontend-webapp.js.map +1 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-ionic-app.d.ts +4 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-ionic-app.js +19 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-ionic-app.js.map +1 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-ionic-appy.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-nodejs-webapp copy.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-nodejs-webapp.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-mkdocs-docs-webapp.d.ts +4 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-mkdocs-docs-webapp.js +19 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-mkdocs-docs-webapp.js.map +1 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-nodejs-backend-server.d.ts +4 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-nodejs-backend-server.js +19 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-nodejs-backend-server.js.map +1 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-npm-lib-and-cli-tool-package.d.ts +6 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-npm-lib-cli-package.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-npm-lib-pkg-and-cli-tool.d.ts +4 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-npm-lib-pkg-and-cli-tool.js +19 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-npm-lib-pkg-and-cli-tool.js.map +1 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-process-angular-electron-app.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-vscode-extension copy.d.ts +6 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-vscode-extension.d.ts +4 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-vscode-extension.js +19 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-vscode-extension.js.map +1 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release.d.ts +14 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release.js +28 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release.js.map +1 -0
- package/lib/project/abstract/release-process/artifacts/base-artifact-release-process.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts/base-artifact-release.d.ts +6 -0
- package/lib/project/abstract/release-process/artifacts/release-angular-nodejs-webapp.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts/release-npm-lib-cli-package copy.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts/release-npm-lib-cli-package.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts/release-process-angular-electron-app.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts copy/artifact-release-angular-nodejs-webapp.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts copy/artifact-release-npm-lib-cli-package.d.ts +0 -0
- package/lib/project/abstract/release-process/release-npm-lib-cli-package.d.ts +0 -0
- package/lib/project/abstract/release-process/release-process copy.d.ts +10 -0
- package/lib/project/abstract/release-process/release-process-artifact-npm-lib-cli.d.ts +0 -0
- package/lib/project/abstract/release-process/release-process-cloud.d.ts +7 -0
- package/lib/project/abstract/release-process/release-process-cloud.js +23 -0
- package/lib/project/abstract/release-process/release-process-cloud.js.map +1 -0
- package/lib/project/abstract/release-process/release-process-local.d.ts +7 -0
- package/lib/project/abstract/release-process/release-process-local.js +23 -0
- package/lib/project/abstract/release-process/release-process-local.js.map +1 -0
- package/lib/project/abstract/release-process/release-process-manual.d.ts +7 -0
- package/lib/project/abstract/release-process/release-process-manual.js +23 -0
- package/lib/project/abstract/release-process/release-process-manual.js.map +1 -0
- package/lib/project/abstract/taon-worker/index.d.ts +1 -0
- package/lib/project/abstract/taon-worker/index.js +5 -0
- package/lib/project/abstract/taon-worker/index.js.map +1 -0
- package/lib/project/abstract/taon-worker/taon-build.entity copy.d.ts +8 -0
- package/lib/project/abstract/taon-worker/taon-build.entity copy.js +50 -0
- package/lib/project/abstract/taon-worker/taon-build.entity copy.js.map +1 -0
- package/lib/project/abstract/taon-worker/taon-project.entity copy.d.ts +5 -0
- package/lib/project/abstract/taon-worker/taon-project.entity copy.js +37 -0
- package/lib/project/abstract/taon-worker/taon-project.entity copy.js.map +1 -0
- package/lib/project/abstract/taon-worker/taon-termina-ui.d.ts +20 -0
- package/lib/project/abstract/taon-worker/taon-termina-ui.js +67 -0
- package/lib/project/abstract/taon-worker/taon-termina-ui.js.map +1 -0
- package/lib/project/abstract/taon-worker/taon.context.d.ts +2 -2
- package/lib/project/abstract/taon-worker/taon.entity.d.ts +6 -0
- package/lib/project/abstract/taon-worker/taon.entity.js +46 -0
- package/lib/project/abstract/taon-worker/taon.entity.js.map +1 -0
- package/lib/project/abstract/taon-worker.d.ts +29 -0
- package/lib/project/abstract/taon-worker.js +4 -0
- package/lib/project/abstract/taon-worker.js.map +1 -0
- package/lib/project/abstract/taonJson.d.ts +1 -0
- package/lib/project/abstract/taonJson.js +10 -0
- package/lib/project/abstract/taonJson.js.map +1 -1
- package/lib/project/abstract/vscode.js +1 -1
- package/lib/project/abstract/vscode.js.map +1 -1
- package/lib/project/cli/cli-BRANDING.backend.d.ts +26 -0
- package/lib/project/cli/cli-BRANDING.backend.js +50 -0
- package/lib/project/cli/cli-BRANDING.backend.js.map +1 -0
- package/lib/project/cli/cli-BUILD.backend.d.ts +4 -0
- package/lib/project/cli/cli-BUILD.backend.js +269 -0
- package/lib/project/cli/cli-BUILD.backend.js.map +1 -0
- package/lib/project/cli/cli-BUILD.js +2 -4
- package/lib/project/cli/cli-BUILD.js.map +1 -1
- package/lib/project/cli/cli-CI-BUILD.backend.d.ts +4 -0
- package/lib/project/cli/cli-CI-BUILD.backend.js +88 -0
- package/lib/project/cli/cli-CI-BUILD.backend.js.map +1 -0
- package/lib/project/cli/cli-DOCS.backend.d.ts +4 -0
- package/lib/project/cli/cli-DOCS.backend.js +48 -0
- package/lib/project/cli/cli-DOCS.backend.js.map +1 -0
- package/lib/project/cli/cli-DOCS.js +5 -5
- package/lib/project/cli/cli-DOCS.js.map +1 -1
- package/lib/project/cli/cli-ELECTRON.backend.d.ts +4 -0
- package/lib/project/cli/cli-ELECTRON.backend.js +80 -0
- package/lib/project/cli/cli-ELECTRON.backend.js.map +1 -0
- package/lib/project/cli/cli-GENERATE.js +1 -1
- package/lib/project/cli/cli-GENERATE.js.map +1 -1
- package/lib/project/cli/cli-INIT.backend.d.ts +16 -0
- package/lib/project/cli/cli-INIT.backend.js +179 -0
- package/lib/project/cli/cli-INIT.backend.js.map +1 -0
- package/lib/project/cli/cli-LINK.backend.d.ts +21 -0
- package/lib/project/cli/cli-LINK.backend.js +204 -0
- package/lib/project/cli/cli-LINK.backend.js.map +1 -0
- package/lib/project/cli/cli-LINK.d.ts +1 -1
- package/lib/project/cli/cli-LINK.js +19 -6
- package/lib/project/cli/cli-LINK.js.map +1 -1
- package/lib/project/cli/cli-LOCAL-RELEASE.backend.d.ts +17 -0
- package/lib/project/cli/cli-LOCAL-RELEASE.backend.js +240 -0
- package/lib/project/cli/cli-LOCAL-RELEASE.backend.js.map +1 -0
- package/lib/project/cli/cli-LOCAL-RELEASE.d.ts +0 -0
- package/lib/project/cli/cli-LOCAL-RELEASE.js +184 -0
- package/lib/project/cli/cli-LOCAL-RELEASE.js.map +1 -0
- package/lib/project/cli/cli-MIGRATION.backend.d.ts +4 -0
- package/lib/project/cli/cli-MIGRATION.backend.js +213 -0
- package/lib/project/cli/cli-MIGRATION.backend.js.map +1 -0
- package/lib/project/cli/cli-NEW.backend.d.ts +18 -0
- package/lib/project/cli/cli-NEW.backend.js +393 -0
- package/lib/project/cli/cli-NEW.backend.js.map +1 -0
- package/lib/project/cli/cli-OPEN.backend.d.ts +17 -0
- package/lib/project/cli/cli-OPEN.backend.js +129 -0
- package/lib/project/cli/cli-OPEN.backend.js.map +1 -0
- package/lib/project/cli/cli-RELEASE.backend.d.ts +4 -0
- package/lib/project/cli/cli-RELEASE.backend.js +415 -0
- package/lib/project/cli/cli-RELEASE.backend.js.map +1 -0
- package/lib/project/cli/cli-SERVICE.backend.d.ts +9 -0
- package/lib/project/cli/cli-SERVICE.backend.js +38 -0
- package/lib/project/cli/cli-SERVICE.backend.js.map +1 -0
- package/lib/project/cli/cli-START.backend.d.ts +2 -0
- package/lib/project/cli/cli-START.backend.js +4 -0
- package/lib/project/cli/cli-START.backend.js.map +1 -0
- package/lib/project/cli/cli-TEST.backend.d.ts +24 -0
- package/lib/project/cli/cli-TEST.backend.js +292 -0
- package/lib/project/cli/cli-TEST.backend.js.map +1 -0
- package/lib/project/cli/cli-TS.backend.d.ts +9 -0
- package/lib/project/cli/cli-TS.backend.js +29 -0
- package/lib/project/cli/cli-TS.backend.js.map +1 -0
- package/lib/project/cli/cli-UPDATE.backend.d.ts +2 -0
- package/lib/project/cli/cli-UPDATE.backend.js +4 -0
- package/lib/project/cli/cli-UPDATE.backend.js.map +1 -0
- package/lib/project/cli/cli-VSCODE.backend.d.ts +20 -0
- package/lib/project/cli/cli-VSCODE.backend.js +153 -0
- package/lib/project/cli/cli-VSCODE.backend.js.map +1 -0
- package/lib/project/cli/cli-_GLOBAL_.backend.d.ts +91 -0
- package/lib/project/cli/cli-_GLOBAL_.backend.js +1730 -0
- package/lib/project/cli/cli-_GLOBAL_.backend.js.map +1 -0
- package/lib/project/cli/cli-_GLOBAL_.js +1 -1
- package/lib/project/cli/cli-_GLOBAL_.js.map +1 -1
- package/lib/project/compilers/assets-list-file-generator/assets-list-file-generator.backend.d.ts +21 -0
- package/lib/project/compilers/assets-list-file-generator/assets-list-file-generator.backend.js +150 -0
- package/lib/project/compilers/assets-list-file-generator/assets-list-file-generator.backend.js.map +1 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/browser-code-cut.backend.d.ts +102 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/browser-code-cut.backend.js +990 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/browser-code-cut.backend.js.map +1 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/code-cut.backend.d.ts +41 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/code-cut.backend.js +85 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/code-cut.backend.js.map +1 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/code-split-process.enum.d.ts +44 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/code-split-process.enum.js +98 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/code-split-process.enum.js.map +1 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/cut-fn.backend.d.ts +1 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/cut-fn.backend.js +18 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/cut-fn.backend.js.map +1 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/file-split-process.d.ts +14 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/file-split-process.js +159 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/file-split-process.js.map +1 -0
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-backend.backend.d.ts +60 -0
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-backend.backend.js +284 -0
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-backend.backend.js.map +1 -0
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-browser.backend.d.ts +42 -0
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-browser.backend.js +232 -0
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-browser.backend.js.map +1 -0
- package/lib/project/compilers/build-isomorphic-lib/compilations/incremental-build-process.backend.d.ts +18 -0
- package/lib/project/compilers/build-isomorphic-lib/compilations/incremental-build-process.backend.js +165 -0
- package/lib/project/compilers/build-isomorphic-lib/compilations/incremental-build-process.backend.js.map +1 -0
- package/lib/project/compilers/index.d.ts +1 -0
- package/lib/project/compilers/index.js +8 -0
- package/lib/project/compilers/index.js.map +1 -0
- package/lib/project/features/assets-manager.backend.d.ts +5 -0
- package/lib/project/features/assets-manager.backend.js +110 -0
- package/lib/project/features/assets-manager.backend.js.map +1 -0
- package/lib/project/features/basename-manager.d.ts +18 -0
- package/lib/project/features/basename-manager.js +89 -0
- package/lib/project/features/basename-manager.js.map +1 -0
- package/lib/project/features/branding.backend.d.ts +11 -0
- package/lib/project/features/branding.backend.js +213 -0
- package/lib/project/features/branding.backend.js.map +1 -0
- package/lib/project/features/build-process/app/build-process/backend/build-process-backend.d.ts +14 -0
- package/lib/project/features/build-process/app/build-process/backend/build-process-backend.js +44 -0
- package/lib/project/features/build-process/app/build-process/backend/build-process-backend.js.map +1 -0
- package/lib/project/features/build-process/app/build-process/backend/build-process-backend.test.d.ts +0 -0
- package/lib/project/features/build-process/app/build-process/backend/build-process-backend.test.js +2 -0
- package/lib/project/features/build-process/app/build-process/backend/build-process-backend.test.js.map +1 -0
- package/lib/project/features/build-process/app/build-process/build-process.controller.d.ts +20 -0
- package/lib/project/features/build-process/app/build-process/build-process.controller.js +159 -0
- package/lib/project/features/build-process/app/build-process/build-process.controller.js.map +1 -0
- package/lib/project/features/build-process/app/build-process/build-process.d.ts +12 -0
- package/lib/project/features/build-process/app/build-process/build-process.js +56 -0
- package/lib/project/features/build-process/app/build-process/build-process.js.map +1 -0
- package/lib/project/features/build-process/app/build-process/index.d.ts +2 -0
- package/lib/project/features/build-process/app/build-process/index.js +6 -0
- package/lib/project/features/build-process/app/build-process/index.js.map +1 -0
- package/lib/project/features/copy-manager/base-copy-manager.backend.d.ts +87 -0
- package/lib/project/features/copy-manager/base-copy-manager.backend.js +504 -0
- package/lib/project/features/copy-manager/base-copy-manager.backend.js.map +1 -0
- package/lib/project/features/copy-manager/copy-manager-helpers.backend.d.ts +12 -0
- package/lib/project/features/copy-manager/copy-manager-helpers.backend.js +96 -0
- package/lib/project/features/copy-manager/copy-manager-helpers.backend.js.map +1 -0
- package/lib/project/features/copy-manager/copy-manager-organization-angular-files.backend.d.ts +49 -0
- package/lib/project/features/copy-manager/copy-manager-organization-angular-files.backend.js +321 -0
- package/lib/project/features/copy-manager/copy-manager-organization-angular-files.backend.js.map +1 -0
- package/lib/project/features/copy-manager/copy-manager-organization.backend.d.ts +78 -0
- package/lib/project/features/copy-manager/copy-manager-organization.backend.js +788 -0
- package/lib/project/features/copy-manager/copy-manager-organization.backend.js.map +1 -0
- package/lib/project/features/copy-manager/copy-manager-standalone.backend.d.ts +77 -0
- package/lib/project/features/copy-manager/copy-manager-standalone.backend.js +575 -0
- package/lib/project/features/copy-manager/copy-manager-standalone.backend.js.map +1 -0
- package/lib/project/features/copy-manager/copy-manager.backend.d.ts +7 -0
- package/lib/project/features/copy-manager/copy-manager.backend.js +27 -0
- package/lib/project/features/copy-manager/copy-manager.backend.js.map +1 -0
- package/lib/project/features/copy-manager/mjs-fesm-module-spliter.backend.d.ts +46 -0
- package/lib/project/features/copy-manager/mjs-fesm-module-spliter.backend.js +354 -0
- 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.d.ts +12 -0
- package/lib/project/features/copy-manager/source-maping-url.backend.js +56 -0
- package/lib/project/features/copy-manager/source-maping-url.backend.js.map +1 -0
- package/lib/project/features/copy-manager/typescript-dts-fixer.backend.d.ts +25 -0
- package/lib/project/features/copy-manager/typescript-dts-fixer.backend.js +97 -0
- package/lib/project/features/copy-manager/typescript-dts-fixer.backend.js.map +1 -0
- package/lib/project/features/docs-app-build-config.backend.d.ts +19 -0
- package/lib/project/features/docs-app-build-config.backend.js +81 -0
- package/lib/project/features/docs-app-build-config.backend.js.map +1 -0
- package/lib/project/features/docs-provider.d.ts +9 -0
- package/lib/project/features/docs-provider.js +48 -0
- package/lib/project/features/docs-provider.js.map +1 -0
- package/lib/project/features/documentation-builder.d.ts +0 -0
- package/lib/project/features/documentation-builder.js +5 -0
- package/lib/project/features/documentation-builder.js.map +1 -0
- package/lib/project/features/environment-config/environment-config-helpers.d.ts +6 -0
- package/lib/project/features/environment-config/environment-config-helpers.js +197 -0
- package/lib/project/features/environment-config/environment-config-helpers.js.map +1 -0
- package/lib/project/features/environment-config/environment-config.d.ts +12 -0
- package/lib/project/features/environment-config/environment-config.js +117 -0
- package/lib/project/features/environment-config/environment-config.js.map +1 -0
- package/lib/project/features/environment-config/example-environment-config.d.ts +2 -0
- package/lib/project/features/environment-config/example-environment-config.js +26 -0
- package/lib/project/features/environment-config/example-environment-config.js.map +1 -0
- package/lib/project/features/files-recreation/files-factory.backend.d.ts +11 -0
- package/lib/project/features/files-recreation/files-factory.backend.js +64 -0
- package/lib/project/features/files-recreation/files-factory.backend.js.map +1 -0
- package/lib/project/features/files-recreation/files-recreator.d.ts +113 -0
- package/lib/project/features/files-recreation/files-recreator.js +661 -0
- package/lib/project/features/files-recreation/files-recreator.js.map +1 -0
- package/lib/project/features/files-recreation/files-templates.d.ts +8 -0
- package/lib/project/features/files-recreation/files-templates.js +129 -0
- package/lib/project/features/files-recreation/files-templates.js.map +1 -0
- package/lib/project/features/files-recreation/index.d.ts +3 -0
- package/lib/project/features/files-recreation/index.js +9 -0
- package/lib/project/features/files-recreation/index.js.map +1 -0
- package/lib/project/features/html-to-md.d.ts +1 -0
- package/lib/project/features/html-to-md.js +241 -0
- package/lib/project/features/html-to-md.js.map +1 -0
- package/lib/project/features/index-autogen-provider.backend.d.ts +14 -0
- package/lib/project/features/index-autogen-provider.backend.js +102 -0
- package/lib/project/features/index-autogen-provider.backend.js.map +1 -0
- package/lib/project/features/index.d.ts +12 -0
- package/lib/project/features/index.js +18 -0
- package/lib/project/features/index.js.map +1 -0
- package/lib/project/features/inside-structures/inside-struct.d.ts +43 -0
- package/lib/project/features/inside-structures/inside-struct.js +53 -0
- package/lib/project/features/inside-structures/inside-struct.js.map +1 -0
- package/lib/project/features/inside-structures/inside-structures.d.ts +11 -0
- package/lib/project/features/inside-structures/inside-structures.js +160 -0
- package/lib/project/features/inside-structures/inside-structures.js.map +1 -0
- package/lib/project/features/inside-structures/structs/base-inside-struct.d.ts +13 -0
- package/lib/project/features/inside-structures/structs/base-inside-struct.js +24 -0
- package/lib/project/features/inside-structures/structs/base-inside-struct.js.map +1 -0
- package/lib/project/features/inside-structures/structs/index.d.ts +2 -0
- package/lib/project/features/inside-structures/structs/index.js +6 -0
- package/lib/project/features/inside-structures/structs/index.js.map +1 -0
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-app.d.ts +6 -0
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-app.js +495 -0
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-app.js.map +1 -0
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-lib.d.ts +6 -0
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-lib.js +240 -0
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-lib.js.map +1 -0
- package/lib/project/features/inside-structures/structs/inside-struct-constants.d.ts +2 -0
- package/lib/project/features/inside-structures/structs/inside-struct-constants.js +6 -0
- package/lib/project/features/inside-structures/structs/inside-struct-constants.js.map +1 -0
- package/lib/project/features/inside-structures/structs/inside-struct-helpers.d.ts +12 -0
- package/lib/project/features/inside-structures/structs/inside-struct-helpers.js +128 -0
- package/lib/project/features/inside-structures/structs/inside-struct-helpers.js.map +1 -0
- package/lib/project/features/inside-structures/structs/loaders/image-loader.d.ts +1 -0
- package/lib/project/features/inside-structures/structs/loaders/image-loader.js +9 -0
- package/lib/project/features/inside-structures/structs/loaders/image-loader.js.map +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-default.d.ts +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-default.js +10 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-default.js.map +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-ellipsis.d.ts +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-ellipsis.js +10 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-ellipsis.js.map +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-facebook.d.ts +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-facebook.js +10 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-facebook.js.map +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-grid.d.ts +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-grid.js +10 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-grid.js.map +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-heart.d.ts +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-heart.js +10 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-heart.js.map +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-ripple.d.ts +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-ripple.js +10 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-ripple.js.map +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loaders.d.ts +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loaders.js +27 -0
- package/lib/project/features/inside-structures/structs/loaders/loaders.js.map +1 -0
- package/lib/project/features/lib-project/lib-project-base.backend.d.ts +14 -0
- package/lib/project/features/lib-project/lib-project-base.backend.js +120 -0
- package/lib/project/features/lib-project/lib-project-base.backend.js.map +1 -0
- package/lib/project/features/lib-project/lib-project-smart-container.backend.d.ts +13 -0
- package/lib/project/features/lib-project/lib-project-smart-container.backend.js +320 -0
- package/lib/project/features/lib-project/lib-project-smart-container.backend.js.map +1 -0
- package/lib/project/features/lib-project/lib-project-standalone.backend.d.ts +13 -0
- package/lib/project/features/lib-project/lib-project-standalone.backend.js +269 -0
- package/lib/project/features/lib-project/lib-project-standalone.backend.js.map +1 -0
- package/lib/project/features/lib-project/lib-project-vscode-ext.d.ts +11 -0
- package/lib/project/features/lib-project/lib-project-vscode-ext.js +128 -0
- package/lib/project/features/lib-project/lib-project-vscode-ext.js.map +1 -0
- package/lib/project/features/linked-repos.backend.d.ts +19 -0
- package/lib/project/features/linked-repos.backend.js +198 -0
- package/lib/project/features/linked-repos.backend.js.map +1 -0
- package/lib/project/features/node-modules/index.d.ts +1 -0
- package/lib/project/features/node-modules/index.js +7 -0
- package/lib/project/features/node-modules/index.js.map +1 -0
- package/lib/project/features/node-modules/node-modules-helpers.backend.d.ts +3 -0
- package/lib/project/features/node-modules/node-modules-helpers.backend.js +159 -0
- package/lib/project/features/node-modules/node-modules-helpers.backend.js.map +1 -0
- package/lib/project/features/node-modules/node-modules.d.ts +29 -0
- package/lib/project/features/node-modules/node-modules.js +350 -0
- package/lib/project/features/node-modules/node-modules.js.map +1 -0
- package/lib/project/features/npm-packages/index.d.ts +1 -0
- package/lib/project/features/npm-packages/index.js +7 -0
- package/lib/project/features/npm-packages/index.js.map +1 -0
- package/lib/project/features/npm-packages/npm-packages-base.backend.d.ts +6 -0
- package/lib/project/features/npm-packages/npm-packages-base.backend.js +159 -0
- package/lib/project/features/npm-packages/npm-packages-base.backend.js.map +1 -0
- package/lib/project/features/npm-packages/npm-packages-core.backend.d.ts +15 -0
- package/lib/project/features/npm-packages/npm-packages-core.backend.js +166 -0
- package/lib/project/features/npm-packages/npm-packages-core.backend.js.map +1 -0
- package/lib/project/features/npm-packages/npm-packages-helpers.backend.d.ts +7 -0
- package/lib/project/features/npm-packages/npm-packages-helpers.backend.js +85 -0
- package/lib/project/features/npm-packages/npm-packages-helpers.backend.js.map +1 -0
- package/lib/project/features/npm-packages/npm-packages.d.ts +5 -0
- package/lib/project/features/npm-packages/npm-packages.js +72 -0
- package/lib/project/features/npm-packages/npm-packages.js.map +1 -0
- package/lib/project/features/package-json/index.d.ts +1 -0
- package/lib/project/features/package-json/index.js +5 -0
- package/lib/project/features/package-json/index.js.map +1 -0
- package/lib/project/features/package-json/package-json-base.backend.d.ts +31 -0
- package/lib/project/features/package-json/package-json-base.backend.js +157 -0
- package/lib/project/features/package-json/package-json-base.backend.js.map +1 -0
- package/lib/project/features/package-json/package-json-core.backend.d.ts +56 -0
- package/lib/project/features/package-json/package-json-core.backend.js +369 -0
- package/lib/project/features/package-json/package-json-core.backend.js.map +1 -0
- package/lib/project/features/package-json/package-json-deps-categories.backend.d.ts +17 -0
- package/lib/project/features/package-json/package-json-deps-categories.backend.js +145 -0
- package/lib/project/features/package-json/package-json-deps-categories.backend.js.map +1 -0
- package/lib/project/features/package-json/package-json-helpers.backend.d.ts +14 -0
- package/lib/project/features/package-json/package-json-helpers.backend.js +766 -0
- package/lib/project/features/package-json/package-json-helpers.backend.js.map +1 -0
- package/lib/project/features/package-json/package-json.d.ts +6 -0
- package/lib/project/features/package-json/package-json.js +66 -0
- package/lib/project/features/package-json/package-json.js.map +1 -0
- package/lib/project/features/package-recognition/packages-recognition.d.ts +13 -0
- package/lib/project/features/package-recognition/packages-recognition.js +187 -0
- package/lib/project/features/package-recognition/packages-recognition.js.map +1 -0
- package/lib/project/features/quick-fixes.d.ts +29 -0
- package/lib/project/features/quick-fixes.js +433 -0
- package/lib/project/features/quick-fixes.js.map +1 -0
- package/lib/project/features/singular-build.backend.d.ts +18 -0
- package/lib/project/features/singular-build.backend.js +375 -0
- package/lib/project/features/singular-build.backend.js.map +1 -0
- package/lib/project/features/target-project.backend.d.ts +10 -0
- package/lib/project/features/target-project.backend.js +189 -0
- package/lib/project/features/target-project.backend.js.map +1 -0
- package/lib/project/features/test-runner/cypress-test-runner.d.ts +7 -0
- package/lib/project/features/test-runner/cypress-test-runner.js +84 -0
- package/lib/project/features/test-runner/cypress-test-runner.js.map +1 -0
- package/lib/project/features/test-runner/index.d.ts +3 -0
- package/lib/project/features/test-runner/index.js +7 -0
- package/lib/project/features/test-runner/index.js.map +1 -0
- package/lib/project/features/test-runner/jest-test-runner.d.ts +8 -0
- package/lib/project/features/test-runner/jest-test-runner.js +69 -0
- package/lib/project/features/test-runner/jest-test-runner.js.map +1 -0
- package/lib/project/features/test-runner/mocha-test-runner.d.ts +7 -0
- package/lib/project/features/test-runner/mocha-test-runner.js +66 -0
- package/lib/project/features/test-runner/mocha-test-runner.js.map +1 -0
- package/lib/project/features/webpack-backend-compilation.backend.d.ts +14 -0
- package/lib/project/features/webpack-backend-compilation.backend.js +68 -0
- package/lib/project/features/webpack-backend-compilation.backend.js.map +1 -0
- package/lib/project/index.js +2 -2
- package/lib/taon-models.d.ts +72 -0
- package/migrations/1735324537544_pierwsza.d.ts +1 -0
- package/migrations/1735324537544_pierwsza.js +3 -0
- package/migrations/1735324537544_pierwsza.js.map +1 -0
- package/migrations/1735324809552_pierwsza.d.ts +6 -0
- package/migrations/1735324809552_pierwsza.js +33 -0
- package/migrations/1735324809552_pierwsza.js.map +1 -0
- package/migrations/1735324983861_druga.d.ts +6 -0
- package/migrations/1735324983861_druga.js +33 -0
- package/migrations/1735324983861_druga.js.map +1 -0
- package/migrations/1737301578918_addingSampleData.d.ts +32 -0
- package/migrations/1737301578918_addingSampleData.js +111 -0
- package/migrations/1737301578918_addingSampleData.js.map +1 -0
- package/package.json +1 -1
- package/tmp-environment.json +3 -3
- package/websql/fesm2022/tnp.mjs +2 -4
- package/websql/fesm2022/tnp.mjs.map +1 -1
- package/websql/lib/build-info._auto-generated_.d.ts +1 -1
- package/websql/lib/models.d.ts +9 -0
- package/websql/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.d.ts +0 -1
- package/websql/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.d.ts +1 -1
- package/websql/lib/project/abstract/artifacts/base-artifact.d.ts +1 -0
- package/websql/lib/project/abstract/artifacts/docs-webapp/artifact-docs-webapp.d.ts +1 -0
- package/websql/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/base-copy-manager.d.ts +1 -1
- package/websql/lib/project/abstract/git.d.ts +1 -0
- package/websql/lib/project/abstract/taonJson.d.ts +1 -0
- package/websql/package.json +1 -1
|
@@ -0,0 +1,788 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CopyManagerOrganization = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var tnp_config_1 = require("tnp-config");
|
|
6
|
+
var tnp_core_1 = require("tnp-core");
|
|
7
|
+
var tnp_helpers_1 = require("tnp-helpers");
|
|
8
|
+
var project_1 = require("../../abstract/project");
|
|
9
|
+
var copy_manager_helpers_backend_1 = require("./copy-manager-helpers.backend");
|
|
10
|
+
var copy_manager_organization_angular_files_backend_1 = require("./copy-manager-organization-angular-files.backend");
|
|
11
|
+
var copy_manager_standalone_backend_1 = require("./copy-manager-standalone.backend");
|
|
12
|
+
var CopyManagerOrganization = /** @class */ (function (_super) {
|
|
13
|
+
tslib_1.__extends(CopyManagerOrganization, _super);
|
|
14
|
+
function CopyManagerOrganization() {
|
|
15
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
16
|
+
}
|
|
17
|
+
Object.defineProperty(CopyManagerOrganization.prototype, "targetProjName", {
|
|
18
|
+
//#region target project name
|
|
19
|
+
/**
|
|
20
|
+
* target name for organizaiton (smart container) build
|
|
21
|
+
*/
|
|
22
|
+
get: function () {
|
|
23
|
+
return this.project.__smartContainerBuildTarget.name;
|
|
24
|
+
},
|
|
25
|
+
enumerable: false,
|
|
26
|
+
configurable: true
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(CopyManagerOrganization.prototype, "targetProjPath", {
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region target project path
|
|
31
|
+
get: function () {
|
|
32
|
+
return (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.project.location, this.buildOptions.outDir, this.project.name, this.targetProjName));
|
|
33
|
+
},
|
|
34
|
+
enumerable: false,
|
|
35
|
+
configurable: true
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(CopyManagerOrganization.prototype, "targetProj", {
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region target project
|
|
40
|
+
get: function () {
|
|
41
|
+
return project_1.Project.ins.From(this.targetProjPath);
|
|
42
|
+
},
|
|
43
|
+
enumerable: false,
|
|
44
|
+
configurable: true
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region init
|
|
48
|
+
CopyManagerOrganization.prototype.init = function (buildOptions, renameDestinationFolder) {
|
|
49
|
+
_super.prototype.init.call(this, buildOptions, renameDestinationFolder);
|
|
50
|
+
this.children = this.getChildren();
|
|
51
|
+
this.angularCopyManger = new copy_manager_organization_angular_files_backend_1.CopyMangerOrganizationAngularFiles(this);
|
|
52
|
+
};
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region recreate temp proj
|
|
55
|
+
CopyManagerOrganization.prototype.recreateTempProj = function () {
|
|
56
|
+
_super.prototype.recreateTempProj.call(this);
|
|
57
|
+
};
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region _ copy builded distibutino to
|
|
60
|
+
CopyManagerOrganization.prototype._copyBuildedDistributionTo = function (destination, options) {
|
|
61
|
+
_super.prototype._copyBuildedDistributionTo.call(this, destination, options);
|
|
62
|
+
};
|
|
63
|
+
Object.defineProperty(CopyManagerOrganization.prototype, "localTempProjPath", {
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region local temp proj path
|
|
66
|
+
get: function () {
|
|
67
|
+
var targetProjPath = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.targetProjPath, this.tempProjName));
|
|
68
|
+
return (0, tnp_core_1.crossPlatformPath)(targetProjPath);
|
|
69
|
+
},
|
|
70
|
+
enumerable: false,
|
|
71
|
+
configurable: true
|
|
72
|
+
});
|
|
73
|
+
Object.defineProperty(CopyManagerOrganization.prototype, "rootPackageName", {
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region root package name
|
|
76
|
+
get: function () {
|
|
77
|
+
var rootPackageName = tnp_core_1._.isString(this.renameDestinationFolder) &&
|
|
78
|
+
this.renameDestinationFolder !== ''
|
|
79
|
+
? this.renameDestinationFolder
|
|
80
|
+
: "@".concat(this.project.name);
|
|
81
|
+
return rootPackageName;
|
|
82
|
+
},
|
|
83
|
+
enumerable: false,
|
|
84
|
+
configurable: true
|
|
85
|
+
});
|
|
86
|
+
Object.defineProperty(CopyManagerOrganization.prototype, "monitoredOutDir", {
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region monitored out dir
|
|
89
|
+
get: function () {
|
|
90
|
+
var monitorDir = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.targetProjPath, this.buildOptions.outDir));
|
|
91
|
+
return monitorDir;
|
|
92
|
+
},
|
|
93
|
+
enumerable: false,
|
|
94
|
+
configurable: true
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(CopyManagerOrganization.prototype, "monitoredOutDirSharedAssets", {
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region monitored out dir shared assets
|
|
99
|
+
get: function () {
|
|
100
|
+
var assetsFolders = this.project.children.map(function (c) {
|
|
101
|
+
var monitorDir = (0, tnp_core_1.crossPlatformPath)([
|
|
102
|
+
c.location,
|
|
103
|
+
tnp_config_1.config.folder.src,
|
|
104
|
+
tnp_config_1.config.folder.assets,
|
|
105
|
+
tnp_config_1.config.folder.shared,
|
|
106
|
+
]);
|
|
107
|
+
return monitorDir;
|
|
108
|
+
});
|
|
109
|
+
return assetsFolders;
|
|
110
|
+
},
|
|
111
|
+
enumerable: false,
|
|
112
|
+
configurable: true
|
|
113
|
+
});
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region get chhildren
|
|
116
|
+
CopyManagerOrganization.prototype.getChildren = function () {
|
|
117
|
+
var _this = this;
|
|
118
|
+
return tslib_1.__spreadArray([
|
|
119
|
+
this.project.children.find(function (c) { return c.name === _this.targetProjName; })
|
|
120
|
+
], tslib_1.__read(this.project.children.filter(function (c) { return c.name !== _this.targetProjName; })), false).filter(function (f) { return !!f; });
|
|
121
|
+
};
|
|
122
|
+
//#endregion
|
|
123
|
+
//#region links for packages are ok
|
|
124
|
+
CopyManagerOrganization.prototype.linksForPackageAreOk = function (destination) {
|
|
125
|
+
var e_1, _a;
|
|
126
|
+
try {
|
|
127
|
+
for (var _b = tslib_1.__values(this.children), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
128
|
+
var child = _c.value;
|
|
129
|
+
var destPackageLinkSourceLocation = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(destination.location, tnp_config_1.config.folder.node_modules, this.rootPackageName, child.name, tnp_config_1.config.folder.src));
|
|
130
|
+
if (tnp_helpers_1.Helpers.exists(destPackageLinkSourceLocation)) {
|
|
131
|
+
return false;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
136
|
+
finally {
|
|
137
|
+
try {
|
|
138
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
139
|
+
}
|
|
140
|
+
finally { if (e_1) throw e_1.error; }
|
|
141
|
+
}
|
|
142
|
+
return true;
|
|
143
|
+
};
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region initial fix for destination pacakge
|
|
146
|
+
CopyManagerOrganization.prototype.initalFixForDestination = function (destination) {
|
|
147
|
+
var destPackageInNodeModules = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(destination.location, tnp_config_1.config.folder.node_modules, this.rootPackageName));
|
|
148
|
+
for (var index = 0; index < copy_manager_helpers_backend_1.CopyMangerHelpers.browserwebsqlFolders.length; index++) {
|
|
149
|
+
var currentBrowserFolder = copy_manager_helpers_backend_1.CopyMangerHelpers.browserwebsqlFolders[index];
|
|
150
|
+
var destPackageInNodeModulesBrowser = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(destPackageInNodeModules, currentBrowserFolder));
|
|
151
|
+
try {
|
|
152
|
+
// TODO QUICK_FIX
|
|
153
|
+
tnp_helpers_1.Helpers.remove(destPackageInNodeModulesBrowser);
|
|
154
|
+
}
|
|
155
|
+
catch (error) { }
|
|
156
|
+
var children = this.children;
|
|
157
|
+
for (var index_1 = 0; index_1 < children.length; index_1++) {
|
|
158
|
+
var child = children[index_1];
|
|
159
|
+
// if (!child) {
|
|
160
|
+
// debugger
|
|
161
|
+
// }
|
|
162
|
+
var childDestPackageInNodeModules = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(destPackageInNodeModules, copy_manager_helpers_backend_1.CopyMangerHelpers.childPureName(child)));
|
|
163
|
+
var childDestPackageInNodeModulesBrowser = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(destPackageInNodeModules, copy_manager_helpers_backend_1.CopyMangerHelpers.childPureName(child), currentBrowserFolder));
|
|
164
|
+
if (tnp_helpers_1.Helpers.isSymlinkFileExitedOrUnexisted(childDestPackageInNodeModules)) {
|
|
165
|
+
tnp_helpers_1.Helpers.removeFileIfExists(childDestPackageInNodeModules);
|
|
166
|
+
}
|
|
167
|
+
if (!tnp_helpers_1.Helpers.exists(childDestPackageInNodeModules)) {
|
|
168
|
+
try {
|
|
169
|
+
// TODO QUICK_FIX
|
|
170
|
+
tnp_helpers_1.Helpers.mkdirp(childDestPackageInNodeModules);
|
|
171
|
+
}
|
|
172
|
+
catch (error) { }
|
|
173
|
+
}
|
|
174
|
+
if (tnp_helpers_1.Helpers.isSymlinkFileExitedOrUnexisted(childDestPackageInNodeModulesBrowser)) {
|
|
175
|
+
tnp_helpers_1.Helpers.removeFileIfExists(childDestPackageInNodeModulesBrowser);
|
|
176
|
+
}
|
|
177
|
+
if (!tnp_helpers_1.Helpers.exists(childDestPackageInNodeModulesBrowser)) {
|
|
178
|
+
try {
|
|
179
|
+
// TODO QUICK_FIX
|
|
180
|
+
tnp_helpers_1.Helpers.mkdirp(childDestPackageInNodeModulesBrowser);
|
|
181
|
+
}
|
|
182
|
+
catch (error) { }
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
//#endregion
|
|
188
|
+
//#region transform map files
|
|
189
|
+
CopyManagerOrganization.prototype.changedJsMapFilesInternalPathesForDebug = function (content, isBrowser, isForLaunchJsonDebugging, absFilePath) {
|
|
190
|
+
if (!content ||
|
|
191
|
+
(!absFilePath.endsWith('.js.map') && !absFilePath.endsWith('.mjs.map'))) {
|
|
192
|
+
// Helpers.warn(`[copytomanager] Empty content for ${absFilePath}`);
|
|
193
|
+
return content;
|
|
194
|
+
}
|
|
195
|
+
// console.log({ fixing: absFilePath })
|
|
196
|
+
if (isBrowser) {
|
|
197
|
+
// TODO is angular maps not working in chrome debugger (the did not work whe switch lazy modules)
|
|
198
|
+
// content = content.replace(regex1, `"./${config.folder.src}`);
|
|
199
|
+
// content = content.replace(regex2, config.folder.src);
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
if (isForLaunchJsonDebugging) {
|
|
203
|
+
// files is in dist or container target project
|
|
204
|
+
// I am not allowing organizaition as cli tool
|
|
205
|
+
var relative = (0, tnp_core_1.crossPlatformPath)(absFilePath).replace("".concat(this.monitoredOutDir, "/"), '');
|
|
206
|
+
if (this.isForSpecyficTargetCompilation(relative)) {
|
|
207
|
+
var toReplaceString2 = "../tmp-source-".concat(this.buildOptions.outDir);
|
|
208
|
+
// let toReplaceString1 = `"${toReplaceString2}`;
|
|
209
|
+
var regex2 = new RegExp(tnp_helpers_1.Helpers.escapeStringForRegEx(toReplaceString2), 'g');
|
|
210
|
+
// console.log(`[changeamp] relative: ${relative}`)
|
|
211
|
+
content = content.replace(regex2, "../../../../".concat(this.targetProjName, "/").concat(tnp_config_1.config.folder.src));
|
|
212
|
+
// console.log({ absFilePathTARGET: absFilePath })
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
var childName = relative.startsWith(tnp_config_1.config.folder.libs)
|
|
216
|
+
? tnp_core_1._.first(relative.split('/').slice(1))
|
|
217
|
+
: void 0;
|
|
218
|
+
var toReplaceString2 = "../tmp-source-".concat(this.buildOptions.outDir, "/").concat(tnp_config_1.config.folder.libs, "/").concat(childName);
|
|
219
|
+
var regex2 = new RegExp(tnp_helpers_1.Helpers.escapeStringForRegEx(toReplaceString2), 'g');
|
|
220
|
+
// let toReplaceString1 = `"${toReplaceString2}`;
|
|
221
|
+
// console.log(`[changeamp]
|
|
222
|
+
// childName: ${childName} relative: ${relative}`)
|
|
223
|
+
if (childName) {
|
|
224
|
+
content = content.replace(regex2, "../../../../".concat(childName, "/").concat(tnp_config_1.config.folder.src, "/").concat(tnp_config_1.config.folder.lib));
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
// don not modify anything
|
|
228
|
+
}
|
|
229
|
+
// console.log({ absFilePathLIBS: absFilePath })
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
// debugging inside someone else project/node_modules/<pacakge>
|
|
234
|
+
var toReplaceString2 = isBrowser
|
|
235
|
+
? "../tmp-".concat(tnp_config_1.config.folder.libs, "-for-").concat(this.buildOptions.outDir, "/").concat(this.project.name, "/projects/").concat(this.project.name, "/").concat(tnp_config_1.config.folder.src)
|
|
236
|
+
: "../../../tmp-".concat(tnp_config_1.config.folder.source, "-").concat(this.buildOptions.outDir);
|
|
237
|
+
var toReplaceString1 = "\"".concat(toReplaceString2);
|
|
238
|
+
var addon = "/".concat(tnp_config_1.config.folder.libs, "/(").concat(this.children
|
|
239
|
+
.map(function (c) {
|
|
240
|
+
return tnp_helpers_1.Helpers.escapeStringForRegEx(copy_manager_helpers_backend_1.CopyMangerHelpers.childPureName(c));
|
|
241
|
+
})
|
|
242
|
+
.join('|'), ")");
|
|
243
|
+
var regex1 = new RegExp(tnp_helpers_1.Helpers.escapeStringForRegEx(toReplaceString1) + addon, 'g');
|
|
244
|
+
var regex2 = new RegExp(tnp_helpers_1.Helpers.escapeStringForRegEx(toReplaceString2) + addon, 'g');
|
|
245
|
+
content = content.replace(regex1, "\"./".concat(tnp_config_1.config.folder.src));
|
|
246
|
+
content = content.replace(regex2, "".concat(tnp_config_1.config.folder.src));
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
content = this.sourceMapContentFix(content, isBrowser, absFilePath);
|
|
250
|
+
return content;
|
|
251
|
+
};
|
|
252
|
+
//#endregion
|
|
253
|
+
//#region source map content fix
|
|
254
|
+
CopyManagerOrganization.prototype.sourceMapContentFix = function (content, isBrowser, absFilePath) {
|
|
255
|
+
var _this = this;
|
|
256
|
+
if (
|
|
257
|
+
// process.platform === 'win32' &&
|
|
258
|
+
!isBrowser) {
|
|
259
|
+
var json = JSON.parse(content);
|
|
260
|
+
if (json) {
|
|
261
|
+
json.sources = (json.sources || []).map(function (pathToJoin) {
|
|
262
|
+
if (_this.targetProj.isInCiReleaseProject) {
|
|
263
|
+
return '';
|
|
264
|
+
}
|
|
265
|
+
var dirnameAbs = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.dirname(absFilePath));
|
|
266
|
+
var resolved = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.resolve(dirnameAbs, pathToJoin.startsWith('./')
|
|
267
|
+
? pathToJoin.replace('./', '')
|
|
268
|
+
: pathToJoin));
|
|
269
|
+
var children = _this.children;
|
|
270
|
+
var _loop_1 = function (index) {
|
|
271
|
+
var child = children[index];
|
|
272
|
+
// rule 1
|
|
273
|
+
(function () {
|
|
274
|
+
var localProjFolderName = "/".concat(_this.buildOptions.outDir, "/").concat(_this.project.name, "/").concat(child.name, "/tmp-source-").concat(_this.buildOptions.outDir, "/");
|
|
275
|
+
if (resolved.includes(localProjFolderName)) {
|
|
276
|
+
resolved = resolved.replace(localProjFolderName, "/".concat(child.name, "/src/"));
|
|
277
|
+
}
|
|
278
|
+
})();
|
|
279
|
+
// rule 2
|
|
280
|
+
(function () {
|
|
281
|
+
var ifFromLocal = "/".concat(_this.buildOptions.outDir, "/").concat(_this.project.name, "/").concat(child.name, "/tmp-local-copyto-proj-") +
|
|
282
|
+
"".concat(_this.buildOptions.outDir, "/").concat(tnp_config_1.config.folder.node_modules, "/").concat(_this.rootPackageName, "/");
|
|
283
|
+
if (resolved.includes(ifFromLocal)) {
|
|
284
|
+
var _a = tslib_1.__read(resolved
|
|
285
|
+
.replace(_this.project.location, '')
|
|
286
|
+
.replace(ifFromLocal, '')
|
|
287
|
+
.split('/'), 1), child_1 = _a[0];
|
|
288
|
+
// console.log('child: ' + child)
|
|
289
|
+
resolved = resolved
|
|
290
|
+
.replace(ifFromLocal, "/")
|
|
291
|
+
.replace("".concat(_this.project.location, "/").concat(child_1, "/src/"), "".concat(_this.project.location, "/").concat(child_1, "/src/lib/"));
|
|
292
|
+
}
|
|
293
|
+
})();
|
|
294
|
+
// rule 3
|
|
295
|
+
(function () {
|
|
296
|
+
var isFromNonTarget = "/-/".concat(child.name, "/");
|
|
297
|
+
if (resolved.includes(isFromNonTarget)) {
|
|
298
|
+
// const toRep = `/${config.folder.src}/-/`;
|
|
299
|
+
var _a = tslib_1.__read(resolved.split(isFromNonTarget), 2), __ = _a[0], relative = _a[1];
|
|
300
|
+
// console.log(`relative "${relative}"`)
|
|
301
|
+
var child_2 = tnp_core_1.path.basename(resolved.replace(relative, ''));
|
|
302
|
+
// console.log(`CHILD "${child}"`)
|
|
303
|
+
// const relative = resolved.replace(this.project.location, '').split('/').slice(4).join('/');
|
|
304
|
+
resolved = (0, tnp_core_1.crossPlatformPath)([
|
|
305
|
+
_this.project.location,
|
|
306
|
+
child_2,
|
|
307
|
+
tnp_config_1.config.folder.src,
|
|
308
|
+
relative,
|
|
309
|
+
]);
|
|
310
|
+
}
|
|
311
|
+
})();
|
|
312
|
+
};
|
|
313
|
+
for (var index = 0; index < children.length; index++) {
|
|
314
|
+
_loop_1(index);
|
|
315
|
+
}
|
|
316
|
+
return resolved;
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
content = JSON.stringify(json);
|
|
320
|
+
}
|
|
321
|
+
return content;
|
|
322
|
+
};
|
|
323
|
+
//#endregion
|
|
324
|
+
//#region write specyfic for child dts files
|
|
325
|
+
/**
|
|
326
|
+
* final copy from dist to node_moules/rootpackagename
|
|
327
|
+
*/
|
|
328
|
+
CopyManagerOrganization.prototype.writeSpecyficForChildDtsFiles = function (destination, rootPackageNameForChildBrowser, monitorDirForModuleBrowser) {
|
|
329
|
+
var pkgLocInDestNodeModulesForChildBrowser = destination.__node_modules.pathFor(rootPackageNameForChildBrowser);
|
|
330
|
+
var filter = tnp_helpers_1.Helpers.filterDontCopy(this.sourceFolders, monitorDirForModuleBrowser);
|
|
331
|
+
// console.log('COPY', {
|
|
332
|
+
// monitorDirForModuleBrowser, pkgLocInDestNodeModulesForChildBrowser
|
|
333
|
+
// })
|
|
334
|
+
this.removeSourceLinksFolders(pkgLocInDestNodeModulesForChildBrowser);
|
|
335
|
+
tnp_helpers_1.Helpers.copy(monitorDirForModuleBrowser, pkgLocInDestNodeModulesForChildBrowser, {
|
|
336
|
+
copySymlinksAsFiles: false,
|
|
337
|
+
filter: filter,
|
|
338
|
+
});
|
|
339
|
+
};
|
|
340
|
+
//#endregion
|
|
341
|
+
//#region child package name
|
|
342
|
+
/**
|
|
343
|
+
* example: '@angular/core'
|
|
344
|
+
*/
|
|
345
|
+
CopyManagerOrganization.prototype.childPackageName = function (child) {
|
|
346
|
+
return (0, tnp_core_1.crossPlatformPath)([this.rootPackageName, child.name]);
|
|
347
|
+
};
|
|
348
|
+
//#endregion
|
|
349
|
+
//#region root pacakge name for child + browser
|
|
350
|
+
/**
|
|
351
|
+
* example: '@angular/core/(browser|websql)'
|
|
352
|
+
*/
|
|
353
|
+
CopyManagerOrganization.prototype.rootPackageNameForChildBrowser = function (child, currentBrowserFolder) {
|
|
354
|
+
return (0, tnp_core_1.crossPlatformPath)([
|
|
355
|
+
this.childPackageName(child),
|
|
356
|
+
currentBrowserFolder,
|
|
357
|
+
]);
|
|
358
|
+
};
|
|
359
|
+
//#endregion
|
|
360
|
+
//#region fixes for dts child files
|
|
361
|
+
CopyManagerOrganization.prototype.fixesForChildDtsFile = function (destination, isTempLocalProj, child, currentBrowserFolder) {
|
|
362
|
+
// ex. @anguar/code/browser or @anguar/code/websql
|
|
363
|
+
var rootPackageNameForChildBrowser = this.rootPackageNameForChildBrowser(child, currentBrowserFolder);
|
|
364
|
+
if (child.name === this.targetProjName) {
|
|
365
|
+
// target is in lib.... -> no need for target also being in libs
|
|
366
|
+
var monitorDirForModuleBrowser = isTempLocalProj //
|
|
367
|
+
? (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.monitoredOutDir, currentBrowserFolder, tnp_config_1.config.folder.lib))
|
|
368
|
+
: this.localTempProj.__node_modules.pathFor(rootPackageNameForChildBrowser);
|
|
369
|
+
if (isTempLocalProj) {
|
|
370
|
+
// when destination === tmp-local-proj => fix d.ts imports in (dist)
|
|
371
|
+
this.dtsFixer.processFolder(monitorDirForModuleBrowser, currentBrowserFolder);
|
|
372
|
+
}
|
|
373
|
+
this.writeSpecyficForChildDtsFiles(destination, rootPackageNameForChildBrowser, monitorDirForModuleBrowser);
|
|
374
|
+
}
|
|
375
|
+
else {
|
|
376
|
+
var monitorDirForModuleBrowser = isTempLocalProj //
|
|
377
|
+
? (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.monitoredOutDir, currentBrowserFolder, tnp_config_1.config.folder.libs, child.name))
|
|
378
|
+
: this.localTempProj.__node_modules.pathFor(rootPackageNameForChildBrowser);
|
|
379
|
+
if (isTempLocalProj) {
|
|
380
|
+
// when destination === tmp-local-proj => fix d.ts imports in (dist)
|
|
381
|
+
this.dtsFixer.processFolder(monitorDirForModuleBrowser, currentBrowserFolder);
|
|
382
|
+
}
|
|
383
|
+
this.writeSpecyficForChildDtsFiles(destination, rootPackageNameForChildBrowser, monitorDirForModuleBrowser);
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
//#endregion
|
|
387
|
+
//#region copy compiled source and declaration (browser)
|
|
388
|
+
/**
|
|
389
|
+
* Problem here: spliting es2022, esfm2015 to modules
|
|
390
|
+
*/
|
|
391
|
+
CopyManagerOrganization.prototype.copyCompiledSourcesAndDeclarationsBrowsersFolders = function (destination, isTempLocalProj) {
|
|
392
|
+
var _this = this;
|
|
393
|
+
// TODO LAST copy app.ts
|
|
394
|
+
for (var index = 0; index < this.children.length; index++) {
|
|
395
|
+
//#region prepare variables
|
|
396
|
+
var child = this.children[index];
|
|
397
|
+
this.angularCopyManger.fixPackageJson(child, destination);
|
|
398
|
+
for (var index_2 = 0; index_2 < copy_manager_helpers_backend_1.CopyMangerHelpers.browserwebsqlFolders.length; index_2++) {
|
|
399
|
+
var currentBrowserFolder = copy_manager_helpers_backend_1.CopyMangerHelpers.browserwebsqlFolders[index_2];
|
|
400
|
+
this.fixesForChildDtsFile(destination, isTempLocalProj, child, currentBrowserFolder);
|
|
401
|
+
this.angularCopyManger.fixPackageJson(child, destination, currentBrowserFolder);
|
|
402
|
+
this.angularCopyManger.fixBuildRelatedFiles(child, destination, currentBrowserFolder);
|
|
403
|
+
//#endregion
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
var _loop_2 = function (index) {
|
|
407
|
+
var currentBrowserFolder = copy_manager_helpers_backend_1.CopyMangerHelpers.browserwebsqlFolders[index];
|
|
408
|
+
copy_manager_helpers_backend_1.CopyMangerHelpers.angularBrowserComiplationFoldersArr.forEach(function (angularCompilationFolder) {
|
|
409
|
+
_this.angularCopyManger.actionForFolder(destination, isTempLocalProj, currentBrowserFolder, angularCompilationFolder);
|
|
410
|
+
});
|
|
411
|
+
};
|
|
412
|
+
for (var index = 0; index < copy_manager_helpers_backend_1.CopyMangerHelpers.browserwebsqlFolders.length; index++) {
|
|
413
|
+
_loop_2(index);
|
|
414
|
+
}
|
|
415
|
+
};
|
|
416
|
+
//#endregion
|
|
417
|
+
//#region files for specyfic target
|
|
418
|
+
CopyManagerOrganization.prototype.isForSpecyficTargetCompilation = function (specyficFileRelativePath) {
|
|
419
|
+
specyficFileRelativePath = (0, tnp_core_1.crossPlatformPath)(specyficFileRelativePath).replace(/^\//, '');
|
|
420
|
+
var shouldNotStartWith = tslib_1.__spreadArray(tslib_1.__spreadArray([], tslib_1.__read(copy_manager_helpers_backend_1.CopyMangerHelpers.browserwebsqlFolders), false), [
|
|
421
|
+
tnp_config_1.config.folder.libs,
|
|
422
|
+
tnp_config_1.config.folder.node_modules,
|
|
423
|
+
tnp_config_1.config.folder.src,
|
|
424
|
+
], false);
|
|
425
|
+
for (var index = 0; index < shouldNotStartWith.length; index++) {
|
|
426
|
+
var folder = shouldNotStartWith[index];
|
|
427
|
+
if (specyficFileRelativePath.startsWith(folder)) {
|
|
428
|
+
return false;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
return true;
|
|
432
|
+
};
|
|
433
|
+
CopyManagerOrganization.prototype.filesForSpecyficTarget = function () {
|
|
434
|
+
var _this = this;
|
|
435
|
+
var base = this.monitoredOutDir;
|
|
436
|
+
var appFiles = tnp_helpers_1.Helpers.filesFrom([base, tnp_config_1.config.folder.app], true);
|
|
437
|
+
var libFiles = tnp_helpers_1.Helpers.filesFrom([base, tnp_config_1.config.folder.lib], true);
|
|
438
|
+
var otherLibsApps = this.children
|
|
439
|
+
.filter(function (c) { return c.name !== _this.targetProjName; })
|
|
440
|
+
.map(function (c) {
|
|
441
|
+
var baseName = (0, tnp_core_1.crossPlatformPath)([base, '-', c.name]);
|
|
442
|
+
// console.log(baseName)
|
|
443
|
+
return tnp_helpers_1.Helpers.exists(baseName)
|
|
444
|
+
? tnp_helpers_1.Helpers.filesFrom(baseName, true)
|
|
445
|
+
: [];
|
|
446
|
+
})
|
|
447
|
+
.reduce(function (a, b) {
|
|
448
|
+
return a.concat(b);
|
|
449
|
+
}, []);
|
|
450
|
+
// TODO add for children
|
|
451
|
+
var appFlatFiles = tnp_helpers_1.Helpers.filesFrom(base);
|
|
452
|
+
var allFiles = tslib_1.__spreadArray(tslib_1.__spreadArray(tslib_1.__spreadArray(tslib_1.__spreadArray([], tslib_1.__read(appFiles), false), tslib_1.__read(libFiles), false), tslib_1.__read(appFlatFiles), false), tslib_1.__read(otherLibsApps), false);
|
|
453
|
+
return allFiles;
|
|
454
|
+
};
|
|
455
|
+
//#endregion
|
|
456
|
+
//#region fix additonal files and folder
|
|
457
|
+
CopyManagerOrganization.prototype.fixAdditonalFilesAndFolders = function (destination) {
|
|
458
|
+
var _this = this;
|
|
459
|
+
var additonakFiles = this.filesForSpecyficTarget();
|
|
460
|
+
// console.log({
|
|
461
|
+
// additonakFiles
|
|
462
|
+
// })
|
|
463
|
+
additonakFiles.forEach(function (specyficFileAbsPath) {
|
|
464
|
+
var specyficFileRelativePath = specyficFileAbsPath.replace("".concat(_this.monitoredOutDir, "/"), '');
|
|
465
|
+
// if (specyficFileRelativePath.endsWith('.d.ts')) {
|
|
466
|
+
// CopyMangerHelpers.browserwebsqlFolders.forEach(currentBrowserFolder => {
|
|
467
|
+
// const dtsFileAbsolutePath = crossPlatformPath(path.join(this.monitoredOutDir, specyficFileRelativePath));
|
|
468
|
+
// this.dtsFixer.forFile(
|
|
469
|
+
// dtsFileAbsolutePath,
|
|
470
|
+
// currentBrowserFolder,
|
|
471
|
+
// );
|
|
472
|
+
// });
|
|
473
|
+
// } else if (specyficFileRelativePath.endsWith('.js.map')) {
|
|
474
|
+
_this.writeFixedMapFile(true, specyficFileRelativePath, _this.monitoredOutDir);
|
|
475
|
+
_this.writeFixedMapFile(false, specyficFileRelativePath, _this.monitoredOutDir);
|
|
476
|
+
// }
|
|
477
|
+
});
|
|
478
|
+
};
|
|
479
|
+
//#endregion
|
|
480
|
+
//#region replace d.ts files in destination after copy
|
|
481
|
+
CopyManagerOrganization.prototype.replaceIndexDtsForEntryPorjIndex = function (destination) {
|
|
482
|
+
var children = this.getChildren();
|
|
483
|
+
for (var index = 0; index < children.length; index++) {
|
|
484
|
+
var child = children[index];
|
|
485
|
+
var rootPackageNameForChild = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.rootPackageName, child.name));
|
|
486
|
+
var location_1 = destination.__node_modules.pathFor(rootPackageNameForChild);
|
|
487
|
+
tnp_helpers_1.Helpers.writeFile(tnp_core_1.path.join(
|
|
488
|
+
// override dts to easly debugging
|
|
489
|
+
location_1, tnp_config_1.config.file.index_d_ts), "export * from './".concat(tnp_config_1.config.folder.src, "';\n"));
|
|
490
|
+
}
|
|
491
|
+
};
|
|
492
|
+
//#endregion
|
|
493
|
+
//#region copy compiled sources and declarations
|
|
494
|
+
CopyManagerOrganization.prototype.copyCompiledSourcesAndDeclarations = function (destination, isTempLocalProj) {
|
|
495
|
+
if (isTempLocalProj) {
|
|
496
|
+
this.fixAdditonalFilesAndFolders(destination);
|
|
497
|
+
}
|
|
498
|
+
for (var index = 0; index < this.children.length; index++) {
|
|
499
|
+
var child = this.children[index];
|
|
500
|
+
var rootPackageNameForChild = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.rootPackageName, child.name));
|
|
501
|
+
var monitorDirForModule = isTempLocalProj //
|
|
502
|
+
? (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.monitoredOutDir, tnp_config_1.config.folder.libs, child.name))
|
|
503
|
+
: this.localTempProj.__node_modules.pathFor(rootPackageNameForChild);
|
|
504
|
+
// if (isTempLocalProj) { // when destination === tmp-local-proj => fix d.ts imports in (dist)
|
|
505
|
+
// this.dtsFixer.processFolderWithBrowserWebsqlFolders(monitorDirForModule); // no need for fixing backend
|
|
506
|
+
// }
|
|
507
|
+
//#region final copy from dist to node_moules/rootpackagename
|
|
508
|
+
var pkgLocInDestNodeModulesForChild = destination.__node_modules.pathFor(rootPackageNameForChild);
|
|
509
|
+
var filter = tnp_helpers_1.Helpers.filterDontCopy(this.sourceFolders, monitorDirForModule);
|
|
510
|
+
this.removeSourceLinksFolders(pkgLocInDestNodeModulesForChild);
|
|
511
|
+
tnp_helpers_1.Helpers.copy(monitorDirForModule, pkgLocInDestNodeModulesForChild, {
|
|
512
|
+
copySymlinksAsFiles: process.platform === 'win32',
|
|
513
|
+
filter: filter,
|
|
514
|
+
});
|
|
515
|
+
//#endregion
|
|
516
|
+
}
|
|
517
|
+
this.copyCompiledSourcesAndDeclarationsBrowsersFolders(destination, isTempLocalProj);
|
|
518
|
+
this.replaceIndexDtsFilesRootLevel(destination);
|
|
519
|
+
};
|
|
520
|
+
//#endregion
|
|
521
|
+
//#region replace d.ts files in destination after copy
|
|
522
|
+
CopyManagerOrganization.prototype.replaceIndexDtsFilesRootLevel = function (destination) {
|
|
523
|
+
tnp_helpers_1.Helpers.writeFile(tnp_core_1.path.join(destination.location, tnp_config_1.config.folder.node_modules, this.rootPackageName, tnp_config_1.config.file.index_d_ts), "// Plase use: import { < anything > } from '@".concat(this.project.name, "/<").concat(this.children.map(function (c) { return c.name; }).join('|'), ">';\n"));
|
|
524
|
+
};
|
|
525
|
+
//#endregion
|
|
526
|
+
//#region source for child
|
|
527
|
+
CopyManagerOrganization.prototype.sourcePathToLinkFor = function (child) {
|
|
528
|
+
var sourceToLink = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.project.location, child.name, tnp_config_1.config.folder.src, tnp_config_1.config.folder.lib));
|
|
529
|
+
return sourceToLink;
|
|
530
|
+
};
|
|
531
|
+
//#endregion
|
|
532
|
+
//#region destination packge link source (usuall 'src' folder) location
|
|
533
|
+
/**
|
|
534
|
+
* source folder locaiton
|
|
535
|
+
*/
|
|
536
|
+
CopyManagerOrganization.prototype.destPackageLinkSourceLocation = function (destination, child, currentBrowserFolder) {
|
|
537
|
+
var destPackageLinkSourceLocation = currentBrowserFolder
|
|
538
|
+
? (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(destination.__node_modules.pathFor(this.childPackageName(child)), currentBrowserFolder, tnp_config_1.config.folder.source))
|
|
539
|
+
: (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(destination.__node_modules.pathFor(this.childPackageName(child)), tnp_config_1.config.folder.source));
|
|
540
|
+
return destPackageLinkSourceLocation;
|
|
541
|
+
};
|
|
542
|
+
/**
|
|
543
|
+
*'src.d.ts location
|
|
544
|
+
*/
|
|
545
|
+
CopyManagerOrganization.prototype.destPackageLinkSourceSrcDtsLocation = function (destination, child, currentBrowserFolder) {
|
|
546
|
+
var destPackageLinkSourceLocation = currentBrowserFolder
|
|
547
|
+
? (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(destination.__node_modules.pathFor(this.childPackageName(child)), currentBrowserFolder, 'src.d.ts'))
|
|
548
|
+
: (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(destination.__node_modules.pathFor(this.childPackageName(child)), 'src.d.ts'));
|
|
549
|
+
return destPackageLinkSourceLocation;
|
|
550
|
+
};
|
|
551
|
+
//#endregion
|
|
552
|
+
//#region add source symlinks
|
|
553
|
+
CopyManagerOrganization.prototype.addSourceSymlinks = function (destination) {
|
|
554
|
+
for (var index = 0; index < this.children.length; index++) {
|
|
555
|
+
var child = this.children[index];
|
|
556
|
+
var source = this.destPackageLinkSourceLocation(destination, child);
|
|
557
|
+
var srcDts = this.destPackageLinkSourceSrcDtsLocation(destination, child);
|
|
558
|
+
var childLibLocation = this.sourcePathToLinkFor(child);
|
|
559
|
+
tnp_helpers_1.Helpers.removeIfExists(source);
|
|
560
|
+
tnp_helpers_1.Helpers.createSymLink(childLibLocation, source);
|
|
561
|
+
tnp_helpers_1.Helpers.writeFile(srcDts, "\n // THIS FILE IS GENERATED\n export * from './source';\n // THIS FILE IS GENERATED\n // please use command: taon build:watch to see here links for your globally builded lib code files\n // THIS FILE IS GENERATED\n ".trimStart());
|
|
562
|
+
}
|
|
563
|
+
};
|
|
564
|
+
//#endregion
|
|
565
|
+
//#region remove source symlinks
|
|
566
|
+
CopyManagerOrganization.prototype.removeSourceSymlinks = function (destination) {
|
|
567
|
+
for (var index = 0; index < this.children.length; index++) {
|
|
568
|
+
var child = this.children[index];
|
|
569
|
+
// source
|
|
570
|
+
var source = this.destPackageLinkSourceLocation(destination, child);
|
|
571
|
+
var srcDts = this.destPackageLinkSourceSrcDtsLocation(destination, child);
|
|
572
|
+
tnp_helpers_1.Helpers.writeFile(srcDts, "\n// THIS FILE IS GENERATED\nexport * from './lib';\n// THIS FILE IS GENERATED\n// please use command: taon build:watch to see here links for your globally builded lib code files\n// THIS FILE IS GENERATED\n ".trimStart());
|
|
573
|
+
tnp_helpers_1.Helpers.removeIfExists(source);
|
|
574
|
+
}
|
|
575
|
+
};
|
|
576
|
+
//#endregion
|
|
577
|
+
//#region fix backend and browser js map files in local project
|
|
578
|
+
CopyManagerOrganization.prototype.fixBackendAndBrowserJsMapFilesInLocalProj = function () {
|
|
579
|
+
for (var index = 0; index < this.children.length; index++) {
|
|
580
|
+
var child = this.children[index];
|
|
581
|
+
var destinationPackageLocation = this.localTempProj.__node_modules.pathFor(this.childPackageName(child));
|
|
582
|
+
for (var index_3 = 0; index_3 < copy_manager_helpers_backend_1.CopyMangerHelpers.browserwebsqlFolders.length; index_3++) {
|
|
583
|
+
var currentBrowserFolder = copy_manager_helpers_backend_1.CopyMangerHelpers.browserwebsqlFolders[index_3];
|
|
584
|
+
this.fixJsMapFiles(destinationPackageLocation, currentBrowserFolder);
|
|
585
|
+
}
|
|
586
|
+
this.fixJsMapFiles(destinationPackageLocation);
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
//#endregion
|
|
590
|
+
//#region copy backend and browser js map files from local project to destination
|
|
591
|
+
CopyManagerOrganization.prototype.copyBackendAndBrowserJsMapFilesFromLocalProjTo = function (destination) {
|
|
592
|
+
var destinationPackageLocation = this.localTempProj.__node_modules.pathFor(this.rootPackageName);
|
|
593
|
+
this.copyMapFilesesFromLocalToCopyToProj(destination, destinationPackageLocation);
|
|
594
|
+
};
|
|
595
|
+
//#endregion
|
|
596
|
+
//#region write fixed map file for cli
|
|
597
|
+
CopyManagerOrganization.prototype.writeFixedMapFileForCli = function (isForBrowser, specyficFileRelativePath, destinationPackageLocation) {
|
|
598
|
+
// TODO QUICK FIX
|
|
599
|
+
if ((0, tnp_core_1.crossPlatformPath)(destinationPackageLocation) ==
|
|
600
|
+
this.targetProj.pathFor(this.buildOptions.outDir)) {
|
|
601
|
+
_super.prototype.writeFixedMapFileForCli.call(this, isForBrowser, specyficFileRelativePath, destinationPackageLocation);
|
|
602
|
+
return;
|
|
603
|
+
}
|
|
604
|
+
var childName = destinationPackageLocation.replace("".concat(this.localTempProj.__node_modules.pathFor(this.rootPackageName), "/"), '');
|
|
605
|
+
var child = this.children.find(function (c) { return c.name === childName; });
|
|
606
|
+
if (!child) {
|
|
607
|
+
childName = tnp_core_1._.first(destinationPackageLocation.split('/').splice(-2));
|
|
608
|
+
child = this.children.find(function (c) { return c.name === childName; });
|
|
609
|
+
}
|
|
610
|
+
var monitoredOutDirFileToReplaceBack = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.targetProj.pathFor(this.buildOptions.outDir), tnp_config_1.config.folder.libs, childName, specyficFileRelativePath));
|
|
611
|
+
// console.log(`tryingfix: ${monitoredOutDirFileToReplaceBack}
|
|
612
|
+
// "${destinationPackageLocation}" "${specyficFileRelativePath}" child: ${childName}`)
|
|
613
|
+
if (!child) {
|
|
614
|
+
_super.prototype.writeFixedMapFileForCli.call(this, isForBrowser, specyficFileRelativePath, destinationPackageLocation);
|
|
615
|
+
return;
|
|
616
|
+
}
|
|
617
|
+
if (tnp_helpers_1.Helpers.exists(monitoredOutDirFileToReplaceBack)) {
|
|
618
|
+
var fixedContentCLIDebug = this.changedJsMapFilesInternalPathesForDebug(tnp_helpers_1.Helpers.readFile(monitoredOutDirFileToReplaceBack), isForBrowser, true, monitoredOutDirFileToReplaceBack);
|
|
619
|
+
tnp_helpers_1.Helpers.writeFile(monitoredOutDirFileToReplaceBack, fixedContentCLIDebug);
|
|
620
|
+
}
|
|
621
|
+
};
|
|
622
|
+
//#endregion
|
|
623
|
+
//#region handle copy of single file
|
|
624
|
+
//#region handle copy of single file / from child from libs
|
|
625
|
+
CopyManagerOrganization.prototype.handleCopyOfSingleFileForChildFromLibs = function (specyficFileRelativePath, destination, isTempLocalProj, wasRecrusive, specialReplace) {
|
|
626
|
+
if (specialReplace === void 0) { specialReplace = tnp_config_1.config.folder.libs; }
|
|
627
|
+
var specialAppFilesMode = specialReplace === '-';
|
|
628
|
+
var orgSpecyficFileRelativePath = specyficFileRelativePath;
|
|
629
|
+
var distLocation = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.targetProj.location, this.buildOptions.outDir));
|
|
630
|
+
var absOrgFilePathInDist = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.normalize(tnp_core_1.path.join(distLocation, orgSpecyficFileRelativePath)));
|
|
631
|
+
var childName = tnp_core_1._.first(specyficFileRelativePath.split('/').slice(1));
|
|
632
|
+
var child = this.children.find(function (c) { return c.name === childName; });
|
|
633
|
+
if (!child) {
|
|
634
|
+
tnp_helpers_1.Helpers.warn("NO CHILD FOR ".concat(specyficFileRelativePath));
|
|
635
|
+
return;
|
|
636
|
+
}
|
|
637
|
+
specyficFileRelativePath = specyficFileRelativePath.replace("".concat(specialReplace, "/").concat(childName, "/"), '');
|
|
638
|
+
var rootPackageNameForChild = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.rootPackageName, child.name));
|
|
639
|
+
tnp_helpers_1.Helpers.log("Handle single file: ".concat(specyficFileRelativePath, " for ").concat(rootPackageNameForChild));
|
|
640
|
+
if (!wasRecrusive) {
|
|
641
|
+
this.preventWeakDetectionOfchanges(orgSpecyficFileRelativePath, destination, isTempLocalProj);
|
|
642
|
+
}
|
|
643
|
+
var destinationFilePath = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.normalize(tnp_core_1.path.join(destination.__node_modules.pathFor(rootPackageNameForChild), specyficFileRelativePath)));
|
|
644
|
+
if (!isTempLocalProj && !specialAppFilesMode) {
|
|
645
|
+
var readyToCopyFileInLocalTempProj = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.localTempProj.__node_modules.pathFor(rootPackageNameForChild), specyficFileRelativePath));
|
|
646
|
+
// Helpers.log(`Eqal content with temp proj: ${}`)
|
|
647
|
+
if (tnp_helpers_1.Helpers.exists(readyToCopyFileInLocalTempProj)) {
|
|
648
|
+
// TODO QUICK_FIX when creating empty file
|
|
649
|
+
tnp_helpers_1.Helpers.copyFile(readyToCopyFileInLocalTempProj, destinationFilePath);
|
|
650
|
+
}
|
|
651
|
+
return;
|
|
652
|
+
}
|
|
653
|
+
// TODO QUICK_FIOX DISTINC WHEN IT COM FROM BROWSER
|
|
654
|
+
// and do not allow
|
|
655
|
+
if (destinationFilePath.endsWith('d.ts')) {
|
|
656
|
+
var newAbsOrgFilePathInDist = absOrgFilePathInDist.replace("/".concat(this.targetProjName, "/").concat(this.buildOptions.outDir, "/").concat(orgSpecyficFileRelativePath), "/".concat(this.targetProjName, "/").concat(this.buildOptions.outDir, "-nocutsrc/").concat(orgSpecyficFileRelativePath));
|
|
657
|
+
if (!tnp_helpers_1.Helpers.exists(newAbsOrgFilePathInDist)) {
|
|
658
|
+
tnp_helpers_1.Helpers.log("[copyto] New path does not exists or in browser | websql: ".concat(newAbsOrgFilePathInDist));
|
|
659
|
+
}
|
|
660
|
+
else {
|
|
661
|
+
absOrgFilePathInDist = newAbsOrgFilePathInDist;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
this.fixDtsImportsWithWronPackageName(absOrgFilePathInDist, destinationFilePath);
|
|
665
|
+
var isBackendMapsFile = destinationFilePath.endsWith('.js.map');
|
|
666
|
+
var isBrowserMapsFile = destinationFilePath.endsWith('.mjs.map');
|
|
667
|
+
if (isBackendMapsFile || isBrowserMapsFile) {
|
|
668
|
+
if (isBackendMapsFile) {
|
|
669
|
+
if (specialAppFilesMode) {
|
|
670
|
+
var fixedContentCLIDebug = this.changedJsMapFilesInternalPathesForDebug(tnp_helpers_1.Helpers.readFile(absOrgFilePathInDist), false, true, absOrgFilePathInDist);
|
|
671
|
+
tnp_helpers_1.Helpers.writeFile(absOrgFilePathInDist, fixedContentCLIDebug);
|
|
672
|
+
}
|
|
673
|
+
else {
|
|
674
|
+
this.writeFixedMapFile(false, specyficFileRelativePath, destination.__node_modules.pathFor(rootPackageNameForChild));
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
if (isBrowserMapsFile) {
|
|
678
|
+
if (specialAppFilesMode) {
|
|
679
|
+
var fixedContentCLIDebug = this.changedJsMapFilesInternalPathesForDebug(tnp_helpers_1.Helpers.readFile(absOrgFilePathInDist), false, true, absOrgFilePathInDist);
|
|
680
|
+
tnp_helpers_1.Helpers.writeFile(absOrgFilePathInDist, fixedContentCLIDebug);
|
|
681
|
+
}
|
|
682
|
+
else {
|
|
683
|
+
this.writeFixedMapFile(true, specyficFileRelativePath, destination.__node_modules.pathFor(rootPackageNameForChild));
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
else {
|
|
688
|
+
tnp_helpers_1.Helpers.writeFile(destinationFilePath, tnp_helpers_1.Helpers.readFile(absOrgFilePathInDist) || '');
|
|
689
|
+
}
|
|
690
|
+
};
|
|
691
|
+
//#endregion
|
|
692
|
+
//#region handle copy of single file / from app or root of (dist)
|
|
693
|
+
CopyManagerOrganization.prototype.handleCopyOfSingleFileFromAppAndRoot = function (specyficFileRelativePath, destination, isTempLocalProj, wasRecrusive) {
|
|
694
|
+
var orgSpecyficFileRelativePath = specyficFileRelativePath;
|
|
695
|
+
var distLocation = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.targetProj.location, this.buildOptions.outDir));
|
|
696
|
+
var absOrgFilePathInDist = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.normalize(tnp_core_1.path.join(distLocation, orgSpecyficFileRelativePath)));
|
|
697
|
+
var isBackendMapsFileAppJS = specyficFileRelativePath.endsWith('.js.map');
|
|
698
|
+
var isBrowserMapsFileAppJS = specyficFileRelativePath.endsWith('.mjs.map');
|
|
699
|
+
// this.fixDtsImportsWithWronPackageName(
|
|
700
|
+
// absOrgFilePathInDist,
|
|
701
|
+
// absOrgFilePathInDist,
|
|
702
|
+
// );
|
|
703
|
+
if (isBackendMapsFileAppJS || isBrowserMapsFileAppJS) {
|
|
704
|
+
if (isBackendMapsFileAppJS) {
|
|
705
|
+
this.writeFixedMapFile(false, specyficFileRelativePath, distLocation);
|
|
706
|
+
}
|
|
707
|
+
if (isBrowserMapsFileAppJS) {
|
|
708
|
+
this.writeFixedMapFile(true, specyficFileRelativePath, distLocation);
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
};
|
|
712
|
+
//#endregion
|
|
713
|
+
//#region handle copy of single file / from non target apps
|
|
714
|
+
CopyManagerOrganization.prototype.handleCopyOfSingleFileFromNonTargetFiles = function (specyficFileRelativePath, destination, isTempLocalProj, wasRecrusive) {
|
|
715
|
+
this.handleCopyOfSingleFileForChildFromLibs(specyficFileRelativePath, destination, isTempLocalProj, wasRecrusive, '-');
|
|
716
|
+
};
|
|
717
|
+
//#endregion
|
|
718
|
+
CopyManagerOrganization.prototype.handleCopyOfAssetFile = function (absoluteAssetFilePath, destination) {
|
|
719
|
+
absoluteAssetFilePath = (0, tnp_core_1.crossPlatformPath)(absoluteAssetFilePath);
|
|
720
|
+
var monitoredOutDirSharedAssets = this.monitoredOutDirSharedAssets;
|
|
721
|
+
for (var index = 0; index < monitoredOutDirSharedAssets.length; index++) {
|
|
722
|
+
var folderAssetsShareAbsPath = (0, tnp_core_1.crossPlatformPath)(monitoredOutDirSharedAssets[index]);
|
|
723
|
+
if (absoluteAssetFilePath.startsWith(folderAssetsShareAbsPath)) {
|
|
724
|
+
var relativePath = absoluteAssetFilePath.replace("".concat(folderAssetsShareAbsPath, "/"), '');
|
|
725
|
+
var childName = absoluteAssetFilePath
|
|
726
|
+
.replace("".concat(this.project.location, "/"), '')
|
|
727
|
+
.replace("/".concat(tnp_config_1.config.folder.src, "/").concat(tnp_config_1.config.folder.assets, "/").concat(tnp_config_1.config.folder.shared, "/").concat(relativePath), '');
|
|
728
|
+
var dest = destination.__node_modules.pathFor("".concat(this.rootPackageName, "/").concat(childName, "/").concat(tnp_config_1.config.folder.assets, "/").concat(tnp_config_1.config.folder.shared, "/").concat(relativePath));
|
|
729
|
+
tnp_helpers_1.Helpers.remove(dest, true);
|
|
730
|
+
if (tnp_helpers_1.Helpers.exists(absoluteAssetFilePath)) {
|
|
731
|
+
tnp_helpers_1.Helpers.copyFile(absoluteAssetFilePath, dest);
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
};
|
|
736
|
+
CopyManagerOrganization.prototype.handleCopyOfSingleFile = function (destination, isTempLocalProj, specyficFileRelativePath, wasRecrusive) {
|
|
737
|
+
if (wasRecrusive === void 0) { wasRecrusive = false; }
|
|
738
|
+
specyficFileRelativePath = (0, tnp_core_1.crossPlatformPath)(specyficFileRelativePath).replace(/^\//, '');
|
|
739
|
+
if (this.notAllowedFiles.includes(specyficFileRelativePath)) {
|
|
740
|
+
return;
|
|
741
|
+
}
|
|
742
|
+
if (specyficFileRelativePath.startsWith(tnp_config_1.config.folder.libs) ||
|
|
743
|
+
specyficFileRelativePath.startsWith([tnp_config_1.config.folder.assets, tnp_config_1.config.folder.shared].join('/'))) {
|
|
744
|
+
this.handleCopyOfSingleFileForChildFromLibs(specyficFileRelativePath, destination, isTempLocalProj, wasRecrusive);
|
|
745
|
+
}
|
|
746
|
+
else if (specyficFileRelativePath.startsWith(tnp_config_1.config.folder.browser) ||
|
|
747
|
+
specyficFileRelativePath.startsWith(tnp_config_1.config.folder.websql)) {
|
|
748
|
+
this.angularCopyManger.handleCopyOfSingleFile(specyficFileRelativePath, destination, isTempLocalProj, wasRecrusive);
|
|
749
|
+
}
|
|
750
|
+
else if (specyficFileRelativePath.startsWith('-')) {
|
|
751
|
+
this.handleCopyOfSingleFileFromNonTargetFiles(specyficFileRelativePath, destination, isTempLocalProj, wasRecrusive);
|
|
752
|
+
}
|
|
753
|
+
else {
|
|
754
|
+
this.handleCopyOfSingleFileFromAppAndRoot(specyficFileRelativePath, destination, isTempLocalProj, wasRecrusive);
|
|
755
|
+
}
|
|
756
|
+
};
|
|
757
|
+
//#endregion
|
|
758
|
+
//#region update backend full dts files
|
|
759
|
+
/**
|
|
760
|
+
* package ready to realse should have all/full *.d.ts files.. .to avoid any
|
|
761
|
+
* erors when we import more "ui package" to backend code
|
|
762
|
+
*/
|
|
763
|
+
CopyManagerOrganization.prototype.updateBackendFullDtsFiles = function (destinationOrDist) {
|
|
764
|
+
var base = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.targetProj.location, "".concat(this.buildOptions.outDir, "-nocutsrc"), tnp_config_1.config.folder.libs));
|
|
765
|
+
var filesToUpdate = tnp_helpers_1.Helpers.filesFrom(base, true)
|
|
766
|
+
.filter(function (f) { return f.endsWith('.d.ts'); })
|
|
767
|
+
.map(function (f) { return f.replace("".concat(base, "/"), ''); });
|
|
768
|
+
for (var index = 0; index < filesToUpdate.length; index++) {
|
|
769
|
+
var relativePath = filesToUpdate[index];
|
|
770
|
+
// const childName = _.first(relativePath.split('/'));
|
|
771
|
+
var source = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(base, relativePath));
|
|
772
|
+
var dest = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(tnp_core_1._.isString(destinationOrDist)
|
|
773
|
+
? (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.monitoredOutDir, tnp_config_1.config.folder.libs))
|
|
774
|
+
: destinationOrDist.__node_modules.pathFor((0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.rootPackageName))), relativePath));
|
|
775
|
+
// console.log({
|
|
776
|
+
// source, dest
|
|
777
|
+
// })
|
|
778
|
+
// if (Helpers.exists(dest)) {
|
|
779
|
+
// console.log(dest)
|
|
780
|
+
var sourceContent = tnp_helpers_1.Helpers.readFile(source);
|
|
781
|
+
tnp_helpers_1.Helpers.writeFile(dest, this.dtsFixer.forBackendContent(sourceContent));
|
|
782
|
+
// }
|
|
783
|
+
}
|
|
784
|
+
};
|
|
785
|
+
return CopyManagerOrganization;
|
|
786
|
+
}(copy_manager_standalone_backend_1.CopyManagerStandalone));
|
|
787
|
+
exports.CopyManagerOrganization = CopyManagerOrganization;
|
|
788
|
+
//# sourceMappingURL=copy-manager-organization.backend.js.map
|