tnp 19.0.21 → 19.0.22
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 +1 -1
- package/browser/fesm2022/tnp.mjs.map +1 -1
- package/browser/lib/build-info._auto-generated_.d.ts +1 -1
- package/browser/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.d.ts +0 -2
- package/browser/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.d.ts +13 -3
- package/browser/lib/project/abstract/artifacts/npm-lib-and-cli-tool/artifact-npm-lib-and-cli-tool.d.ts +2 -0
- package/browser/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/base-copy-manager.d.ts +1 -1
- package/browser/package.json +1 -1
- package/cli.js +32018 -10078
- package/client/fesm2022/tnp.mjs +1 -1
- package/client/fesm2022/tnp.mjs.map +1 -1
- package/client/lib/build-info._auto-generated_.d.ts +1 -1
- package/client/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.d.ts +0 -2
- package/client/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.d.ts +13 -3
- package/client/lib/project/abstract/artifacts/npm-lib-and-cli-tool/artifact-npm-lib-and-cli-tool.d.ts +2 -0
- package/client/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/base-copy-manager.d.ts +1 -1
- 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/helpers.js +2 -2
- package/lib/project/abstract/artifacts/__helpers__/environment-config/environment-config-helpers.d.ts +5 -3
- package/lib/project/abstract/artifacts/__helpers__/environment-config/environment-config-helpers.js +82 -40
- 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 -2
- package/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.js +0 -4
- 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.d.ts +13 -3
- package/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.js +130 -35
- package/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.js.map +1 -1
- package/lib/project/abstract/artifacts/angular-node-app/tools/docs-app-build-config.d.ts +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/artifact-npm-lib-and-cli-tool.d.ts +2 -0
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/artifact-npm-lib-and-cli-tool.js +6 -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 +5 -4
- 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/build-isomorphic-lib/compilations/compilation-browser.js +0 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/compilations/compilation-browser.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 +3 -0
- 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.js +2 -2
- 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.js +2 -2
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/webpack-backend-compilation.js +2 -2
- package/lib/project/abstract/taon-worker/taon.context.d.ts +2 -2
- package/lib/project/cli/cli-_GLOBAL_.d.ts +2 -0
- package/lib/project/cli/cli-_GLOBAL_.js +53 -0
- package/lib/project/cli/cli-_GLOBAL_.js.map +1 -1
- package/lib/project/index.js +2 -2
- package/package.json +1 -1
- package/tmp-environment.json +6 -4
- package/websql/fesm2022/tnp.mjs +1 -1
- package/websql/fesm2022/tnp.mjs.map +1 -1
- package/websql/lib/build-info._auto-generated_.d.ts +1 -1
- package/websql/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.d.ts +0 -2
- package/websql/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.d.ts +13 -3
- package/websql/lib/project/abstract/artifacts/npm-lib-and-cli-tool/artifact-npm-lib-and-cli-tool.d.ts +2 -0
- package/websql/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/base-copy-manager.d.ts +1 -1
- package/websql/package.json +1 -1
- package/lib/build-options.d.ts +0 -164
- package/lib/build-options.js +0 -198
- package/lib/build-options.js.map +0 -1
- package/lib/project/abstract/artifacts/__base__/base-artifact.d.ts +0 -52
- package/lib/project/abstract/artifacts/__base__/base-artifact.js +0 -81
- package/lib/project/abstract/artifacts/__base__/base-artifact.js.map +0 -1
- package/lib/project/abstract/artifacts/__base__/build-process/app/build-process/build-process.controller.d.ts +0 -20
- package/lib/project/abstract/artifacts/__base__/build-process/app/build-process/build-process.controller.js +0 -176
- package/lib/project/abstract/artifacts/__base__/build-process/app/build-process/build-process.controller.js.map +0 -1
- package/lib/project/abstract/artifacts/__base__/build-process/app/build-process/build-process.d.ts +0 -12
- package/lib/project/abstract/artifacts/__base__/build-process/app/build-process/build-process.js +0 -56
- package/lib/project/abstract/artifacts/__base__/build-process/app/build-process/build-process.js.map +0 -1
- package/lib/project/abstract/artifacts/__base__/build-process/app/build-process/index.d.ts +0 -2
- package/lib/project/abstract/artifacts/__base__/build-process/app/build-process/index.js +0 -6
- package/lib/project/abstract/artifacts/__base__/build-process/app/build-process/index.js.map +0 -1
- package/lib/project/abstract/artifacts/__base__/index.d.ts +0 -1
- package/lib/project/abstract/artifacts/__base__/index.js +0 -5
- package/lib/project/abstract/artifacts/__base__/index.js.map +0 -1
- package/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.backend.d.ts +0 -5
- package/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.backend.js +0 -111
- package/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.backend.js.map +0 -1
- package/lib/project/abstract/artifacts/artifact-angular-node-app/artifact-angular-node-app.d.ts +0 -9
- package/lib/project/abstract/artifacts/artifact-angular-node-app/index.d.ts +0 -1
- package/lib/project/abstract/artifacts/artifact-angular-node-app copy.d.ts +0 -7
- package/lib/project/abstract/artifacts/artifact-angular-node-app copy.js +0 -62
- package/lib/project/abstract/artifacts/artifact-angular-node-app copy.js.map +0 -1
- package/lib/project/abstract/artifacts/artifact-angular-node-app.d.ts +0 -9
- package/lib/project/abstract/artifacts/artifact-angular-node-app.js +0 -62
- package/lib/project/abstract/artifacts/artifact-angular-node-app.js.map +0 -1
- package/lib/project/abstract/artifacts/artifact-angular-webapp.d.ts +0 -7
- package/lib/project/abstract/artifacts/artifact-angular-webapp.js +0 -62
- package/lib/project/abstract/artifacts/artifact-angular-webapp.js.map +0 -1
- package/lib/project/abstract/artifacts/artifact-docs-webapp.d.ts +0 -7
- package/lib/project/abstract/artifacts/artifact-docs-webapp.js +0 -5
- package/lib/project/abstract/artifacts/artifact-docs-webapp.js.map +0 -1
- package/lib/project/abstract/artifacts/artifact-electron-app copy.d.ts +0 -1
- package/lib/project/abstract/artifacts/artifact-electron-app copy.js +0 -5
- package/lib/project/abstract/artifacts/artifact-electron-app copy.js.map +0 -1
- package/lib/project/abstract/artifacts/artifact-electron-app.d.ts +0 -8
- package/lib/project/abstract/artifacts/artifact-electron-app.js +0 -5
- package/lib/project/abstract/artifacts/artifact-electron-app.js.map +0 -1
- package/lib/project/abstract/artifacts/artifact-lib-cli.d.ts +0 -1
- package/lib/project/abstract/artifacts/artifact-lib-cli.js +0 -5
- package/lib/project/abstract/artifacts/artifact-lib-cli.js.map +0 -1
- package/lib/project/abstract/artifacts/artifact-lib-with-cli.d.ts +0 -1
- package/lib/project/abstract/artifacts/artifact-lib-with-cli.js +0 -5
- package/lib/project/abstract/artifacts/artifact-lib-with-cli.js.map +0 -1
- package/lib/project/abstract/artifacts/artifact-mk-docs-webapp.d.ts +0 -7
- package/lib/project/abstract/artifacts/artifact-mobile-app copy.d.ts +0 -1
- package/lib/project/abstract/artifacts/artifact-mobile-app copy.js +0 -5
- package/lib/project/abstract/artifacts/artifact-mobile-app copy.js.map +0 -1
- package/lib/project/abstract/artifacts/artifact-mobile-app.d.ts +0 -7
- package/lib/project/abstract/artifacts/artifact-mobile-app.js +0 -5
- package/lib/project/abstract/artifacts/artifact-mobile-app.js.map +0 -1
- package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli-tool.d.ts +0 -25
- package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli-tool.js +0 -5
- package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli-tool.js.map +0 -1
- package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli.d.ts +0 -1
- package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli.js +0 -5
- package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli.js.map +0 -1
- package/lib/project/abstract/artifacts/artifact-vscode-ext copy.d.ts +0 -1
- package/lib/project/abstract/artifacts/artifact-vscode-ext copy.js +0 -5
- package/lib/project/abstract/artifacts/artifact-vscode-ext copy.js.map +0 -1
- package/lib/project/abstract/artifacts/artifact-vscode-ext.d.ts +0 -1
- package/lib/project/abstract/artifacts/artifact-vscode-ext.js +0 -5
- package/lib/project/abstract/artifacts/artifact-vscode-ext.js.map +0 -1
- package/lib/project/abstract/artifacts/artifact-vscode-plugin copy.d.ts +0 -1
- package/lib/project/abstract/artifacts/artifact-vscode-plugin copy.js +0 -5
- package/lib/project/abstract/artifacts/artifact-vscode-plugin copy.js.map +0 -1
- package/lib/project/abstract/artifacts/artifact-vscode-plugin.d.ts +0 -9
- package/lib/project/abstract/artifacts/artifact-vscode-plugin.js +0 -5
- package/lib/project/abstract/artifacts/artifact-vscode-plugin.js.map +0 -1
- package/lib/project/abstract/artifacts/artifact-webapp.d.ts +0 -1
- package/lib/project/abstract/artifacts/artifact-webapp.js +0 -5
- package/lib/project/abstract/artifacts/artifact-webapp.js.map +0 -1
- package/lib/project/abstract/artifacts/artifacts-helpers.d.ts +0 -2
- package/lib/project/abstract/artifacts/build-process-maanger.d.ts +0 -38
- package/lib/project/abstract/artifacts/build-process-maanger.js +0 -269
- package/lib/project/abstract/artifacts/build-process-maanger.js.map +0 -1
- package/lib/project/abstract/artifacts/build-process-manager.d.ts +0 -0
- package/lib/project/abstract/artifacts/build-process-manager.js +0 -392
- package/lib/project/abstract/artifacts/build-process-manager.js.map +0 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-organization-angular-files.d.ts +0 -49
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-organization-angular-files.js +0 -335
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-organization-angular-files.js.map +0 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/singular-build.backend.d.ts +0 -17
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/singular-build.backend.js +0 -383
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/singular-build.backend.js.map +0 -1
- package/lib/project/abstract/base-compiler-for-project.backend.d.ts +0 -6
- package/lib/project/abstract/base-compiler-for-project.backend.js +0 -57
- package/lib/project/abstract/base-compiler-for-project.backend.js.map +0 -1
- package/lib/project/abstract/base-local-release.d.ts +0 -7
- package/lib/project/abstract/base-local-release.js +0 -110
- package/lib/project/abstract/base-local-release.js.map +0 -1
- package/lib/project/abstract/docs.d.ts +0 -51
- package/lib/project/abstract/docs.js +0 -813
- package/lib/project/abstract/docs.js.map +0 -1
- package/lib/project/abstract/migrations-helper.d.ts +0 -18
- package/lib/project/abstract/migrations-helper.js +0 -124
- package/lib/project/abstract/migrations-helper.js.map +0 -1
- 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 +0 -4
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-electron-app.js +0 -19
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-electron-app.js.map +0 -1
- 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 +0 -4
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-frontend-webapp.js +0 -19
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-frontend-webapp.js.map +0 -1
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-ionic-app.d.ts +0 -4
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-ionic-app.js +0 -19
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-ionic-app.js.map +0 -1
- 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 +0 -4
- package/lib/project/abstract/release-process/artifacts/artifact-release-mkdocs-docs-webapp.js +0 -19
- package/lib/project/abstract/release-process/artifacts/artifact-release-mkdocs-docs-webapp.js.map +0 -1
- package/lib/project/abstract/release-process/artifacts/artifact-release-nodejs-backend-server.d.ts +0 -4
- package/lib/project/abstract/release-process/artifacts/artifact-release-nodejs-backend-server.js +0 -19
- package/lib/project/abstract/release-process/artifacts/artifact-release-nodejs-backend-server.js.map +0 -1
- package/lib/project/abstract/release-process/artifacts/artifact-release-npm-lib-and-cli-tool-package.d.ts +0 -6
- 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 +0 -4
- package/lib/project/abstract/release-process/artifacts/artifact-release-npm-lib-pkg-and-cli-tool.js +0 -19
- package/lib/project/abstract/release-process/artifacts/artifact-release-npm-lib-pkg-and-cli-tool.js.map +0 -1
- 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 +0 -6
- package/lib/project/abstract/release-process/artifacts/artifact-release-vscode-extension.d.ts +0 -4
- package/lib/project/abstract/release-process/artifacts/artifact-release-vscode-extension.js +0 -19
- package/lib/project/abstract/release-process/artifacts/artifact-release-vscode-extension.js.map +0 -1
- package/lib/project/abstract/release-process/artifacts/artifact-release.d.ts +0 -14
- package/lib/project/abstract/release-process/artifacts/artifact-release.js +0 -28
- package/lib/project/abstract/release-process/artifacts/artifact-release.js.map +0 -1
- 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 +0 -6
- 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 +0 -10
- 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 +0 -7
- package/lib/project/abstract/release-process/release-process-cloud.js +0 -23
- package/lib/project/abstract/release-process/release-process-cloud.js.map +0 -1
- package/lib/project/abstract/release-process/release-process-local.d.ts +0 -7
- package/lib/project/abstract/release-process/release-process-local.js +0 -23
- package/lib/project/abstract/release-process/release-process-local.js.map +0 -1
- package/lib/project/abstract/release-process/release-process-manual.d.ts +0 -7
- package/lib/project/abstract/release-process/release-process-manual.js +0 -23
- package/lib/project/abstract/release-process/release-process-manual.js.map +0 -1
- package/lib/project/abstract/taon-worker/index.d.ts +0 -1
- package/lib/project/abstract/taon-worker/index.js +0 -5
- package/lib/project/abstract/taon-worker/index.js.map +0 -1
- package/lib/project/abstract/taon-worker/taon-build.entity copy.d.ts +0 -8
- package/lib/project/abstract/taon-worker/taon-build.entity copy.js +0 -50
- package/lib/project/abstract/taon-worker/taon-build.entity copy.js.map +0 -1
- package/lib/project/abstract/taon-worker/taon-project.entity copy.d.ts +0 -5
- package/lib/project/abstract/taon-worker/taon-project.entity copy.js +0 -37
- package/lib/project/abstract/taon-worker/taon-project.entity copy.js.map +0 -1
- package/lib/project/abstract/taon-worker/taon-termina-ui.d.ts +0 -20
- package/lib/project/abstract/taon-worker/taon-termina-ui.js +0 -67
- package/lib/project/abstract/taon-worker/taon-termina-ui.js.map +0 -1
- package/lib/project/abstract/taon-worker/taon.entity.d.ts +0 -6
- package/lib/project/abstract/taon-worker/taon.entity.js +0 -46
- package/lib/project/abstract/taon-worker/taon.entity.js.map +0 -1
- package/lib/project/abstract/taon-worker.d.ts +0 -29
- package/lib/project/abstract/taon-worker.js +0 -4
- package/lib/project/abstract/taon-worker.js.map +0 -1
- package/lib/project/cli/cli-BRANDING.backend.d.ts +0 -26
- package/lib/project/cli/cli-BRANDING.backend.js +0 -50
- package/lib/project/cli/cli-BRANDING.backend.js.map +0 -1
- package/lib/project/cli/cli-BUILD.backend.d.ts +0 -4
- package/lib/project/cli/cli-BUILD.backend.js +0 -269
- package/lib/project/cli/cli-BUILD.backend.js.map +0 -1
- package/lib/project/cli/cli-CI-BUILD.backend.d.ts +0 -4
- package/lib/project/cli/cli-CI-BUILD.backend.js +0 -88
- package/lib/project/cli/cli-CI-BUILD.backend.js.map +0 -1
- package/lib/project/cli/cli-DOCS.backend.d.ts +0 -4
- package/lib/project/cli/cli-DOCS.backend.js +0 -48
- package/lib/project/cli/cli-DOCS.backend.js.map +0 -1
- package/lib/project/cli/cli-ELECTRON.backend.d.ts +0 -4
- package/lib/project/cli/cli-ELECTRON.backend.js +0 -80
- package/lib/project/cli/cli-ELECTRON.backend.js.map +0 -1
- package/lib/project/cli/cli-INIT.backend.d.ts +0 -16
- package/lib/project/cli/cli-INIT.backend.js +0 -179
- package/lib/project/cli/cli-INIT.backend.js.map +0 -1
- package/lib/project/cli/cli-LINK.backend.d.ts +0 -21
- package/lib/project/cli/cli-LINK.backend.js +0 -204
- package/lib/project/cli/cli-LINK.backend.js.map +0 -1
- package/lib/project/cli/cli-LOCAL-RELEASE.backend.d.ts +0 -17
- package/lib/project/cli/cli-LOCAL-RELEASE.backend.js +0 -240
- package/lib/project/cli/cli-LOCAL-RELEASE.backend.js.map +0 -1
- package/lib/project/cli/cli-LOCAL-RELEASE.d.ts +0 -0
- package/lib/project/cli/cli-LOCAL-RELEASE.js +0 -184
- package/lib/project/cli/cli-LOCAL-RELEASE.js.map +0 -1
- package/lib/project/cli/cli-MIGRATION.backend.d.ts +0 -4
- package/lib/project/cli/cli-MIGRATION.backend.js +0 -213
- package/lib/project/cli/cli-MIGRATION.backend.js.map +0 -1
- package/lib/project/cli/cli-NEW.backend.d.ts +0 -18
- package/lib/project/cli/cli-NEW.backend.js +0 -393
- package/lib/project/cli/cli-NEW.backend.js.map +0 -1
- package/lib/project/cli/cli-OPEN.backend.d.ts +0 -17
- package/lib/project/cli/cli-OPEN.backend.js +0 -129
- package/lib/project/cli/cli-OPEN.backend.js.map +0 -1
- package/lib/project/cli/cli-RELEASE.backend.d.ts +0 -4
- package/lib/project/cli/cli-RELEASE.backend.js +0 -415
- package/lib/project/cli/cli-RELEASE.backend.js.map +0 -1
- package/lib/project/cli/cli-SERVICE.backend.d.ts +0 -9
- package/lib/project/cli/cli-SERVICE.backend.js +0 -38
- package/lib/project/cli/cli-SERVICE.backend.js.map +0 -1
- package/lib/project/cli/cli-START.backend.d.ts +0 -2
- package/lib/project/cli/cli-START.backend.js +0 -4
- package/lib/project/cli/cli-START.backend.js.map +0 -1
- package/lib/project/cli/cli-TEST.backend.d.ts +0 -24
- package/lib/project/cli/cli-TEST.backend.js +0 -292
- package/lib/project/cli/cli-TEST.backend.js.map +0 -1
- package/lib/project/cli/cli-TS.backend.d.ts +0 -9
- package/lib/project/cli/cli-TS.backend.js +0 -29
- package/lib/project/cli/cli-TS.backend.js.map +0 -1
- package/lib/project/cli/cli-UPDATE.backend.d.ts +0 -2
- package/lib/project/cli/cli-UPDATE.backend.js +0 -4
- package/lib/project/cli/cli-UPDATE.backend.js.map +0 -1
- package/lib/project/cli/cli-VSCODE.backend.d.ts +0 -20
- package/lib/project/cli/cli-VSCODE.backend.js +0 -153
- package/lib/project/cli/cli-VSCODE.backend.js.map +0 -1
- package/lib/project/cli/cli-_GLOBAL_.backend.d.ts +0 -91
- package/lib/project/cli/cli-_GLOBAL_.backend.js +0 -1730
- package/lib/project/cli/cli-_GLOBAL_.backend.js.map +0 -1
- package/lib/project/compilers/assets-list-file-generator/assets-list-file-generator.backend.d.ts +0 -21
- package/lib/project/compilers/assets-list-file-generator/assets-list-file-generator.backend.js +0 -150
- package/lib/project/compilers/assets-list-file-generator/assets-list-file-generator.backend.js.map +0 -1
- package/lib/project/compilers/build-isomorphic-lib/code-cut/browser-code-cut.backend.d.ts +0 -102
- package/lib/project/compilers/build-isomorphic-lib/code-cut/browser-code-cut.backend.js +0 -990
- package/lib/project/compilers/build-isomorphic-lib/code-cut/browser-code-cut.backend.js.map +0 -1
- package/lib/project/compilers/build-isomorphic-lib/code-cut/code-cut.backend.d.ts +0 -41
- package/lib/project/compilers/build-isomorphic-lib/code-cut/code-cut.backend.js +0 -85
- package/lib/project/compilers/build-isomorphic-lib/code-cut/code-cut.backend.js.map +0 -1
- package/lib/project/compilers/build-isomorphic-lib/code-cut/code-split-process.enum.d.ts +0 -44
- package/lib/project/compilers/build-isomorphic-lib/code-cut/code-split-process.enum.js +0 -98
- package/lib/project/compilers/build-isomorphic-lib/code-cut/code-split-process.enum.js.map +0 -1
- package/lib/project/compilers/build-isomorphic-lib/code-cut/cut-fn.backend.d.ts +0 -1
- package/lib/project/compilers/build-isomorphic-lib/code-cut/cut-fn.backend.js +0 -18
- package/lib/project/compilers/build-isomorphic-lib/code-cut/cut-fn.backend.js.map +0 -1
- package/lib/project/compilers/build-isomorphic-lib/code-cut/file-split-process.d.ts +0 -14
- package/lib/project/compilers/build-isomorphic-lib/code-cut/file-split-process.js +0 -159
- package/lib/project/compilers/build-isomorphic-lib/code-cut/file-split-process.js.map +0 -1
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-backend.backend.d.ts +0 -60
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-backend.backend.js +0 -284
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-backend.backend.js.map +0 -1
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-browser.backend.d.ts +0 -42
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-browser.backend.js +0 -232
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-browser.backend.js.map +0 -1
- package/lib/project/compilers/build-isomorphic-lib/compilations/incremental-build-process.backend.d.ts +0 -18
- package/lib/project/compilers/build-isomorphic-lib/compilations/incremental-build-process.backend.js +0 -165
- package/lib/project/compilers/build-isomorphic-lib/compilations/incremental-build-process.backend.js.map +0 -1
- package/lib/project/compilers/index.d.ts +0 -1
- package/lib/project/compilers/index.js +0 -8
- package/lib/project/compilers/index.js.map +0 -1
- package/lib/project/features/assets-manager.backend.d.ts +0 -5
- package/lib/project/features/assets-manager.backend.js +0 -110
- package/lib/project/features/assets-manager.backend.js.map +0 -1
- package/lib/project/features/basename-manager.d.ts +0 -18
- package/lib/project/features/basename-manager.js +0 -89
- package/lib/project/features/basename-manager.js.map +0 -1
- package/lib/project/features/branding.backend.d.ts +0 -11
- package/lib/project/features/branding.backend.js +0 -213
- package/lib/project/features/branding.backend.js.map +0 -1
- package/lib/project/features/build-process/app/build-process/backend/build-process-backend.d.ts +0 -14
- package/lib/project/features/build-process/app/build-process/backend/build-process-backend.js +0 -44
- package/lib/project/features/build-process/app/build-process/backend/build-process-backend.js.map +0 -1
- 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 +0 -2
- package/lib/project/features/build-process/app/build-process/backend/build-process-backend.test.js.map +0 -1
- package/lib/project/features/build-process/app/build-process/build-process.controller.d.ts +0 -20
- package/lib/project/features/build-process/app/build-process/build-process.controller.js +0 -159
- package/lib/project/features/build-process/app/build-process/build-process.controller.js.map +0 -1
- package/lib/project/features/build-process/app/build-process/build-process.d.ts +0 -12
- package/lib/project/features/build-process/app/build-process/build-process.js +0 -56
- package/lib/project/features/build-process/app/build-process/build-process.js.map +0 -1
- package/lib/project/features/build-process/app/build-process/index.d.ts +0 -2
- package/lib/project/features/build-process/app/build-process/index.js +0 -6
- package/lib/project/features/build-process/app/build-process/index.js.map +0 -1
- package/lib/project/features/copy-manager/base-copy-manager.backend.d.ts +0 -87
- package/lib/project/features/copy-manager/base-copy-manager.backend.js +0 -504
- package/lib/project/features/copy-manager/base-copy-manager.backend.js.map +0 -1
- package/lib/project/features/copy-manager/copy-manager-helpers.backend.d.ts +0 -12
- package/lib/project/features/copy-manager/copy-manager-helpers.backend.js +0 -96
- package/lib/project/features/copy-manager/copy-manager-helpers.backend.js.map +0 -1
- package/lib/project/features/copy-manager/copy-manager-organization-angular-files.backend.d.ts +0 -49
- package/lib/project/features/copy-manager/copy-manager-organization-angular-files.backend.js +0 -321
- package/lib/project/features/copy-manager/copy-manager-organization-angular-files.backend.js.map +0 -1
- package/lib/project/features/copy-manager/copy-manager-organization.backend.d.ts +0 -78
- package/lib/project/features/copy-manager/copy-manager-organization.backend.js +0 -788
- package/lib/project/features/copy-manager/copy-manager-organization.backend.js.map +0 -1
- package/lib/project/features/copy-manager/copy-manager-standalone.backend.d.ts +0 -77
- package/lib/project/features/copy-manager/copy-manager-standalone.backend.js +0 -575
- package/lib/project/features/copy-manager/copy-manager-standalone.backend.js.map +0 -1
- package/lib/project/features/copy-manager/copy-manager.backend.d.ts +0 -7
- package/lib/project/features/copy-manager/copy-manager.backend.js +0 -27
- package/lib/project/features/copy-manager/copy-manager.backend.js.map +0 -1
- package/lib/project/features/copy-manager/mjs-fesm-module-spliter.backend.d.ts +0 -46
- package/lib/project/features/copy-manager/mjs-fesm-module-spliter.backend.js +0 -354
- package/lib/project/features/copy-manager/mjs-fesm-module-spliter.backend.js.map +0 -1
- package/lib/project/features/copy-manager/source-maping-url.backend.d.ts +0 -12
- package/lib/project/features/copy-manager/source-maping-url.backend.js +0 -56
- package/lib/project/features/copy-manager/source-maping-url.backend.js.map +0 -1
- package/lib/project/features/copy-manager/typescript-dts-fixer.backend.d.ts +0 -25
- package/lib/project/features/copy-manager/typescript-dts-fixer.backend.js +0 -97
- package/lib/project/features/copy-manager/typescript-dts-fixer.backend.js.map +0 -1
- package/lib/project/features/docs-app-build-config.backend.d.ts +0 -19
- package/lib/project/features/docs-app-build-config.backend.js +0 -81
- package/lib/project/features/docs-app-build-config.backend.js.map +0 -1
- package/lib/project/features/docs-provider.d.ts +0 -9
- package/lib/project/features/docs-provider.js +0 -48
- package/lib/project/features/docs-provider.js.map +0 -1
- package/lib/project/features/documentation-builder.d.ts +0 -0
- package/lib/project/features/documentation-builder.js +0 -5
- package/lib/project/features/documentation-builder.js.map +0 -1
- package/lib/project/features/environment-config/environment-config-helpers.d.ts +0 -6
- package/lib/project/features/environment-config/environment-config-helpers.js +0 -197
- package/lib/project/features/environment-config/environment-config-helpers.js.map +0 -1
- package/lib/project/features/environment-config/environment-config.d.ts +0 -12
- package/lib/project/features/environment-config/environment-config.js +0 -117
- package/lib/project/features/environment-config/environment-config.js.map +0 -1
- package/lib/project/features/environment-config/example-environment-config.d.ts +0 -2
- package/lib/project/features/environment-config/example-environment-config.js +0 -26
- package/lib/project/features/environment-config/example-environment-config.js.map +0 -1
- package/lib/project/features/files-recreation/files-factory.backend.d.ts +0 -11
- package/lib/project/features/files-recreation/files-factory.backend.js +0 -64
- package/lib/project/features/files-recreation/files-factory.backend.js.map +0 -1
- package/lib/project/features/files-recreation/files-recreator.d.ts +0 -113
- package/lib/project/features/files-recreation/files-recreator.js +0 -661
- package/lib/project/features/files-recreation/files-recreator.js.map +0 -1
- package/lib/project/features/files-recreation/files-templates.d.ts +0 -8
- package/lib/project/features/files-recreation/files-templates.js +0 -129
- package/lib/project/features/files-recreation/files-templates.js.map +0 -1
- package/lib/project/features/files-recreation/index.d.ts +0 -3
- package/lib/project/features/files-recreation/index.js +0 -9
- package/lib/project/features/files-recreation/index.js.map +0 -1
- package/lib/project/features/html-to-md.d.ts +0 -1
- package/lib/project/features/html-to-md.js +0 -241
- package/lib/project/features/html-to-md.js.map +0 -1
- package/lib/project/features/index-autogen-provider.backend.d.ts +0 -14
- package/lib/project/features/index-autogen-provider.backend.js +0 -102
- package/lib/project/features/index-autogen-provider.backend.js.map +0 -1
- package/lib/project/features/index.d.ts +0 -12
- package/lib/project/features/index.js +0 -18
- package/lib/project/features/index.js.map +0 -1
- package/lib/project/features/inside-structures/inside-struct.d.ts +0 -43
- package/lib/project/features/inside-structures/inside-struct.js +0 -53
- package/lib/project/features/inside-structures/inside-struct.js.map +0 -1
- package/lib/project/features/inside-structures/inside-structures.d.ts +0 -11
- package/lib/project/features/inside-structures/inside-structures.js +0 -160
- package/lib/project/features/inside-structures/inside-structures.js.map +0 -1
- package/lib/project/features/inside-structures/structs/base-inside-struct.d.ts +0 -13
- package/lib/project/features/inside-structures/structs/base-inside-struct.js +0 -24
- package/lib/project/features/inside-structures/structs/base-inside-struct.js.map +0 -1
- package/lib/project/features/inside-structures/structs/index.d.ts +0 -2
- package/lib/project/features/inside-structures/structs/index.js +0 -6
- package/lib/project/features/inside-structures/structs/index.js.map +0 -1
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-app.d.ts +0 -6
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-app.js +0 -495
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-app.js.map +0 -1
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-lib.d.ts +0 -6
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-lib.js +0 -240
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-lib.js.map +0 -1
- package/lib/project/features/inside-structures/structs/inside-struct-constants.d.ts +0 -2
- package/lib/project/features/inside-structures/structs/inside-struct-constants.js +0 -6
- package/lib/project/features/inside-structures/structs/inside-struct-constants.js.map +0 -1
- package/lib/project/features/inside-structures/structs/inside-struct-helpers.d.ts +0 -12
- package/lib/project/features/inside-structures/structs/inside-struct-helpers.js +0 -128
- package/lib/project/features/inside-structures/structs/inside-struct-helpers.js.map +0 -1
- package/lib/project/features/inside-structures/structs/loaders/image-loader.d.ts +0 -1
- package/lib/project/features/inside-structures/structs/loaders/image-loader.js +0 -9
- package/lib/project/features/inside-structures/structs/loaders/image-loader.js.map +0 -1
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-default.d.ts +0 -1
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-default.js +0 -10
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-default.js.map +0 -1
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-ellipsis.d.ts +0 -1
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-ellipsis.js +0 -10
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-ellipsis.js.map +0 -1
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-facebook.d.ts +0 -1
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-facebook.js +0 -10
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-facebook.js.map +0 -1
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-grid.d.ts +0 -1
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-grid.js +0 -10
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-grid.js.map +0 -1
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-heart.d.ts +0 -1
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-heart.js +0 -10
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-heart.js.map +0 -1
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-ripple.d.ts +0 -1
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-ripple.js +0 -10
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-ripple.js.map +0 -1
- package/lib/project/features/inside-structures/structs/loaders/loaders.d.ts +0 -1
- package/lib/project/features/inside-structures/structs/loaders/loaders.js +0 -27
- package/lib/project/features/inside-structures/structs/loaders/loaders.js.map +0 -1
- package/lib/project/features/lib-project/lib-project-base.backend.d.ts +0 -14
- package/lib/project/features/lib-project/lib-project-base.backend.js +0 -120
- package/lib/project/features/lib-project/lib-project-base.backend.js.map +0 -1
- package/lib/project/features/lib-project/lib-project-smart-container.backend.d.ts +0 -13
- package/lib/project/features/lib-project/lib-project-smart-container.backend.js +0 -320
- package/lib/project/features/lib-project/lib-project-smart-container.backend.js.map +0 -1
- package/lib/project/features/lib-project/lib-project-standalone.backend.d.ts +0 -13
- package/lib/project/features/lib-project/lib-project-standalone.backend.js +0 -269
- package/lib/project/features/lib-project/lib-project-standalone.backend.js.map +0 -1
- package/lib/project/features/lib-project/lib-project-vscode-ext.d.ts +0 -11
- package/lib/project/features/lib-project/lib-project-vscode-ext.js +0 -128
- package/lib/project/features/lib-project/lib-project-vscode-ext.js.map +0 -1
- package/lib/project/features/linked-repos.backend.d.ts +0 -19
- package/lib/project/features/linked-repos.backend.js +0 -198
- package/lib/project/features/linked-repos.backend.js.map +0 -1
- package/lib/project/features/node-modules/index.d.ts +0 -1
- package/lib/project/features/node-modules/index.js +0 -7
- package/lib/project/features/node-modules/index.js.map +0 -1
- package/lib/project/features/node-modules/node-modules-helpers.backend.d.ts +0 -3
- package/lib/project/features/node-modules/node-modules-helpers.backend.js +0 -159
- package/lib/project/features/node-modules/node-modules-helpers.backend.js.map +0 -1
- package/lib/project/features/node-modules/node-modules.d.ts +0 -29
- package/lib/project/features/node-modules/node-modules.js +0 -350
- package/lib/project/features/node-modules/node-modules.js.map +0 -1
- package/lib/project/features/npm-packages/index.d.ts +0 -1
- package/lib/project/features/npm-packages/index.js +0 -7
- package/lib/project/features/npm-packages/index.js.map +0 -1
- package/lib/project/features/npm-packages/npm-packages-base.backend.d.ts +0 -6
- package/lib/project/features/npm-packages/npm-packages-base.backend.js +0 -159
- package/lib/project/features/npm-packages/npm-packages-base.backend.js.map +0 -1
- package/lib/project/features/npm-packages/npm-packages-core.backend.d.ts +0 -15
- package/lib/project/features/npm-packages/npm-packages-core.backend.js +0 -166
- package/lib/project/features/npm-packages/npm-packages-core.backend.js.map +0 -1
- package/lib/project/features/npm-packages/npm-packages-helpers.backend.d.ts +0 -7
- package/lib/project/features/npm-packages/npm-packages-helpers.backend.js +0 -85
- package/lib/project/features/npm-packages/npm-packages-helpers.backend.js.map +0 -1
- package/lib/project/features/npm-packages/npm-packages.d.ts +0 -5
- package/lib/project/features/npm-packages/npm-packages.js +0 -72
- package/lib/project/features/npm-packages/npm-packages.js.map +0 -1
- package/lib/project/features/package-json/index.d.ts +0 -1
- package/lib/project/features/package-json/index.js +0 -5
- package/lib/project/features/package-json/index.js.map +0 -1
- package/lib/project/features/package-json/package-json-base.backend.d.ts +0 -31
- package/lib/project/features/package-json/package-json-base.backend.js +0 -157
- package/lib/project/features/package-json/package-json-base.backend.js.map +0 -1
- package/lib/project/features/package-json/package-json-core.backend.d.ts +0 -56
- package/lib/project/features/package-json/package-json-core.backend.js +0 -369
- package/lib/project/features/package-json/package-json-core.backend.js.map +0 -1
- package/lib/project/features/package-json/package-json-deps-categories.backend.d.ts +0 -17
- package/lib/project/features/package-json/package-json-deps-categories.backend.js +0 -145
- package/lib/project/features/package-json/package-json-deps-categories.backend.js.map +0 -1
- package/lib/project/features/package-json/package-json-helpers.backend.d.ts +0 -14
- package/lib/project/features/package-json/package-json-helpers.backend.js +0 -766
- package/lib/project/features/package-json/package-json-helpers.backend.js.map +0 -1
- package/lib/project/features/package-json/package-json.d.ts +0 -6
- package/lib/project/features/package-json/package-json.js +0 -66
- package/lib/project/features/package-json/package-json.js.map +0 -1
- package/lib/project/features/package-recognition/packages-recognition.d.ts +0 -13
- package/lib/project/features/package-recognition/packages-recognition.js +0 -187
- package/lib/project/features/package-recognition/packages-recognition.js.map +0 -1
- package/lib/project/features/quick-fixes.d.ts +0 -29
- package/lib/project/features/quick-fixes.js +0 -433
- package/lib/project/features/quick-fixes.js.map +0 -1
- package/lib/project/features/singular-build.backend.d.ts +0 -18
- package/lib/project/features/singular-build.backend.js +0 -375
- package/lib/project/features/singular-build.backend.js.map +0 -1
- package/lib/project/features/target-project.backend.d.ts +0 -10
- package/lib/project/features/target-project.backend.js +0 -189
- package/lib/project/features/target-project.backend.js.map +0 -1
- package/lib/project/features/test-runner/cypress-test-runner.d.ts +0 -7
- package/lib/project/features/test-runner/cypress-test-runner.js +0 -84
- package/lib/project/features/test-runner/cypress-test-runner.js.map +0 -1
- package/lib/project/features/test-runner/index.d.ts +0 -3
- package/lib/project/features/test-runner/index.js +0 -7
- package/lib/project/features/test-runner/index.js.map +0 -1
- package/lib/project/features/test-runner/jest-test-runner.d.ts +0 -8
- package/lib/project/features/test-runner/jest-test-runner.js +0 -69
- package/lib/project/features/test-runner/jest-test-runner.js.map +0 -1
- package/lib/project/features/test-runner/mocha-test-runner.d.ts +0 -7
- package/lib/project/features/test-runner/mocha-test-runner.js +0 -66
- package/lib/project/features/test-runner/mocha-test-runner.js.map +0 -1
- package/lib/project/features/webpack-backend-compilation.backend.d.ts +0 -14
- package/lib/project/features/webpack-backend-compilation.backend.js +0 -68
- package/lib/project/features/webpack-backend-compilation.backend.js.map +0 -1
- package/lib/taon-models.d.ts +0 -72
- package/migrations/1735324537544_pierwsza.d.ts +0 -1
- package/migrations/1735324537544_pierwsza.js +0 -3
- package/migrations/1735324537544_pierwsza.js.map +0 -1
- package/migrations/1735324809552_pierwsza.d.ts +0 -6
- package/migrations/1735324809552_pierwsza.js +0 -33
- package/migrations/1735324809552_pierwsza.js.map +0 -1
- package/migrations/1735324983861_druga.d.ts +0 -6
- package/migrations/1735324983861_druga.js +0 -33
- package/migrations/1735324983861_druga.js.map +0 -1
- package/migrations/1737301578918_addingSampleData.d.ts +0 -32
- package/migrations/1737301578918_addingSampleData.js +0 -111
- package/migrations/1737301578918_addingSampleData.js.map +0 -1
|
@@ -1,788 +0,0 @@
|
|
|
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
|