tnp 19.0.19 → 19.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/fesm2022/tnp.mjs +2 -4
- package/browser/fesm2022/tnp.mjs.map +1 -1
- package/browser/lib/build-info._auto-generated_.d.ts +1 -1
- package/browser/lib/models.d.ts +9 -0
- package/browser/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.d.ts +0 -1
- package/browser/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.d.ts +1 -1
- package/browser/lib/project/abstract/artifacts/base-artifact.d.ts +1 -0
- package/browser/lib/project/abstract/artifacts/docs-webapp/artifact-docs-webapp.d.ts +1 -0
- package/browser/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/base-copy-manager.d.ts +1 -1
- package/browser/lib/project/abstract/git.d.ts +1 -0
- package/browser/lib/project/abstract/taonJson.d.ts +1 -0
- package/browser/package.json +1 -1
- package/cli.js +840 -602
- package/client/fesm2022/tnp.mjs +2 -4
- package/client/fesm2022/tnp.mjs.map +1 -1
- package/client/lib/build-info._auto-generated_.d.ts +1 -1
- package/client/lib/models.d.ts +9 -0
- package/client/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.d.ts +0 -1
- package/client/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.d.ts +1 -1
- package/client/lib/project/abstract/artifacts/base-artifact.d.ts +1 -0
- package/client/lib/project/abstract/artifacts/docs-webapp/artifact-docs-webapp.d.ts +1 -0
- package/client/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/base-copy-manager.d.ts +1 -1
- package/client/lib/project/abstract/git.d.ts +1 -0
- package/client/lib/project/abstract/taonJson.d.ts +1 -0
- package/client/package.json +1 -1
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/build-options.d.ts +164 -0
- package/lib/build-options.js +198 -0
- package/lib/build-options.js.map +1 -0
- package/lib/constants.js +1 -3
- package/lib/constants.js.map +1 -1
- package/lib/helpers.js +2 -2
- package/lib/models.d.ts +9 -0
- package/lib/models.js.map +1 -1
- package/lib/project/abstract/artifacts/__helpers__/environment-config/environment-config-helpers.d.ts +3 -5
- package/lib/project/abstract/artifacts/__helpers__/environment-config/environment-config-helpers.js +62 -76
- package/lib/project/abstract/artifacts/__helpers__/environment-config/environment-config-helpers.js.map +1 -1
- package/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.d.ts +0 -1
- package/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.js +20 -31
- package/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.js.map +1 -1
- package/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.backend.d.ts +5 -0
- package/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.backend.js +111 -0
- package/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.backend.js.map +1 -0
- package/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.js +6 -55
- package/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.js.map +1 -1
- package/lib/project/abstract/artifacts/angular-node-app/tools/basename-manager.js +3 -1
- package/lib/project/abstract/artifacts/angular-node-app/tools/basename-manager.js.map +1 -1
- package/lib/project/abstract/artifacts/artifact-angular-node-app/artifact-angular-node-app.d.ts +9 -0
- package/lib/project/abstract/artifacts/artifact-angular-node-app/index.d.ts +1 -0
- package/lib/project/abstract/artifacts/artifact-angular-node-app copy.d.ts +7 -0
- package/lib/project/abstract/artifacts/artifact-angular-node-app copy.js +62 -0
- package/lib/project/abstract/artifacts/artifact-angular-node-app copy.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-angular-node-app.d.ts +9 -0
- package/lib/project/abstract/artifacts/artifact-angular-node-app.js +62 -0
- package/lib/project/abstract/artifacts/artifact-angular-node-app.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-angular-webapp.d.ts +7 -0
- package/lib/project/abstract/artifacts/artifact-angular-webapp.js +62 -0
- package/lib/project/abstract/artifacts/artifact-angular-webapp.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-docs-webapp.d.ts +7 -0
- package/lib/project/abstract/artifacts/artifact-docs-webapp.js +5 -0
- package/lib/project/abstract/artifacts/artifact-docs-webapp.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-electron-app copy.d.ts +1 -0
- package/lib/project/abstract/artifacts/artifact-electron-app copy.js +5 -0
- package/lib/project/abstract/artifacts/artifact-electron-app copy.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-electron-app.d.ts +8 -0
- package/lib/project/abstract/artifacts/artifact-electron-app.js +5 -0
- package/lib/project/abstract/artifacts/artifact-electron-app.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-lib-cli.d.ts +1 -0
- package/lib/project/abstract/artifacts/artifact-lib-cli.js +5 -0
- package/lib/project/abstract/artifacts/artifact-lib-cli.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-lib-with-cli.d.ts +1 -0
- package/lib/project/abstract/artifacts/artifact-lib-with-cli.js +5 -0
- package/lib/project/abstract/artifacts/artifact-lib-with-cli.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-mk-docs-webapp.d.ts +7 -0
- package/lib/project/abstract/artifacts/artifact-mobile-app copy.d.ts +1 -0
- package/lib/project/abstract/artifacts/artifact-mobile-app copy.js +5 -0
- package/lib/project/abstract/artifacts/artifact-mobile-app copy.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-mobile-app.d.ts +7 -0
- package/lib/project/abstract/artifacts/artifact-mobile-app.js +5 -0
- package/lib/project/abstract/artifacts/artifact-mobile-app.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli-tool.d.ts +25 -0
- package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli-tool.js +5 -0
- package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli-tool.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli.d.ts +1 -0
- package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli.js +5 -0
- package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-vscode-ext copy.d.ts +1 -0
- package/lib/project/abstract/artifacts/artifact-vscode-ext copy.js +5 -0
- package/lib/project/abstract/artifacts/artifact-vscode-ext copy.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-vscode-ext.d.ts +1 -0
- package/lib/project/abstract/artifacts/artifact-vscode-ext.js +5 -0
- package/lib/project/abstract/artifacts/artifact-vscode-ext.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-vscode-plugin copy.d.ts +1 -0
- package/lib/project/abstract/artifacts/artifact-vscode-plugin copy.js +5 -0
- package/lib/project/abstract/artifacts/artifact-vscode-plugin copy.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-vscode-plugin.d.ts +9 -0
- package/lib/project/abstract/artifacts/artifact-vscode-plugin.js +5 -0
- package/lib/project/abstract/artifacts/artifact-vscode-plugin.js.map +1 -0
- package/lib/project/abstract/artifacts/artifact-webapp.d.ts +1 -0
- package/lib/project/abstract/artifacts/artifact-webapp.js +5 -0
- package/lib/project/abstract/artifacts/artifact-webapp.js.map +1 -0
- package/lib/project/abstract/artifacts/artifacts-helpers.d.ts +2 -0
- package/lib/project/abstract/artifacts/base-artifact.d.ts +1 -0
- package/lib/project/abstract/artifacts/base-artifact.js +29 -0
- package/lib/project/abstract/artifacts/base-artifact.js.map +1 -1
- package/lib/project/abstract/artifacts/build-process-maanger.d.ts +38 -0
- package/lib/project/abstract/artifacts/build-process-maanger.js +269 -0
- package/lib/project/abstract/artifacts/build-process-maanger.js.map +1 -0
- package/lib/project/abstract/artifacts/build-process-manager.d.ts +0 -51
- package/lib/project/abstract/artifacts/build-process-manager.js +388 -415
- package/lib/project/abstract/artifacts/build-process-manager.js.map +1 -1
- package/lib/project/abstract/artifacts/docs-webapp/artifact-docs-webapp.d.ts +1 -0
- package/lib/project/abstract/artifacts/docs-webapp/artifact-docs-webapp.js +68 -8
- package/lib/project/abstract/artifacts/docs-webapp/artifact-docs-webapp.js.map +1 -1
- package/lib/project/abstract/artifacts/docs-webapp/docs.js +1 -1
- package/lib/project/abstract/artifacts/docs-webapp/docs.js.map +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/artifact-npm-lib-and-cli-tool.js +7 -0
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/artifact-npm-lib-and-cli-tool.js.map +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/browser-code-cut.js +13 -12
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/browser-code-cut.js.map +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/base-copy-manager.d.ts +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/base-copy-manager.js +6 -10
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/base-copy-manager.js.map +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-organization-angular-files.d.ts +49 -0
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-organization-angular-files.js +335 -0
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-organization-angular-files.js.map +1 -0
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-organization.js +2 -2
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-standalone.js +6 -2
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-standalone.js.map +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/source-maping-url.js +0 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/source-maping-url.js.map +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/files-recreation/files-recreator.js +4 -7
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/files-recreation/files-recreator.js.map +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/inside-structures/structs/inside-struct-helpers.js +14 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/inside-structures/structs/inside-struct-helpers.js.map +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/inside-structures/structs/loaders/image-loader.js +4 -3
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/inside-structures/structs/loaders/image-loader.js.map +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/lib-project/lib-project-smart-container.js +2 -2
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/singular-build.backend.d.ts +17 -0
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/singular-build.backend.js +383 -0
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/singular-build.backend.js.map +1 -0
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/singular-build.js +2 -2
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/webpack-backend-compilation.js +2 -2
- package/lib/project/abstract/base-compiler-for-project.backend.d.ts +6 -0
- package/lib/project/abstract/base-compiler-for-project.backend.js +57 -0
- package/lib/project/abstract/base-compiler-for-project.backend.js.map +1 -0
- package/lib/project/abstract/base-local-release.d.ts +7 -0
- package/lib/project/abstract/base-local-release.js +110 -0
- package/lib/project/abstract/base-local-release.js.map +1 -0
- package/lib/project/abstract/docs.d.ts +51 -0
- package/lib/project/abstract/docs.js +813 -0
- package/lib/project/abstract/docs.js.map +1 -0
- package/lib/project/abstract/git.d.ts +1 -0
- package/lib/project/abstract/git.js +30 -3
- package/lib/project/abstract/git.js.map +1 -1
- package/lib/project/abstract/migrations-helper.d.ts +18 -0
- package/lib/project/abstract/migrations-helper.js +124 -0
- package/lib/project/abstract/migrations-helper.js.map +1 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-electron-app copy.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-electron-app.d.ts +4 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-electron-app.js +19 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-electron-app.js.map +1 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-frontend-webapp copy.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-frontend-webapp.d.ts +4 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-frontend-webapp.js +19 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-frontend-webapp.js.map +1 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-ionic-app.d.ts +4 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-ionic-app.js +19 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-ionic-app.js.map +1 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-ionic-appy.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-nodejs-webapp copy.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-angular-nodejs-webapp.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-mkdocs-docs-webapp.d.ts +4 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-mkdocs-docs-webapp.js +19 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-mkdocs-docs-webapp.js.map +1 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-nodejs-backend-server.d.ts +4 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-nodejs-backend-server.js +19 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-nodejs-backend-server.js.map +1 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-npm-lib-and-cli-tool-package.d.ts +6 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-npm-lib-cli-package.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-npm-lib-pkg-and-cli-tool.d.ts +4 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-npm-lib-pkg-and-cli-tool.js +19 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-npm-lib-pkg-and-cli-tool.js.map +1 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-process-angular-electron-app.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-vscode-extension copy.d.ts +6 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-vscode-extension.d.ts +4 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-vscode-extension.js +19 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release-vscode-extension.js.map +1 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release.d.ts +14 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release.js +28 -0
- package/lib/project/abstract/release-process/artifacts/artifact-release.js.map +1 -0
- package/lib/project/abstract/release-process/artifacts/base-artifact-release-process.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts/base-artifact-release.d.ts +6 -0
- package/lib/project/abstract/release-process/artifacts/release-angular-nodejs-webapp.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts/release-npm-lib-cli-package copy.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts/release-npm-lib-cli-package.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts/release-process-angular-electron-app.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts copy/artifact-release-angular-nodejs-webapp.d.ts +0 -0
- package/lib/project/abstract/release-process/artifacts copy/artifact-release-npm-lib-cli-package.d.ts +0 -0
- package/lib/project/abstract/release-process/release-npm-lib-cli-package.d.ts +0 -0
- package/lib/project/abstract/release-process/release-process copy.d.ts +10 -0
- package/lib/project/abstract/release-process/release-process-artifact-npm-lib-cli.d.ts +0 -0
- package/lib/project/abstract/release-process/release-process-cloud.d.ts +7 -0
- package/lib/project/abstract/release-process/release-process-cloud.js +23 -0
- package/lib/project/abstract/release-process/release-process-cloud.js.map +1 -0
- package/lib/project/abstract/release-process/release-process-local.d.ts +7 -0
- package/lib/project/abstract/release-process/release-process-local.js +23 -0
- package/lib/project/abstract/release-process/release-process-local.js.map +1 -0
- package/lib/project/abstract/release-process/release-process-manual.d.ts +7 -0
- package/lib/project/abstract/release-process/release-process-manual.js +23 -0
- package/lib/project/abstract/release-process/release-process-manual.js.map +1 -0
- package/lib/project/abstract/taon-worker/index.d.ts +1 -0
- package/lib/project/abstract/taon-worker/index.js +5 -0
- package/lib/project/abstract/taon-worker/index.js.map +1 -0
- package/lib/project/abstract/taon-worker/taon-build.entity copy.d.ts +8 -0
- package/lib/project/abstract/taon-worker/taon-build.entity copy.js +50 -0
- package/lib/project/abstract/taon-worker/taon-build.entity copy.js.map +1 -0
- package/lib/project/abstract/taon-worker/taon-project.entity copy.d.ts +5 -0
- package/lib/project/abstract/taon-worker/taon-project.entity copy.js +37 -0
- package/lib/project/abstract/taon-worker/taon-project.entity copy.js.map +1 -0
- package/lib/project/abstract/taon-worker/taon-termina-ui.d.ts +20 -0
- package/lib/project/abstract/taon-worker/taon-termina-ui.js +67 -0
- package/lib/project/abstract/taon-worker/taon-termina-ui.js.map +1 -0
- package/lib/project/abstract/taon-worker/taon.context.d.ts +2 -2
- package/lib/project/abstract/taon-worker/taon.entity.d.ts +6 -0
- package/lib/project/abstract/taon-worker/taon.entity.js +46 -0
- package/lib/project/abstract/taon-worker/taon.entity.js.map +1 -0
- package/lib/project/abstract/taon-worker.d.ts +29 -0
- package/lib/project/abstract/taon-worker.js +4 -0
- package/lib/project/abstract/taon-worker.js.map +1 -0
- package/lib/project/abstract/taonJson.d.ts +1 -0
- package/lib/project/abstract/taonJson.js +10 -0
- package/lib/project/abstract/taonJson.js.map +1 -1
- package/lib/project/abstract/vscode.js +1 -1
- package/lib/project/abstract/vscode.js.map +1 -1
- package/lib/project/cli/cli-BRANDING.backend.d.ts +26 -0
- package/lib/project/cli/cli-BRANDING.backend.js +50 -0
- package/lib/project/cli/cli-BRANDING.backend.js.map +1 -0
- package/lib/project/cli/cli-BUILD.backend.d.ts +4 -0
- package/lib/project/cli/cli-BUILD.backend.js +269 -0
- package/lib/project/cli/cli-BUILD.backend.js.map +1 -0
- package/lib/project/cli/cli-BUILD.js +2 -4
- package/lib/project/cli/cli-BUILD.js.map +1 -1
- package/lib/project/cli/cli-CI-BUILD.backend.d.ts +4 -0
- package/lib/project/cli/cli-CI-BUILD.backend.js +88 -0
- package/lib/project/cli/cli-CI-BUILD.backend.js.map +1 -0
- package/lib/project/cli/cli-DOCS.backend.d.ts +4 -0
- package/lib/project/cli/cli-DOCS.backend.js +48 -0
- package/lib/project/cli/cli-DOCS.backend.js.map +1 -0
- package/lib/project/cli/cli-DOCS.js +5 -5
- package/lib/project/cli/cli-DOCS.js.map +1 -1
- package/lib/project/cli/cli-ELECTRON.backend.d.ts +4 -0
- package/lib/project/cli/cli-ELECTRON.backend.js +80 -0
- package/lib/project/cli/cli-ELECTRON.backend.js.map +1 -0
- package/lib/project/cli/cli-GENERATE.js +1 -1
- package/lib/project/cli/cli-GENERATE.js.map +1 -1
- package/lib/project/cli/cli-INIT.backend.d.ts +16 -0
- package/lib/project/cli/cli-INIT.backend.js +179 -0
- package/lib/project/cli/cli-INIT.backend.js.map +1 -0
- package/lib/project/cli/cli-LINK.backend.d.ts +21 -0
- package/lib/project/cli/cli-LINK.backend.js +204 -0
- package/lib/project/cli/cli-LINK.backend.js.map +1 -0
- package/lib/project/cli/cli-LINK.d.ts +1 -1
- package/lib/project/cli/cli-LINK.js +19 -6
- package/lib/project/cli/cli-LINK.js.map +1 -1
- package/lib/project/cli/cli-LOCAL-RELEASE.backend.d.ts +17 -0
- package/lib/project/cli/cli-LOCAL-RELEASE.backend.js +240 -0
- package/lib/project/cli/cli-LOCAL-RELEASE.backend.js.map +1 -0
- package/lib/project/cli/cli-LOCAL-RELEASE.d.ts +0 -0
- package/lib/project/cli/cli-LOCAL-RELEASE.js +184 -0
- package/lib/project/cli/cli-LOCAL-RELEASE.js.map +1 -0
- package/lib/project/cli/cli-MIGRATION.backend.d.ts +4 -0
- package/lib/project/cli/cli-MIGRATION.backend.js +213 -0
- package/lib/project/cli/cli-MIGRATION.backend.js.map +1 -0
- package/lib/project/cli/cli-NEW.backend.d.ts +18 -0
- package/lib/project/cli/cli-NEW.backend.js +393 -0
- package/lib/project/cli/cli-NEW.backend.js.map +1 -0
- package/lib/project/cli/cli-OPEN.backend.d.ts +17 -0
- package/lib/project/cli/cli-OPEN.backend.js +129 -0
- package/lib/project/cli/cli-OPEN.backend.js.map +1 -0
- package/lib/project/cli/cli-RELEASE.backend.d.ts +4 -0
- package/lib/project/cli/cli-RELEASE.backend.js +415 -0
- package/lib/project/cli/cli-RELEASE.backend.js.map +1 -0
- package/lib/project/cli/cli-SERVICE.backend.d.ts +9 -0
- package/lib/project/cli/cli-SERVICE.backend.js +38 -0
- package/lib/project/cli/cli-SERVICE.backend.js.map +1 -0
- package/lib/project/cli/cli-START.backend.d.ts +2 -0
- package/lib/project/cli/cli-START.backend.js +4 -0
- package/lib/project/cli/cli-START.backend.js.map +1 -0
- package/lib/project/cli/cli-TEST.backend.d.ts +24 -0
- package/lib/project/cli/cli-TEST.backend.js +292 -0
- package/lib/project/cli/cli-TEST.backend.js.map +1 -0
- package/lib/project/cli/cli-TS.backend.d.ts +9 -0
- package/lib/project/cli/cli-TS.backend.js +29 -0
- package/lib/project/cli/cli-TS.backend.js.map +1 -0
- package/lib/project/cli/cli-UPDATE.backend.d.ts +2 -0
- package/lib/project/cli/cli-UPDATE.backend.js +4 -0
- package/lib/project/cli/cli-UPDATE.backend.js.map +1 -0
- package/lib/project/cli/cli-VSCODE.backend.d.ts +20 -0
- package/lib/project/cli/cli-VSCODE.backend.js +153 -0
- package/lib/project/cli/cli-VSCODE.backend.js.map +1 -0
- package/lib/project/cli/cli-_GLOBAL_.backend.d.ts +91 -0
- package/lib/project/cli/cli-_GLOBAL_.backend.js +1730 -0
- package/lib/project/cli/cli-_GLOBAL_.backend.js.map +1 -0
- package/lib/project/cli/cli-_GLOBAL_.js +1 -1
- package/lib/project/cli/cli-_GLOBAL_.js.map +1 -1
- package/lib/project/compilers/assets-list-file-generator/assets-list-file-generator.backend.d.ts +21 -0
- package/lib/project/compilers/assets-list-file-generator/assets-list-file-generator.backend.js +150 -0
- package/lib/project/compilers/assets-list-file-generator/assets-list-file-generator.backend.js.map +1 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/browser-code-cut.backend.d.ts +102 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/browser-code-cut.backend.js +990 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/browser-code-cut.backend.js.map +1 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/code-cut.backend.d.ts +41 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/code-cut.backend.js +85 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/code-cut.backend.js.map +1 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/code-split-process.enum.d.ts +44 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/code-split-process.enum.js +98 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/code-split-process.enum.js.map +1 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/cut-fn.backend.d.ts +1 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/cut-fn.backend.js +18 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/cut-fn.backend.js.map +1 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/file-split-process.d.ts +14 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/file-split-process.js +159 -0
- package/lib/project/compilers/build-isomorphic-lib/code-cut/file-split-process.js.map +1 -0
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-backend.backend.d.ts +60 -0
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-backend.backend.js +284 -0
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-backend.backend.js.map +1 -0
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-browser.backend.d.ts +42 -0
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-browser.backend.js +232 -0
- package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-browser.backend.js.map +1 -0
- package/lib/project/compilers/build-isomorphic-lib/compilations/incremental-build-process.backend.d.ts +18 -0
- package/lib/project/compilers/build-isomorphic-lib/compilations/incremental-build-process.backend.js +165 -0
- package/lib/project/compilers/build-isomorphic-lib/compilations/incremental-build-process.backend.js.map +1 -0
- package/lib/project/compilers/index.d.ts +1 -0
- package/lib/project/compilers/index.js +8 -0
- package/lib/project/compilers/index.js.map +1 -0
- package/lib/project/features/assets-manager.backend.d.ts +5 -0
- package/lib/project/features/assets-manager.backend.js +110 -0
- package/lib/project/features/assets-manager.backend.js.map +1 -0
- package/lib/project/features/basename-manager.d.ts +18 -0
- package/lib/project/features/basename-manager.js +89 -0
- package/lib/project/features/basename-manager.js.map +1 -0
- package/lib/project/features/branding.backend.d.ts +11 -0
- package/lib/project/features/branding.backend.js +213 -0
- package/lib/project/features/branding.backend.js.map +1 -0
- package/lib/project/features/build-process/app/build-process/backend/build-process-backend.d.ts +14 -0
- package/lib/project/features/build-process/app/build-process/backend/build-process-backend.js +44 -0
- package/lib/project/features/build-process/app/build-process/backend/build-process-backend.js.map +1 -0
- package/lib/project/features/build-process/app/build-process/backend/build-process-backend.test.d.ts +0 -0
- package/lib/project/features/build-process/app/build-process/backend/build-process-backend.test.js +2 -0
- package/lib/project/features/build-process/app/build-process/backend/build-process-backend.test.js.map +1 -0
- package/lib/project/features/build-process/app/build-process/build-process.controller.d.ts +20 -0
- package/lib/project/features/build-process/app/build-process/build-process.controller.js +159 -0
- package/lib/project/features/build-process/app/build-process/build-process.controller.js.map +1 -0
- package/lib/project/features/build-process/app/build-process/build-process.d.ts +12 -0
- package/lib/project/features/build-process/app/build-process/build-process.js +56 -0
- package/lib/project/features/build-process/app/build-process/build-process.js.map +1 -0
- package/lib/project/features/build-process/app/build-process/index.d.ts +2 -0
- package/lib/project/features/build-process/app/build-process/index.js +6 -0
- package/lib/project/features/build-process/app/build-process/index.js.map +1 -0
- package/lib/project/features/copy-manager/base-copy-manager.backend.d.ts +87 -0
- package/lib/project/features/copy-manager/base-copy-manager.backend.js +504 -0
- package/lib/project/features/copy-manager/base-copy-manager.backend.js.map +1 -0
- package/lib/project/features/copy-manager/copy-manager-helpers.backend.d.ts +12 -0
- package/lib/project/features/copy-manager/copy-manager-helpers.backend.js +96 -0
- package/lib/project/features/copy-manager/copy-manager-helpers.backend.js.map +1 -0
- package/lib/project/features/copy-manager/copy-manager-organization-angular-files.backend.d.ts +49 -0
- package/lib/project/features/copy-manager/copy-manager-organization-angular-files.backend.js +321 -0
- package/lib/project/features/copy-manager/copy-manager-organization-angular-files.backend.js.map +1 -0
- package/lib/project/features/copy-manager/copy-manager-organization.backend.d.ts +78 -0
- package/lib/project/features/copy-manager/copy-manager-organization.backend.js +788 -0
- package/lib/project/features/copy-manager/copy-manager-organization.backend.js.map +1 -0
- package/lib/project/features/copy-manager/copy-manager-standalone.backend.d.ts +77 -0
- package/lib/project/features/copy-manager/copy-manager-standalone.backend.js +575 -0
- package/lib/project/features/copy-manager/copy-manager-standalone.backend.js.map +1 -0
- package/lib/project/features/copy-manager/copy-manager.backend.d.ts +7 -0
- package/lib/project/features/copy-manager/copy-manager.backend.js +27 -0
- package/lib/project/features/copy-manager/copy-manager.backend.js.map +1 -0
- package/lib/project/features/copy-manager/mjs-fesm-module-spliter.backend.d.ts +46 -0
- package/lib/project/features/copy-manager/mjs-fesm-module-spliter.backend.js +354 -0
- package/lib/project/features/copy-manager/mjs-fesm-module-spliter.backend.js.map +1 -0
- package/lib/project/features/copy-manager/source-maping-url.backend.d.ts +12 -0
- package/lib/project/features/copy-manager/source-maping-url.backend.js +56 -0
- package/lib/project/features/copy-manager/source-maping-url.backend.js.map +1 -0
- package/lib/project/features/copy-manager/typescript-dts-fixer.backend.d.ts +25 -0
- package/lib/project/features/copy-manager/typescript-dts-fixer.backend.js +97 -0
- package/lib/project/features/copy-manager/typescript-dts-fixer.backend.js.map +1 -0
- package/lib/project/features/docs-app-build-config.backend.d.ts +19 -0
- package/lib/project/features/docs-app-build-config.backend.js +81 -0
- package/lib/project/features/docs-app-build-config.backend.js.map +1 -0
- package/lib/project/features/docs-provider.d.ts +9 -0
- package/lib/project/features/docs-provider.js +48 -0
- package/lib/project/features/docs-provider.js.map +1 -0
- package/lib/project/features/documentation-builder.d.ts +0 -0
- package/lib/project/features/documentation-builder.js +5 -0
- package/lib/project/features/documentation-builder.js.map +1 -0
- package/lib/project/features/environment-config/environment-config-helpers.d.ts +6 -0
- package/lib/project/features/environment-config/environment-config-helpers.js +197 -0
- package/lib/project/features/environment-config/environment-config-helpers.js.map +1 -0
- package/lib/project/features/environment-config/environment-config.d.ts +12 -0
- package/lib/project/features/environment-config/environment-config.js +117 -0
- package/lib/project/features/environment-config/environment-config.js.map +1 -0
- package/lib/project/features/environment-config/example-environment-config.d.ts +2 -0
- package/lib/project/features/environment-config/example-environment-config.js +26 -0
- package/lib/project/features/environment-config/example-environment-config.js.map +1 -0
- package/lib/project/features/files-recreation/files-factory.backend.d.ts +11 -0
- package/lib/project/features/files-recreation/files-factory.backend.js +64 -0
- package/lib/project/features/files-recreation/files-factory.backend.js.map +1 -0
- package/lib/project/features/files-recreation/files-recreator.d.ts +113 -0
- package/lib/project/features/files-recreation/files-recreator.js +661 -0
- package/lib/project/features/files-recreation/files-recreator.js.map +1 -0
- package/lib/project/features/files-recreation/files-templates.d.ts +8 -0
- package/lib/project/features/files-recreation/files-templates.js +129 -0
- package/lib/project/features/files-recreation/files-templates.js.map +1 -0
- package/lib/project/features/files-recreation/index.d.ts +3 -0
- package/lib/project/features/files-recreation/index.js +9 -0
- package/lib/project/features/files-recreation/index.js.map +1 -0
- package/lib/project/features/html-to-md.d.ts +1 -0
- package/lib/project/features/html-to-md.js +241 -0
- package/lib/project/features/html-to-md.js.map +1 -0
- package/lib/project/features/index-autogen-provider.backend.d.ts +14 -0
- package/lib/project/features/index-autogen-provider.backend.js +102 -0
- package/lib/project/features/index-autogen-provider.backend.js.map +1 -0
- package/lib/project/features/index.d.ts +12 -0
- package/lib/project/features/index.js +18 -0
- package/lib/project/features/index.js.map +1 -0
- package/lib/project/features/inside-structures/inside-struct.d.ts +43 -0
- package/lib/project/features/inside-structures/inside-struct.js +53 -0
- package/lib/project/features/inside-structures/inside-struct.js.map +1 -0
- package/lib/project/features/inside-structures/inside-structures.d.ts +11 -0
- package/lib/project/features/inside-structures/inside-structures.js +160 -0
- package/lib/project/features/inside-structures/inside-structures.js.map +1 -0
- package/lib/project/features/inside-structures/structs/base-inside-struct.d.ts +13 -0
- package/lib/project/features/inside-structures/structs/base-inside-struct.js +24 -0
- package/lib/project/features/inside-structures/structs/base-inside-struct.js.map +1 -0
- package/lib/project/features/inside-structures/structs/index.d.ts +2 -0
- package/lib/project/features/inside-structures/structs/index.js +6 -0
- package/lib/project/features/inside-structures/structs/index.js.map +1 -0
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-app.d.ts +6 -0
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-app.js +495 -0
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-app.js.map +1 -0
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-lib.d.ts +6 -0
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-lib.js +240 -0
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-lib.js.map +1 -0
- package/lib/project/features/inside-structures/structs/inside-struct-constants.d.ts +2 -0
- package/lib/project/features/inside-structures/structs/inside-struct-constants.js +6 -0
- package/lib/project/features/inside-structures/structs/inside-struct-constants.js.map +1 -0
- package/lib/project/features/inside-structures/structs/inside-struct-helpers.d.ts +12 -0
- package/lib/project/features/inside-structures/structs/inside-struct-helpers.js +128 -0
- package/lib/project/features/inside-structures/structs/inside-struct-helpers.js.map +1 -0
- package/lib/project/features/inside-structures/structs/loaders/image-loader.d.ts +1 -0
- package/lib/project/features/inside-structures/structs/loaders/image-loader.js +9 -0
- package/lib/project/features/inside-structures/structs/loaders/image-loader.js.map +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-default.d.ts +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-default.js +10 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-default.js.map +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-ellipsis.d.ts +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-ellipsis.js +10 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-ellipsis.js.map +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-facebook.d.ts +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-facebook.js +10 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-facebook.js.map +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-grid.d.ts +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-grid.js +10 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-grid.js.map +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-heart.d.ts +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-heart.js +10 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-heart.js.map +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-ripple.d.ts +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-ripple.js +10 -0
- package/lib/project/features/inside-structures/structs/loaders/loader-ids-ripple.js.map +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loaders.d.ts +1 -0
- package/lib/project/features/inside-structures/structs/loaders/loaders.js +27 -0
- package/lib/project/features/inside-structures/structs/loaders/loaders.js.map +1 -0
- package/lib/project/features/lib-project/lib-project-base.backend.d.ts +14 -0
- package/lib/project/features/lib-project/lib-project-base.backend.js +120 -0
- package/lib/project/features/lib-project/lib-project-base.backend.js.map +1 -0
- package/lib/project/features/lib-project/lib-project-smart-container.backend.d.ts +13 -0
- package/lib/project/features/lib-project/lib-project-smart-container.backend.js +320 -0
- package/lib/project/features/lib-project/lib-project-smart-container.backend.js.map +1 -0
- package/lib/project/features/lib-project/lib-project-standalone.backend.d.ts +13 -0
- package/lib/project/features/lib-project/lib-project-standalone.backend.js +269 -0
- package/lib/project/features/lib-project/lib-project-standalone.backend.js.map +1 -0
- package/lib/project/features/lib-project/lib-project-vscode-ext.d.ts +11 -0
- package/lib/project/features/lib-project/lib-project-vscode-ext.js +128 -0
- package/lib/project/features/lib-project/lib-project-vscode-ext.js.map +1 -0
- package/lib/project/features/linked-repos.backend.d.ts +19 -0
- package/lib/project/features/linked-repos.backend.js +198 -0
- package/lib/project/features/linked-repos.backend.js.map +1 -0
- package/lib/project/features/node-modules/index.d.ts +1 -0
- package/lib/project/features/node-modules/index.js +7 -0
- package/lib/project/features/node-modules/index.js.map +1 -0
- package/lib/project/features/node-modules/node-modules-helpers.backend.d.ts +3 -0
- package/lib/project/features/node-modules/node-modules-helpers.backend.js +159 -0
- package/lib/project/features/node-modules/node-modules-helpers.backend.js.map +1 -0
- package/lib/project/features/node-modules/node-modules.d.ts +29 -0
- package/lib/project/features/node-modules/node-modules.js +350 -0
- package/lib/project/features/node-modules/node-modules.js.map +1 -0
- package/lib/project/features/npm-packages/index.d.ts +1 -0
- package/lib/project/features/npm-packages/index.js +7 -0
- package/lib/project/features/npm-packages/index.js.map +1 -0
- package/lib/project/features/npm-packages/npm-packages-base.backend.d.ts +6 -0
- package/lib/project/features/npm-packages/npm-packages-base.backend.js +159 -0
- package/lib/project/features/npm-packages/npm-packages-base.backend.js.map +1 -0
- package/lib/project/features/npm-packages/npm-packages-core.backend.d.ts +15 -0
- package/lib/project/features/npm-packages/npm-packages-core.backend.js +166 -0
- package/lib/project/features/npm-packages/npm-packages-core.backend.js.map +1 -0
- package/lib/project/features/npm-packages/npm-packages-helpers.backend.d.ts +7 -0
- package/lib/project/features/npm-packages/npm-packages-helpers.backend.js +85 -0
- package/lib/project/features/npm-packages/npm-packages-helpers.backend.js.map +1 -0
- package/lib/project/features/npm-packages/npm-packages.d.ts +5 -0
- package/lib/project/features/npm-packages/npm-packages.js +72 -0
- package/lib/project/features/npm-packages/npm-packages.js.map +1 -0
- package/lib/project/features/package-json/index.d.ts +1 -0
- package/lib/project/features/package-json/index.js +5 -0
- package/lib/project/features/package-json/index.js.map +1 -0
- package/lib/project/features/package-json/package-json-base.backend.d.ts +31 -0
- package/lib/project/features/package-json/package-json-base.backend.js +157 -0
- package/lib/project/features/package-json/package-json-base.backend.js.map +1 -0
- package/lib/project/features/package-json/package-json-core.backend.d.ts +56 -0
- package/lib/project/features/package-json/package-json-core.backend.js +369 -0
- package/lib/project/features/package-json/package-json-core.backend.js.map +1 -0
- package/lib/project/features/package-json/package-json-deps-categories.backend.d.ts +17 -0
- package/lib/project/features/package-json/package-json-deps-categories.backend.js +145 -0
- package/lib/project/features/package-json/package-json-deps-categories.backend.js.map +1 -0
- package/lib/project/features/package-json/package-json-helpers.backend.d.ts +14 -0
- package/lib/project/features/package-json/package-json-helpers.backend.js +766 -0
- package/lib/project/features/package-json/package-json-helpers.backend.js.map +1 -0
- package/lib/project/features/package-json/package-json.d.ts +6 -0
- package/lib/project/features/package-json/package-json.js +66 -0
- package/lib/project/features/package-json/package-json.js.map +1 -0
- package/lib/project/features/package-recognition/packages-recognition.d.ts +13 -0
- package/lib/project/features/package-recognition/packages-recognition.js +187 -0
- package/lib/project/features/package-recognition/packages-recognition.js.map +1 -0
- package/lib/project/features/quick-fixes.d.ts +29 -0
- package/lib/project/features/quick-fixes.js +433 -0
- package/lib/project/features/quick-fixes.js.map +1 -0
- package/lib/project/features/singular-build.backend.d.ts +18 -0
- package/lib/project/features/singular-build.backend.js +375 -0
- package/lib/project/features/singular-build.backend.js.map +1 -0
- package/lib/project/features/target-project.backend.d.ts +10 -0
- package/lib/project/features/target-project.backend.js +189 -0
- package/lib/project/features/target-project.backend.js.map +1 -0
- package/lib/project/features/test-runner/cypress-test-runner.d.ts +7 -0
- package/lib/project/features/test-runner/cypress-test-runner.js +84 -0
- package/lib/project/features/test-runner/cypress-test-runner.js.map +1 -0
- package/lib/project/features/test-runner/index.d.ts +3 -0
- package/lib/project/features/test-runner/index.js +7 -0
- package/lib/project/features/test-runner/index.js.map +1 -0
- package/lib/project/features/test-runner/jest-test-runner.d.ts +8 -0
- package/lib/project/features/test-runner/jest-test-runner.js +69 -0
- package/lib/project/features/test-runner/jest-test-runner.js.map +1 -0
- package/lib/project/features/test-runner/mocha-test-runner.d.ts +7 -0
- package/lib/project/features/test-runner/mocha-test-runner.js +66 -0
- package/lib/project/features/test-runner/mocha-test-runner.js.map +1 -0
- package/lib/project/features/webpack-backend-compilation.backend.d.ts +14 -0
- package/lib/project/features/webpack-backend-compilation.backend.js +68 -0
- package/lib/project/features/webpack-backend-compilation.backend.js.map +1 -0
- package/lib/project/index.js +2 -2
- package/lib/taon-models.d.ts +72 -0
- package/migrations/1735324537544_pierwsza.d.ts +1 -0
- package/migrations/1735324537544_pierwsza.js +3 -0
- package/migrations/1735324537544_pierwsza.js.map +1 -0
- package/migrations/1735324809552_pierwsza.d.ts +6 -0
- package/migrations/1735324809552_pierwsza.js +33 -0
- package/migrations/1735324809552_pierwsza.js.map +1 -0
- package/migrations/1735324983861_druga.d.ts +6 -0
- package/migrations/1735324983861_druga.js +33 -0
- package/migrations/1735324983861_druga.js.map +1 -0
- package/migrations/1737301578918_addingSampleData.d.ts +32 -0
- package/migrations/1737301578918_addingSampleData.js +111 -0
- package/migrations/1737301578918_addingSampleData.js.map +1 -0
- package/package.json +1 -1
- package/tmp-environment.json +3 -3
- package/websql/fesm2022/tnp.mjs +2 -4
- package/websql/fesm2022/tnp.mjs.map +1 -1
- package/websql/lib/build-info._auto-generated_.d.ts +1 -1
- package/websql/lib/models.d.ts +9 -0
- package/websql/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.d.ts +0 -1
- package/websql/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.d.ts +1 -1
- package/websql/lib/project/abstract/artifacts/base-artifact.d.ts +1 -0
- package/websql/lib/project/abstract/artifacts/docs-webapp/artifact-docs-webapp.d.ts +1 -0
- package/websql/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/base-copy-manager.d.ts +1 -1
- package/websql/lib/project/abstract/git.d.ts +1 -0
- package/websql/lib/project/abstract/taonJson.d.ts +1 -0
- package/websql/package.json +1 -1
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
//#region imports
|
|
5
|
+
var tnp_core_1 = require("tnp-core");
|
|
6
|
+
var tnp_helpers_1 = require("tnp-helpers");
|
|
7
|
+
var tnp_helpers_2 = require("tnp-helpers");
|
|
8
|
+
var tnp_config_1 = require("tnp-config");
|
|
9
|
+
//#endregion
|
|
10
|
+
var $Migration = /** @class */ (function (_super) {
|
|
11
|
+
tslib_1.__extends($Migration, _super);
|
|
12
|
+
function $Migration() {
|
|
13
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
14
|
+
}
|
|
15
|
+
//#region migration console menu
|
|
16
|
+
$Migration.prototype._ = function () {
|
|
17
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
18
|
+
var options, resp, migrationName, allMigrationsOptions, detectedContexts, migrationTimestamp;
|
|
19
|
+
return tslib_1.__generator(this, function (_a) {
|
|
20
|
+
switch (_a.label) {
|
|
21
|
+
case 0:
|
|
22
|
+
options = {
|
|
23
|
+
create: {
|
|
24
|
+
name: "Create migration file",
|
|
25
|
+
},
|
|
26
|
+
run: {
|
|
27
|
+
name: "Run all migrations",
|
|
28
|
+
},
|
|
29
|
+
revert: {
|
|
30
|
+
name: "Revert to migration timestamp",
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
return [4 /*yield*/, tnp_core_1.UtilsTerminal.select({
|
|
34
|
+
choices: options,
|
|
35
|
+
question: "What you wanna do with migrations?",
|
|
36
|
+
})];
|
|
37
|
+
case 1:
|
|
38
|
+
resp = _a.sent();
|
|
39
|
+
if (!(resp === 'create')) return [3 /*break*/, 4];
|
|
40
|
+
return [4 /*yield*/, tnp_core_1.UtilsTerminal.input({
|
|
41
|
+
question: "Migration name (as parameter)",
|
|
42
|
+
required: true,
|
|
43
|
+
})];
|
|
44
|
+
case 2:
|
|
45
|
+
migrationName = _a.sent();
|
|
46
|
+
return [4 /*yield*/, this.create(migrationName)];
|
|
47
|
+
case 3:
|
|
48
|
+
_a.sent();
|
|
49
|
+
return [3 /*break*/, 9];
|
|
50
|
+
case 4:
|
|
51
|
+
if (!(resp === 'run')) return [3 /*break*/, 6];
|
|
52
|
+
return [4 /*yield*/, this.run()];
|
|
53
|
+
case 5:
|
|
54
|
+
_a.sent();
|
|
55
|
+
return [3 /*break*/, 9];
|
|
56
|
+
case 6:
|
|
57
|
+
if (!(resp === 'revert')) return [3 /*break*/, 9];
|
|
58
|
+
allMigrationsOptions = tnp_helpers_1.Helpers.filesFrom(this.project.pathFor([tnp_config_1.config.folder.src, tnp_config_1.config.folder.migrations]))
|
|
59
|
+
.filter(function (f) {
|
|
60
|
+
var timestampRegex = /\d{13}/;
|
|
61
|
+
return f.endsWith('.ts') && timestampRegex.test(f);
|
|
62
|
+
})
|
|
63
|
+
.map(function (f) {
|
|
64
|
+
var timestamp;
|
|
65
|
+
try {
|
|
66
|
+
timestamp = Number(tnp_core_1.path.basename(f).match(/\d{13}/)[0]);
|
|
67
|
+
}
|
|
68
|
+
catch (error) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
if (!tnp_core_1.UtilsMigrations.isValidTimestamp(timestamp)) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
timestamp: timestamp,
|
|
76
|
+
name: tnp_core_1._.startCase(tnp_core_1.path.basename(f).replace("".concat(timestamp), '').replace('.ts', '')),
|
|
77
|
+
};
|
|
78
|
+
})
|
|
79
|
+
.filter(function (f) { return !!f; })
|
|
80
|
+
.map(function (f) {
|
|
81
|
+
return {
|
|
82
|
+
name: "(".concat(f.timestamp, ") ").concat(tnp_core_1.UtilsMigrations.formatTimestamp(f.timestamp), " [").concat(f.name, "]"),
|
|
83
|
+
value: f.timestamp,
|
|
84
|
+
};
|
|
85
|
+
})
|
|
86
|
+
.sort(function (a, b) {
|
|
87
|
+
return b.value - a.value;
|
|
88
|
+
});
|
|
89
|
+
detectedContexts = this._allDetectedDatabases();
|
|
90
|
+
console.info("\n\n Detected databases that can be reverted:\n\n".concat(detectedContexts.map(function (db) { return "- ".concat(db); }).join('\n'), "\n\n"));
|
|
91
|
+
return [4 /*yield*/, tnp_core_1.UtilsTerminal.select({
|
|
92
|
+
autocomplete: true,
|
|
93
|
+
choices: allMigrationsOptions,
|
|
94
|
+
question: "Choose migration to revert to",
|
|
95
|
+
})];
|
|
96
|
+
case 7:
|
|
97
|
+
migrationTimestamp = _a.sent();
|
|
98
|
+
return [4 /*yield*/, this.revert(migrationTimestamp)];
|
|
99
|
+
case 8:
|
|
100
|
+
_a.sent();
|
|
101
|
+
_a.label = 9;
|
|
102
|
+
case 9: return [2 /*return*/];
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region private methods
|
|
109
|
+
$Migration.prototype._allDetectedDatabases = function () {
|
|
110
|
+
var detectedDatabaseFiles = tnp_helpers_1.Helpers.filesFrom(this.project.location)
|
|
111
|
+
.map(function (f) { return tnp_core_1.path.basename(f); })
|
|
112
|
+
.filter(function (f) { return f.startsWith('db-') && f.endsWith('.sqlite'); });
|
|
113
|
+
return detectedDatabaseFiles;
|
|
114
|
+
};
|
|
115
|
+
$Migration.prototype._allDetectedNestedContexts = function () {
|
|
116
|
+
var detectedDatabaseFiles = tnp_helpers_1.Helpers.filesFrom(this.project.pathFor([tnp_config_1.config.folder.src]), true)
|
|
117
|
+
.filter(function (f) {
|
|
118
|
+
return tnp_core_1.path.basename(f) === 'app.ts' ||
|
|
119
|
+
f.endsWith('.worker.ts') ||
|
|
120
|
+
f.endsWith('.context.ts');
|
|
121
|
+
})
|
|
122
|
+
.reduce(function (a, b) {
|
|
123
|
+
return a.concat(tnp_helpers_1.UtilsTypescript.getTaonContextsNamesFromFile(b));
|
|
124
|
+
}, []);
|
|
125
|
+
return detectedDatabaseFiles;
|
|
126
|
+
};
|
|
127
|
+
$Migration.prototype._allDetectedContexts = function () {
|
|
128
|
+
var detectedContexts = tslib_1.__spreadArray(tslib_1.__spreadArray([], tslib_1.__read(this._allDetectedNestedContexts()), false), tslib_1.__read(this._allDetectedDatabases().map(function (f) {
|
|
129
|
+
return f.replace('.sqlite', '').replace('db-', '');
|
|
130
|
+
})), false);
|
|
131
|
+
return tnp_core_1.Utils.uniqArray(detectedContexts);
|
|
132
|
+
};
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region create
|
|
135
|
+
$Migration.prototype.create = function (migrationName) {
|
|
136
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
137
|
+
var timestamp, migrationFileName, detectedContexts, classes, absPathToNewMigrationFile;
|
|
138
|
+
return tslib_1.__generator(this, function (_a) {
|
|
139
|
+
console.info("\n\n ACTION: CREATING MIGRATION\n\n ");
|
|
140
|
+
timestamp = new Date().getTime();
|
|
141
|
+
migrationName = tnp_core_1._.camelCase(this.args.join(' ')) || migrationName;
|
|
142
|
+
if (!(migrationName || '').trim()) {
|
|
143
|
+
tnp_helpers_1.Helpers.error("Migration name (as parameter) is required.", false, true);
|
|
144
|
+
}
|
|
145
|
+
migrationFileName = "".concat(timestamp, "_").concat(migrationName, ".ts");
|
|
146
|
+
detectedContexts = this._allDetectedContexts();
|
|
147
|
+
if (detectedContexts.length === 0) {
|
|
148
|
+
tnp_helpers_1.Helpers.error("\n\n No context detected. ".concat(tnp_core_1.chalk.bold.underline('Please start locally your project first'), ".\n You must ").concat(tnp_core_1.chalk.underline('initialize'), " all your contexts (and databases)\n before creating a migration.\n\n Start you ").concat(tnp_core_1.chalk.bold('Visual Studio Code debugger'), " with ").concat(tnp_core_1.chalk.bold('F5'), "\n or\n use command: ").concat(tnp_core_1.chalk.bold(tnp_config_1.config.frameworkName), " ").concat(tnp_core_1.chalk.bold('run'), "\n\n .. and when every context is fully loaded - shut down process\n with ").concat(tnp_core_1.chalk.bold('ctrl + c'), " and try again creating migration from cli.\n\n "), false, true);
|
|
149
|
+
}
|
|
150
|
+
classes = detectedContexts.map(function (contextName) {
|
|
151
|
+
return "\n@Taon.Migration({\n className: '".concat(contextName, "_").concat(timestamp, "_").concat(migrationName, "',\n})\nexport class ").concat(contextName, "_").concat(timestamp, "_").concat(migrationName, " extends Taon.Base.Migration {\n\n /**\n * IMPORTANT !!!\n * remove this method if you are ready to run this migration\n */\n public isReadyToRun(): boolean {\n return false;\n }\n\n async up(queryRunner: QueryRunner): Promise<any> {\n // do \"something\" in db\n }\n\n async down(queryRunner: QueryRunner): Promise<any> {\n // revert this \"something\" in db\n }\n}\n ");
|
|
152
|
+
});
|
|
153
|
+
absPathToNewMigrationFile = this.project.pathFor([
|
|
154
|
+
tnp_config_1.config.folder.src,
|
|
155
|
+
tnp_config_1.config.folder.migrations,
|
|
156
|
+
migrationFileName,
|
|
157
|
+
]);
|
|
158
|
+
tnp_helpers_1.Helpers.writeFile(absPathToNewMigrationFile, "import { Taon } from 'taon';\n" +
|
|
159
|
+
"import { QueryRunner } from 'taon-typeorm';\n" +
|
|
160
|
+
"".concat(classes.join('\n\n')));
|
|
161
|
+
tnp_helpers_1.UtilsTypescript.formatFile(absPathToNewMigrationFile);
|
|
162
|
+
tnp_helpers_1.Helpers.info("Migration file created: ".concat(migrationFileName));
|
|
163
|
+
this._exit(0);
|
|
164
|
+
return [2 /*return*/];
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
};
|
|
168
|
+
//#endregion
|
|
169
|
+
//#region run
|
|
170
|
+
$Migration.prototype.run = function () {
|
|
171
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
172
|
+
return tslib_1.__generator(this, function (_a) {
|
|
173
|
+
console.info("\n\n ACTION: RUNNING MIGRATIONS\n\n ");
|
|
174
|
+
tnp_helpers_1.Helpers.run("node run.js --onlyMigrationRun", {
|
|
175
|
+
output: true,
|
|
176
|
+
silence: false,
|
|
177
|
+
}).sync();
|
|
178
|
+
this._exit(0);
|
|
179
|
+
return [2 /*return*/];
|
|
180
|
+
});
|
|
181
|
+
});
|
|
182
|
+
};
|
|
183
|
+
//#endregion
|
|
184
|
+
//#region revert
|
|
185
|
+
$Migration.prototype.revert = function (timestamp) {
|
|
186
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
187
|
+
return tslib_1.__generator(this, function (_a) {
|
|
188
|
+
console.info("\n\n ACTION: REVERTING MIGRATIONS\n\n ");
|
|
189
|
+
tnp_helpers_1.Helpers.run("node run.js --onlyMigrationRevertToTimestamp ".concat(this.firstArg || timestamp), {
|
|
190
|
+
output: true,
|
|
191
|
+
silence: false,
|
|
192
|
+
}).sync();
|
|
193
|
+
this._exit(0);
|
|
194
|
+
return [2 /*return*/];
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
};
|
|
198
|
+
//#endregion
|
|
199
|
+
$Migration.prototype.contexts = function () {
|
|
200
|
+
tnp_helpers_1.Helpers.taskStarted('Detecting contexts...');
|
|
201
|
+
var detectedContexts = this._allDetectedContexts();
|
|
202
|
+
tnp_helpers_1.Helpers.taskDone("\n\n Detected contexts:\n\n ");
|
|
203
|
+
detectedContexts.forEach(function (context) {
|
|
204
|
+
console.info("- ".concat(context));
|
|
205
|
+
});
|
|
206
|
+
this._exit(0);
|
|
207
|
+
};
|
|
208
|
+
return $Migration;
|
|
209
|
+
}(tnp_helpers_2.BaseCommandLineFeature));
|
|
210
|
+
exports.default = {
|
|
211
|
+
$Migration: tnp_helpers_1.Helpers.CLIWRAP($Migration, '$Migration'),
|
|
212
|
+
};
|
|
213
|
+
//# sourceMappingURL=cli-MIGRATION.backend.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-MIGRATION.backend.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/tnp/src/lib/project/cli/cli-MIGRATION.backend.ts"],"names":[],"mappings":";;;AAAA,iBAAiB;AACjB,qCAQkB;AAClB,2CAAuD;AACvD,2CAAqD;AAGrD,yCAAoC;AACpC,YAAY;AAEZ;IAAyB,sCAA+C;IAAxE;;IAoPA,CAAC;IAnPC,gCAAgC;IACnB,sBAAC,GAAd;;;;;;wBACQ,OAAO,GAAG;4BACd,MAAM,EAAE;gCACN,IAAI,EAAE,uBAAuB;6BAC9B;4BACD,GAAG,EAAE;gCACH,IAAI,EAAE,oBAAoB;6BAC3B;4BACD,MAAM,EAAE;gCACN,IAAI,EAAE,+BAA+B;6BACtC;yBACF,CAAC;wBAEW,qBAAM,wBAAa,CAAC,MAAM,CAAuB;gCAC5D,OAAO,EAAE,OAAO;gCAChB,QAAQ,EAAE,oCAAoC;6BAC/C,CAAC,EAAA;;wBAHI,IAAI,GAAG,SAGX;6BAEE,CAAA,IAAI,KAAK,QAAQ,CAAA,EAAjB,wBAAiB;wBACG,qBAAM,wBAAa,CAAC,KAAK,CAAC;gCAC9C,QAAQ,EAAE,+BAA+B;gCACzC,QAAQ,EAAE,IAAI;6BACf,CAAC,EAAA;;wBAHI,aAAa,GAAG,SAGpB;wBACF,qBAAM,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,EAAA;;wBAAhC,SAAgC,CAAC;;;6BACxB,CAAA,IAAI,KAAK,KAAK,CAAA,EAAd,wBAAc;wBACvB,qBAAM,IAAI,CAAC,GA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AAED,kBAAe;IACb,UAAU,EAAE,qBAAO,CAAC,OAAO,CAAC,UAAU,EAAE,YAAY,CAAC;CACtD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseCommandLineFeature } from 'tnp-helpers';
|
|
2
|
+
import { Project } from '../abstract/project';
|
|
3
|
+
import { NewOptions } from '../../options';
|
|
4
|
+
import { Models } from '../../models';
|
|
5
|
+
export declare class $New extends BaseCommandLineFeature<NewOptions, Project> {
|
|
6
|
+
_(): Promise<void>;
|
|
7
|
+
private _errorMsgCreateProject;
|
|
8
|
+
private _fixOptions_create;
|
|
9
|
+
_createModelFromArgs(args: string, exit: boolean, cwd: string): void;
|
|
10
|
+
_containerStandaloneFromArgs(args: string): Promise<void>;
|
|
11
|
+
private _addRemoteToStandalone;
|
|
12
|
+
private _initContainersAndApps;
|
|
13
|
+
_createContainersOrStandalone(options: Models.NewSiteOptions): Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: {
|
|
16
|
+
$New: Function;
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.$New = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
//#region @backend
|
|
6
|
+
var tnp_core_1 = require("tnp-core");
|
|
7
|
+
var tnp_helpers_1 = require("tnp-helpers");
|
|
8
|
+
var tnp_helpers_2 = require("tnp-helpers");
|
|
9
|
+
var project_1 = require("../abstract/project");
|
|
10
|
+
var options_1 = require("../../options");
|
|
11
|
+
var constants_1 = require("../../constants");
|
|
12
|
+
var tnp_config_1 = require("tnp-config");
|
|
13
|
+
var $New = /** @class */ (function (_super) {
|
|
14
|
+
tslib_1.__extends($New, _super);
|
|
15
|
+
function $New() {
|
|
16
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
17
|
+
}
|
|
18
|
+
$New.prototype._ = function () {
|
|
19
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
20
|
+
return tslib_1.__generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4 /*yield*/, this._containerStandaloneFromArgs(this.args.join(' '))];
|
|
23
|
+
case 1:
|
|
24
|
+
_a.sent();
|
|
25
|
+
return [2 /*return*/];
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
//#region error messages
|
|
31
|
+
$New.prototype._errorMsgCreateProject = function () {
|
|
32
|
+
tnp_helpers_1.Helpers.log(tnp_core_1.chalk.green("Good examples:"));
|
|
33
|
+
tnp_helpers_1.Helpers.log("\t".concat(tnp_core_1.chalk.gray("".concat(tnp_config_1.config.frameworkName, " new")), " ").concat(tnp_core_1.chalk.gray('mySuperLib')));
|
|
34
|
+
tnp_helpers_1.Helpers.error(tnp_core_1.chalk.red("Please use example above."), false, true);
|
|
35
|
+
};
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region fix options
|
|
38
|
+
$New.prototype._fixOptions_create = function (options) {
|
|
39
|
+
if (tnp_core_1._.isNil(options)) {
|
|
40
|
+
options = {};
|
|
41
|
+
}
|
|
42
|
+
if (tnp_core_1._.isNil(options.version)) {
|
|
43
|
+
options.version = tnp_config_1.config.defaultFrameworkVersion; // OK
|
|
44
|
+
}
|
|
45
|
+
if (tnp_core_1._.isNil(options.skipInit)) {
|
|
46
|
+
options.skipInit = true;
|
|
47
|
+
}
|
|
48
|
+
if (!tnp_core_1._.isArray(options.alsoBasedOn)) {
|
|
49
|
+
options.alsoBasedOn = [];
|
|
50
|
+
}
|
|
51
|
+
return options;
|
|
52
|
+
};
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region create models
|
|
55
|
+
$New.prototype._createModelFromArgs = function (args, exit, cwd) {
|
|
56
|
+
if (exit === void 0) { exit = true; }
|
|
57
|
+
var argv = args.split(' ');
|
|
58
|
+
var name = argv[1];
|
|
59
|
+
var relativePath = argv[2];
|
|
60
|
+
project_1.Project.ins.From(cwd).__filesFactory.createModel(relativePath, name);
|
|
61
|
+
this._exit();
|
|
62
|
+
};
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region container / standalone
|
|
65
|
+
$New.prototype._containerStandaloneFromArgs = function (args) {
|
|
66
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
67
|
+
var argv, _a, basedOn, version, skipInit, type, name;
|
|
68
|
+
return tslib_1.__generator(this, function (_b) {
|
|
69
|
+
switch (_b.label) {
|
|
70
|
+
case 0:
|
|
71
|
+
argv = args.split(' ');
|
|
72
|
+
if (!tnp_core_1._.isArray(argv) || argv.length < 1) {
|
|
73
|
+
tnp_helpers_1.Helpers.error("Top few argument for ".concat(tnp_core_1.chalk.black('init'), " parameter."), true);
|
|
74
|
+
this._errorMsgCreateProject();
|
|
75
|
+
}
|
|
76
|
+
_a = require('minimist')(args.split(' ')), basedOn = _a.basedOn, version = _a.version, skipInit = _a.skipInit;
|
|
77
|
+
type = 'isomorphic-lib';
|
|
78
|
+
name = argv[0];
|
|
79
|
+
return [4 /*yield*/, this._createContainersOrStandalone({
|
|
80
|
+
type: type,
|
|
81
|
+
name: name,
|
|
82
|
+
cwd: this.cwd,
|
|
83
|
+
basedOn: void 0,
|
|
84
|
+
version: tnp_core_1._.isString(version) && version.startsWith('v') ? version : void 0,
|
|
85
|
+
skipInit: skipInit,
|
|
86
|
+
})];
|
|
87
|
+
case 1:
|
|
88
|
+
_b.sent();
|
|
89
|
+
this._exit();
|
|
90
|
+
return [2 /*return*/];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region add remote to standalone
|
|
97
|
+
$New.prototype._addRemoteToStandalone = function (appProj) {
|
|
98
|
+
var _a;
|
|
99
|
+
if (appProj.__isStandaloneProject && !appProj.__isSmartContainerChild) {
|
|
100
|
+
var lastContainer = appProj.parent;
|
|
101
|
+
var ADDRESS_GITHUB_SSH_PARENT = (_a = lastContainer === null || lastContainer === void 0 ? void 0 : lastContainer.git) === null || _a === void 0 ? void 0 : _a.originURL;
|
|
102
|
+
var newRemote = ADDRESS_GITHUB_SSH_PARENT === null || ADDRESS_GITHUB_SSH_PARENT === void 0 ? void 0 : ADDRESS_GITHUB_SSH_PARENT.replace("".concat(lastContainer.name, ".git"), "".concat(appProj.name, ".git"));
|
|
103
|
+
if (newRemote) {
|
|
104
|
+
try {
|
|
105
|
+
appProj
|
|
106
|
+
.run('git remote add origin ' + newRemote, {
|
|
107
|
+
output: false,
|
|
108
|
+
silence: true,
|
|
109
|
+
})
|
|
110
|
+
.sync();
|
|
111
|
+
appProj
|
|
112
|
+
.run('git add --all . && git commit -m "first"', {
|
|
113
|
+
output: false,
|
|
114
|
+
silence: true,
|
|
115
|
+
})
|
|
116
|
+
.sync();
|
|
117
|
+
}
|
|
118
|
+
catch (error) { }
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
//#endregion
|
|
123
|
+
//#region init containers
|
|
124
|
+
$New.prototype._initContainersAndApps = function (cwd, nameFromArgs, version) {
|
|
125
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
126
|
+
var allProjectFromArgs, hasAutoCreateNormalContainersFromArgs, hasAtLeastOneContainersFromArgs, standaloneOrOrgWithStanalonePathName, autoCreateNormalContainersPathName, lastProjectFromArgName, notAllowedNameForApp, firstContainer, lastContainer, lastIsBrandNew, lastSmart, grandpa, containers, foldersToRecreate, tmpCwd, parentContainer, currentContainer, folder, isLastContainer, currentContainerPath, isBrandNew, packageJsonPath_1, smart, monorepo, displayNameForLastContainerBeforeApp, smartContainerBuildTarget, appProj, appLocation, packageJsonPath;
|
|
127
|
+
var _a;
|
|
128
|
+
return tslib_1.__generator(this, function (_b) {
|
|
129
|
+
switch (_b.label) {
|
|
130
|
+
case 0:
|
|
131
|
+
nameFromArgs = nameFromArgs.replace('./', '');
|
|
132
|
+
nameFromArgs = nameFromArgs.replace('.\\', '');
|
|
133
|
+
nameFromArgs = nameFromArgs.replace(/\/$/, '');
|
|
134
|
+
nameFromArgs = nameFromArgs.replace(/\\$/, '');
|
|
135
|
+
nameFromArgs = nameFromArgs.replace(/\\$/g, '/');
|
|
136
|
+
allProjectFromArgs = nameFromArgs.includes('/')
|
|
137
|
+
? nameFromArgs.split('/')
|
|
138
|
+
: [nameFromArgs];
|
|
139
|
+
hasAutoCreateNormalContainersFromArgs = allProjectFromArgs.length > 2;
|
|
140
|
+
hasAtLeastOneContainersFromArgs = allProjectFromArgs.length > 1;
|
|
141
|
+
standaloneOrOrgWithStanalonePathName = (0, tnp_core_1.crossPlatformPath)([
|
|
142
|
+
tnp_core_1.path.basename(tnp_core_1.path.dirname(allProjectFromArgs.join('/'))),
|
|
143
|
+
tnp_core_1.path.basename(allProjectFromArgs.join('/')),
|
|
144
|
+
]);
|
|
145
|
+
autoCreateNormalContainersPathName = (hasAutoCreateNormalContainersFromArgs
|
|
146
|
+
? allProjectFromArgs
|
|
147
|
+
.join('/')
|
|
148
|
+
.replace(standaloneOrOrgWithStanalonePathName, '')
|
|
149
|
+
: '').replace(/\/$/, '');
|
|
150
|
+
lastProjectFromArgName = allProjectFromArgs.length > 0
|
|
151
|
+
? tnp_core_1._.last(allProjectFromArgs) // last org proj
|
|
152
|
+
: tnp_core_1._.first(allProjectFromArgs);
|
|
153
|
+
notAllowedNameForApp = constants_1.notAllowedProjectNames.find(function (a) { return a === lastProjectFromArgName; });
|
|
154
|
+
if (!!notAllowedNameForApp) {
|
|
155
|
+
tnp_helpers_1.Helpers.error("\n\n Name ".concat(tnp_core_1.chalk.bold(notAllowedNameForApp), " is not allowed.\n\n Use different name: ").concat(tnp_core_1.chalk.bold((0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.dirname(allProjectFromArgs.join('/'))).replace(notAllowedNameForApp, 'my-app-or-something-else')), "\n\n "), false, true);
|
|
156
|
+
}
|
|
157
|
+
lastIsBrandNew = false;
|
|
158
|
+
lastSmart = false;
|
|
159
|
+
grandpa = project_1.Project.ins.From(cwd);
|
|
160
|
+
containers = tslib_1.__spreadArray([], tslib_1.__read((grandpa && grandpa.__isContainer ? [grandpa] : [])), false);
|
|
161
|
+
if (!hasAtLeastOneContainersFromArgs) return [3 /*break*/, 7];
|
|
162
|
+
foldersToRecreate = tnp_core_1._.cloneDeep(allProjectFromArgs).slice(0, allProjectFromArgs.length - 1);
|
|
163
|
+
tmpCwd = cwd;
|
|
164
|
+
parentContainer = project_1.Project.ins.From(cwd);
|
|
165
|
+
currentContainer = void 0;
|
|
166
|
+
_b.label = 1;
|
|
167
|
+
case 1:
|
|
168
|
+
folder = foldersToRecreate.shift();
|
|
169
|
+
isLastContainer = foldersToRecreate.length === 0;
|
|
170
|
+
currentContainerPath = tnp_core_1.path.join(tmpCwd, folder);
|
|
171
|
+
isBrandNew = !tnp_helpers_1.Helpers.exists(currentContainerPath);
|
|
172
|
+
if (isBrandNew) {
|
|
173
|
+
tnp_helpers_1.Helpers.mkdirp(currentContainerPath);
|
|
174
|
+
}
|
|
175
|
+
packageJsonPath_1 = tnp_core_1.path.join(currentContainerPath, tnp_config_1.config.file.package_json);
|
|
176
|
+
smart = false;
|
|
177
|
+
monorepo = false;
|
|
178
|
+
if (!!tnp_helpers_1.Helpers.exists(packageJsonPath_1)) return [3 /*break*/, 5];
|
|
179
|
+
if (!(isLastContainer &&
|
|
180
|
+
isBrandNew &&
|
|
181
|
+
(!parentContainer || !parentContainer.__isSmartContainer))) return [3 /*break*/, 4];
|
|
182
|
+
displayNameForLastContainerBeforeApp = hasAtLeastOneContainersFromArgs
|
|
183
|
+
? tnp_core_1.chalk.italic("".concat(autoCreateNormalContainersPathName
|
|
184
|
+
? autoCreateNormalContainersPathName + '/'
|
|
185
|
+
: '')) +
|
|
186
|
+
"".concat(tnp_core_1.chalk.italic.red(tnp_core_1.path.basename(tnp_core_1.path.dirname(standaloneOrOrgWithStanalonePathName)))) +
|
|
187
|
+
tnp_core_1.chalk.italic("/".concat(lastProjectFromArgName))
|
|
188
|
+
: tnp_core_1.chalk.italic(standaloneOrOrgWithStanalonePathName);
|
|
189
|
+
tnp_helpers_1.Helpers.info("\n\n ".concat(tnp_core_1.chalk.bold('SMART CONTAINERS'), " - can be used to publish npm organization packages ex. @org/package-name\n ").concat(tnp_core_1.chalk.bold('NORMAL CONTAINERS'), " - are just a wrapper for other project for easy\n git pull/push or children packages release. Normal container can wrap \"standalone\" or \"smart container\" projects.\n\n "));
|
|
190
|
+
return [4 /*yield*/, tnp_helpers_1.Helpers.questionYesNo("Do you want container ".concat(displayNameForLastContainerBeforeApp, " to be 'smart' container ?"))];
|
|
191
|
+
case 2:
|
|
192
|
+
smart = _b.sent();
|
|
193
|
+
return [4 /*yield*/, tnp_helpers_1.Helpers.questionYesNo("Do you want container ".concat(displayNameForLastContainerBeforeApp, " be monorepo ?"))];
|
|
194
|
+
case 3:
|
|
195
|
+
monorepo = _b.sent();
|
|
196
|
+
_b.label = 4;
|
|
197
|
+
case 4:
|
|
198
|
+
smartContainerBuildTarget = hasAtLeastOneContainersFromArgs &&
|
|
199
|
+
tnp_core_1.path.basename(currentContainerPath) ===
|
|
200
|
+
tnp_core_1._.first(lastProjectFromArgName.split('/'))
|
|
201
|
+
? lastProjectFromArgName
|
|
202
|
+
: void 0;
|
|
203
|
+
tnp_helpers_1.Helpers.writeJson(packageJsonPath_1, {
|
|
204
|
+
name: tnp_core_1.path.basename(currentContainerPath),
|
|
205
|
+
version: '0.0.0',
|
|
206
|
+
private: true,
|
|
207
|
+
tnp: {
|
|
208
|
+
version: version || tnp_config_1.config.defaultFrameworkVersion,
|
|
209
|
+
type: 'container',
|
|
210
|
+
monorepo: monorepo,
|
|
211
|
+
smartContainerBuildTarget: smartContainerBuildTarget,
|
|
212
|
+
},
|
|
213
|
+
});
|
|
214
|
+
_b.label = 5;
|
|
215
|
+
case 5:
|
|
216
|
+
if (isLastContainer && smart) {
|
|
217
|
+
lastSmart = true;
|
|
218
|
+
}
|
|
219
|
+
currentContainer = project_1.Project.ins.From(currentContainerPath);
|
|
220
|
+
containers.push(currentContainer);
|
|
221
|
+
if (parentContainer === null || parentContainer === void 0 ? void 0 : parentContainer.__isContainer) {
|
|
222
|
+
parentContainer.linkedProjects.addLinkedProject(tnp_core_1.path.basename(currentContainer.location));
|
|
223
|
+
}
|
|
224
|
+
parentContainer = currentContainer;
|
|
225
|
+
if (isLastContainer &&
|
|
226
|
+
smart &&
|
|
227
|
+
isBrandNew &&
|
|
228
|
+
(!parentContainer || !parentContainer.__isSmartContainer)) {
|
|
229
|
+
try {
|
|
230
|
+
currentContainer.run('git init').sync();
|
|
231
|
+
}
|
|
232
|
+
catch (error) {
|
|
233
|
+
tnp_helpers_1.Helpers.warn("Not able to git init inside: ".concat(currentContainer === null || currentContainer === void 0 ? void 0 : currentContainer.location));
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
if (!firstContainer) {
|
|
237
|
+
firstContainer = currentContainer;
|
|
238
|
+
}
|
|
239
|
+
if (isLastContainer) {
|
|
240
|
+
lastContainer = currentContainer;
|
|
241
|
+
}
|
|
242
|
+
if (isLastContainer && isBrandNew) {
|
|
243
|
+
lastIsBrandNew = true;
|
|
244
|
+
}
|
|
245
|
+
tmpCwd = currentContainerPath;
|
|
246
|
+
_b.label = 6;
|
|
247
|
+
case 6:
|
|
248
|
+
if (foldersToRecreate.length > 0) return [3 /*break*/, 1];
|
|
249
|
+
_b.label = 7;
|
|
250
|
+
case 7:
|
|
251
|
+
appLocation = lastContainer
|
|
252
|
+
? (0, tnp_core_1.crossPlatformPath)([lastContainer === null || lastContainer === void 0 ? void 0 : lastContainer.location, lastProjectFromArgName])
|
|
253
|
+
: (0, tnp_core_1.crossPlatformPath)([cwd, lastProjectFromArgName]);
|
|
254
|
+
packageJsonPath = (0, tnp_core_1.crossPlatformPath)([
|
|
255
|
+
appLocation,
|
|
256
|
+
tnp_config_1.config.file.package_json,
|
|
257
|
+
]);
|
|
258
|
+
tnp_helpers_1.Helpers.writeJson(packageJsonPath, {
|
|
259
|
+
name: tnp_core_1.path.basename(lastProjectFromArgName),
|
|
260
|
+
version: '0.0.0',
|
|
261
|
+
private: true,
|
|
262
|
+
tnp: {
|
|
263
|
+
version: lastContainer ? lastContainer.__frameworkVersion : version,
|
|
264
|
+
type: 'isomorphic-lib',
|
|
265
|
+
},
|
|
266
|
+
});
|
|
267
|
+
appProj = project_1.Project.ins.From(appLocation);
|
|
268
|
+
if (!hasAtLeastOneContainersFromArgs) {
|
|
269
|
+
lastContainer = appProj.parent;
|
|
270
|
+
}
|
|
271
|
+
if (lastContainer &&
|
|
272
|
+
lastContainer.__isContainer &&
|
|
273
|
+
!lastContainer.isMonorepo) {
|
|
274
|
+
try {
|
|
275
|
+
if (!((_a = appProj.parent) === null || _a === void 0 ? void 0 : _a.isMonorepo)) {
|
|
276
|
+
appProj.run('git init').sync();
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
catch (error) {
|
|
280
|
+
console.log(error);
|
|
281
|
+
tnp_helpers_1.Helpers.warn("Not able to git init inside: ".concat(appProj.location));
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
appProj.__addSourcesFromCore();
|
|
285
|
+
// console.log({
|
|
286
|
+
// appProj,
|
|
287
|
+
// });
|
|
288
|
+
if (lastContainer && lastSmart) {
|
|
289
|
+
lastContainer.__node_modules.setToSmartContainer();
|
|
290
|
+
}
|
|
291
|
+
return [4 /*yield*/, appProj.init('initing new app', options_1.InitOptions.from({}))];
|
|
292
|
+
case 8:
|
|
293
|
+
_b.sent();
|
|
294
|
+
if (lastContainer === null || lastContainer === void 0 ? void 0 : lastContainer.__isSmartContainer) {
|
|
295
|
+
appProj.__removeStandaloneSources();
|
|
296
|
+
}
|
|
297
|
+
else {
|
|
298
|
+
appProj.__replaceSourceForStandalone();
|
|
299
|
+
}
|
|
300
|
+
if (lastContainer) {
|
|
301
|
+
lastContainer.linkedProjects.addLinkedProject(lastProjectFromArgName);
|
|
302
|
+
}
|
|
303
|
+
// if (lastContainer && lastContainer.isContainer && lastContainer.location !== grandpa.location) {
|
|
304
|
+
// await lastContainer.filesStructure.init(lastContainer.isSmartContainer ? appProj.name : '');
|
|
305
|
+
// }
|
|
306
|
+
// if (grandpa && (grandpa.isContainer || grandpa.isStandaloneProject)) {
|
|
307
|
+
// await grandpa.filesStructure.init(grandpa.isSmartContainer ? appProj.name : '')
|
|
308
|
+
// }
|
|
309
|
+
appProj.__recreate.vscode.settings.hideOrShowFilesInVscode(true);
|
|
310
|
+
if (appProj.git.isGitRoot) {
|
|
311
|
+
try {
|
|
312
|
+
this._addRemoteToStandalone(appProj);
|
|
313
|
+
}
|
|
314
|
+
catch (error) { }
|
|
315
|
+
}
|
|
316
|
+
return [2 /*return*/, {
|
|
317
|
+
containers: containers,
|
|
318
|
+
firstContainer: firstContainer,
|
|
319
|
+
lastContainer: lastContainer,
|
|
320
|
+
lastIsBrandNew: lastIsBrandNew,
|
|
321
|
+
appProj: appProj,
|
|
322
|
+
containersAndProjFromArgName: allProjectFromArgs,
|
|
323
|
+
preOrgs: autoCreateNormalContainersPathName,
|
|
324
|
+
}];
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
});
|
|
328
|
+
};
|
|
329
|
+
//#endregion
|
|
330
|
+
//#region create container or standalone
|
|
331
|
+
$New.prototype._createContainersOrStandalone = function (options) {
|
|
332
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
333
|
+
var _a, nameFromArgs, cwd, version, _b, appProj, containers, lastContainer, lastIsBrandNew, index, container;
|
|
334
|
+
var _c, _d, _e;
|
|
335
|
+
return tslib_1.__generator(this, function (_f) {
|
|
336
|
+
switch (_f.label) {
|
|
337
|
+
case 0:
|
|
338
|
+
_a = this._fixOptions_create(options), nameFromArgs = _a.name, cwd = _a.cwd, version = _a.version;
|
|
339
|
+
return [4 /*yield*/, this._initContainersAndApps(cwd, nameFromArgs, version)];
|
|
340
|
+
case 1:
|
|
341
|
+
_b = _f.sent(), appProj = _b.appProj, containers = _b.containers, lastContainer = _b.lastContainer, lastIsBrandNew = _b.lastIsBrandNew;
|
|
342
|
+
if (!((_d = (_c = lastContainer === null || lastContainer === void 0 ? void 0 : lastContainer.__packageJson.data) === null || _c === void 0 ? void 0 : _c.tnp) === null || _d === void 0 ? void 0 : _d.smartContainerBuildTarget) &&
|
|
343
|
+
(lastContainer === null || lastContainer === void 0 ? void 0 : lastContainer.children.length) > 0) {
|
|
344
|
+
if (appProj.__isSmartContainerChild) {
|
|
345
|
+
lastContainer.__packageJson.data.tnp.smartContainerBuildTarget =
|
|
346
|
+
(_e = tnp_core_1._.first(lastContainer.children.filter(function (c) { return c.name !== appProj.name; }))) === null || _e === void 0 ? void 0 : _e.name;
|
|
347
|
+
lastContainer.__packageJson.save('updating smart container target');
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
if (appProj.__isSmartContainerChild) {
|
|
351
|
+
// QUICK_FIX
|
|
352
|
+
appProj.writeFile('src/lib/my-organization-proj.ts', "\n export function myOrgProj".concat(new Date().getTime(), "() {\n console.log('hello my organization project')\n }\n\n "));
|
|
353
|
+
tnp_helpers_1.Helpers.writeFile([appProj.location, 'README.md'], "# @".concat(appProj.parent.name, "/").concat(appProj.name, "\n\n I am child of smart container.\n "));
|
|
354
|
+
}
|
|
355
|
+
else {
|
|
356
|
+
tnp_helpers_1.Helpers.writeFile([appProj.location, 'README.md'], "# ".concat(appProj.name, "\n\n I am standalone project.\n "));
|
|
357
|
+
}
|
|
358
|
+
if (lastIsBrandNew) {
|
|
359
|
+
lastContainer.writeFile('README.md', "# @".concat(lastContainer.name, "\n\n This smart container is perfect for publishing organizaiton npm pacakges\n\n "));
|
|
360
|
+
}
|
|
361
|
+
index = 0;
|
|
362
|
+
_f.label = 2;
|
|
363
|
+
case 2:
|
|
364
|
+
if (!(index < containers.length)) return [3 /*break*/, 7];
|
|
365
|
+
container = containers[index];
|
|
366
|
+
if (!container.__isSmartContainer) return [3 /*break*/, 4];
|
|
367
|
+
return [4 /*yield*/, container.init('initing new smart container', options_1.InitOptions.from({}))];
|
|
368
|
+
case 3:
|
|
369
|
+
_f.sent();
|
|
370
|
+
container.__recreate.initVscode();
|
|
371
|
+
return [3 /*break*/, 6];
|
|
372
|
+
case 4: return [4 /*yield*/, container.init('initing new container', options_1.InitOptions.from({}))];
|
|
373
|
+
case 5:
|
|
374
|
+
_f.sent();
|
|
375
|
+
container.__recreate.initVscode();
|
|
376
|
+
_f.label = 6;
|
|
377
|
+
case 6:
|
|
378
|
+
index++;
|
|
379
|
+
return [3 /*break*/, 2];
|
|
380
|
+
case 7:
|
|
381
|
+
tnp_helpers_1.Helpers.info("DONE CREATING ".concat(nameFromArgs));
|
|
382
|
+
return [2 /*return*/];
|
|
383
|
+
}
|
|
384
|
+
});
|
|
385
|
+
});
|
|
386
|
+
};
|
|
387
|
+
return $New;
|
|
388
|
+
}(tnp_helpers_2.BaseCommandLineFeature));
|
|
389
|
+
exports.$New = $New;
|
|
390
|
+
exports.default = {
|
|
391
|
+
$New: tnp_helpers_1.Helpers.CLIWRAP($New, '$New'),
|
|
392
|
+
};
|
|
393
|
+
//# sourceMappingURL=cli-NEW.backend.js.map
|