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,813 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Docs = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
//#region imports
|
|
6
|
-
//#region @backend
|
|
7
|
-
var tnp_core_1 = require("tnp-core");
|
|
8
|
-
//#endregion
|
|
9
|
-
var tnp_helpers_1 = require("tnp-helpers");
|
|
10
|
-
var tnp_config_1 = require("tnp-config");
|
|
11
|
-
var tnp_helpers_2 = require("tnp-helpers");
|
|
12
|
-
var tnp_helpers_3 = require("tnp-helpers");
|
|
13
|
-
var tnp_core_2 = require("tnp-core");
|
|
14
|
-
var magic_renamer_1 = require("magic-renamer");
|
|
15
|
-
//#endregion
|
|
16
|
-
var Docs = /** @class */ (function (_super) {
|
|
17
|
-
tslib_1.__extends(Docs, _super);
|
|
18
|
-
//#endregion
|
|
19
|
-
//#endregion
|
|
20
|
-
//#region constructor
|
|
21
|
-
//#region @backend
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
function Docs(project) {
|
|
24
|
-
var _this = this;
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
_this.project = project;
|
|
27
|
-
var timestampContainer = (0, tnp_core_2.crossPlatformPath)(
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
tnp_core_2.path.dirname(_this.docsGlobalTimestampForWatcherAbsPath));
|
|
30
|
-
// console.log('timestampContainer', timestampContainer);
|
|
31
|
-
// process.exit(0);
|
|
32
|
-
_this = _super.call(this, project, {
|
|
33
|
-
taskName: 'DocsProvider',
|
|
34
|
-
folderPath: project.location,
|
|
35
|
-
ignoreFolderPatter: tslib_1.__spreadArray(tslib_1.__spreadArray([
|
|
36
|
-
project.pathFor('tmp-*/**/*.*'),
|
|
37
|
-
project.pathFor('tmp-*'),
|
|
38
|
-
project.pathFor('dist/**/*.*'),
|
|
39
|
-
project.pathFor('dist'),
|
|
40
|
-
project.pathFor('dist-*/**/*.*'),
|
|
41
|
-
project.pathFor('browser/**/*.*'),
|
|
42
|
-
project.pathFor('browser'),
|
|
43
|
-
project.pathFor('websql/**/*.*'),
|
|
44
|
-
project.pathFor('websql')
|
|
45
|
-
], tslib_1.__read(['ts', 'js', 'scss', 'css', 'html'].map(function (ext) {
|
|
46
|
-
return project.pathFor("src/**/*.".concat(ext));
|
|
47
|
-
})), false), [
|
|
48
|
-
project.pathFor('.*/**/*.*'),
|
|
49
|
-
"".concat(timestampContainer),
|
|
50
|
-
"".concat(timestampContainer, "/**/*.*"),
|
|
51
|
-
], false),
|
|
52
|
-
subscribeOnlyFor: ['md', 'yml'],
|
|
53
|
-
}) || this;
|
|
54
|
-
//#region fields & getters
|
|
55
|
-
_this.docsConfigJsonFileName = 'docs-config.jsonc';
|
|
56
|
-
_this.docsConfigSchema = 'docs-config.schema.json';
|
|
57
|
-
_this.customDefaultCss = 'custom-default.css';
|
|
58
|
-
_this.customDefaultJs = 'custom-default.js';
|
|
59
|
-
_this.linkedAlreadProjects = {};
|
|
60
|
-
//#endregion
|
|
61
|
-
//#region fields & getters / tmp docs folder path
|
|
62
|
-
/**
|
|
63
|
-
* mkdocs temp folder
|
|
64
|
-
*/
|
|
65
|
-
_this.tmpDocsFolderRoot = ".".concat(tnp_config_1.config.frameworkName, "/temp-docs-folder");
|
|
66
|
-
_this.combinedDocsFolder = "allmdfiles";
|
|
67
|
-
return _this;
|
|
68
|
-
}
|
|
69
|
-
Object.defineProperty(Docs.prototype, "docsConfigCurrentProjAbsPath", {
|
|
70
|
-
//#region fields & getters / docs config current proj abs path
|
|
71
|
-
get: function () {
|
|
72
|
-
//#region @backendFunc
|
|
73
|
-
return this.project.pathFor(this.docsConfigJsonFileName);
|
|
74
|
-
//#endregion
|
|
75
|
-
},
|
|
76
|
-
enumerable: false,
|
|
77
|
-
configurable: true
|
|
78
|
-
});
|
|
79
|
-
Object.defineProperty(Docs.prototype, "config", {
|
|
80
|
-
//#endregion
|
|
81
|
-
//#region fields & getters / docs config
|
|
82
|
-
get: function () {
|
|
83
|
-
//#region @backendFunc
|
|
84
|
-
return this.project.readJson(this.docsConfigJsonFileName);
|
|
85
|
-
//#endregion
|
|
86
|
-
},
|
|
87
|
-
enumerable: false,
|
|
88
|
-
configurable: true
|
|
89
|
-
});
|
|
90
|
-
//#endregion
|
|
91
|
-
//#region fields & getters / linkd docs to global container
|
|
92
|
-
Docs.prototype.linkDocsToGlobalContainer = function () {
|
|
93
|
-
//#region @backendFunc
|
|
94
|
-
if (!tnp_helpers_3.Helpers.exists(tnp_core_2.path.dirname(this.docsConfigGlobalContainerAbsPath))) {
|
|
95
|
-
tnp_helpers_3.Helpers.mkdirp(tnp_core_2.path.dirname(this.docsConfigGlobalContainerAbsPath));
|
|
96
|
-
}
|
|
97
|
-
try {
|
|
98
|
-
tnp_core_1.fse.unlinkSync(this.docsConfigGlobalContainerAbsPath);
|
|
99
|
-
}
|
|
100
|
-
catch (error) { }
|
|
101
|
-
tnp_helpers_3.Helpers.createSymLink(this.project.pathFor(this.tmpDocsFolderRootDocsDirRelativePath), this.docsConfigGlobalContainerAbsPath);
|
|
102
|
-
this.writeGlobalWatcherTimestamp();
|
|
103
|
-
//#endregion
|
|
104
|
-
};
|
|
105
|
-
Object.defineProperty(Docs.prototype, "tmpDocsFolderRootDocsDirRelativePath", {
|
|
106
|
-
get: function () {
|
|
107
|
-
//#region @backendFunc
|
|
108
|
-
return (0, tnp_core_2.crossPlatformPath)([this.tmpDocsFolderRoot, this.combinedDocsFolder]);
|
|
109
|
-
//#endregion
|
|
110
|
-
},
|
|
111
|
-
enumerable: false,
|
|
112
|
-
configurable: true
|
|
113
|
-
});
|
|
114
|
-
Object.defineProperty(Docs.prototype, "outDocsDistFolderAbs", {
|
|
115
|
-
//#endregion
|
|
116
|
-
//#region fields & getters / out docs folder path
|
|
117
|
-
get: function () {
|
|
118
|
-
//#region @backendFunc
|
|
119
|
-
return this.project.pathFor([
|
|
120
|
-
this.initalParams.docsOutFolder || ".".concat(tnp_config_1.config.frameworkName, "/docs-dist"),
|
|
121
|
-
]);
|
|
122
|
-
//#endregion
|
|
123
|
-
},
|
|
124
|
-
enumerable: false,
|
|
125
|
-
configurable: true
|
|
126
|
-
});
|
|
127
|
-
Object.defineProperty(Docs.prototype, "docsConfigGlobalContainerAbsPath", {
|
|
128
|
-
//#endregion
|
|
129
|
-
//#region n fields & getters / docs config global container abs path
|
|
130
|
-
get: function () {
|
|
131
|
-
//#region @backendFunc
|
|
132
|
-
var globalContainer = this.project.ins.by('container', this.project.__frameworkVersion);
|
|
133
|
-
return globalContainer.pathFor(".".concat(tnp_config_1.config.frameworkName, "/docs-from-projects/").concat(this.project.universalPackageName));
|
|
134
|
-
//#endregion
|
|
135
|
-
},
|
|
136
|
-
enumerable: false,
|
|
137
|
-
configurable: true
|
|
138
|
-
});
|
|
139
|
-
Object.defineProperty(Docs.prototype, "docsGlobalTimestampForWatcherAbsPath", {
|
|
140
|
-
//#endregion
|
|
141
|
-
//#region fields & getters / docs global timestamp for watcher abs path
|
|
142
|
-
get: function () {
|
|
143
|
-
//#region @backendFunc
|
|
144
|
-
return this.getTimestampWatcherForPackageName(this.project.universalPackageName);
|
|
145
|
-
//#endregion
|
|
146
|
-
},
|
|
147
|
-
enumerable: false,
|
|
148
|
-
configurable: true
|
|
149
|
-
});
|
|
150
|
-
Object.defineProperty(Docs.prototype, "docsConfigSchemaPath", {
|
|
151
|
-
//#endregion
|
|
152
|
-
//#region n fields & getters / docs config schema path
|
|
153
|
-
get: function () {
|
|
154
|
-
//#region @backendFunc
|
|
155
|
-
return this.project.ins
|
|
156
|
-
.by('isomorphic-lib', this.project.__frameworkVersion)
|
|
157
|
-
.pathFor(this.docsConfigSchema);
|
|
158
|
-
//#endregion
|
|
159
|
-
},
|
|
160
|
-
enumerable: false,
|
|
161
|
-
configurable: true
|
|
162
|
-
});
|
|
163
|
-
//#endregion
|
|
164
|
-
//#endregion
|
|
165
|
-
//#region methods / init
|
|
166
|
-
Docs.prototype.init = function () {
|
|
167
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
168
|
-
return tslib_1.__generator(this, function (_a) {
|
|
169
|
-
//#region @backendFunc
|
|
170
|
-
this.project.removeFolderByRelativePath(this.tmpDocsFolderRootDocsDirRelativePath);
|
|
171
|
-
this.project.createFolder(this.tmpDocsFolderRootDocsDirRelativePath);
|
|
172
|
-
if (!this.project.hasFile(this.docsConfigJsonFileName)) {
|
|
173
|
-
this.project.writeJson(this.docsConfigJsonFileName, this.defaultDocsConfig());
|
|
174
|
-
}
|
|
175
|
-
try {
|
|
176
|
-
tnp_core_1.fse.unlinkSync(this.project.pathFor(this.docsConfigSchema));
|
|
177
|
-
}
|
|
178
|
-
catch (error) { }
|
|
179
|
-
tnp_helpers_3.Helpers.createSymLink(this.docsConfigSchemaPath, this.project.pathFor(this.docsConfigSchema), { continueWhenExistedFolderDoesntExists: true });
|
|
180
|
-
this.project.vsCodeHelpers.recreateJsonSchemas();
|
|
181
|
-
this.linkDocsToGlobalContainer();
|
|
182
|
-
return [2 /*return*/];
|
|
183
|
-
});
|
|
184
|
-
});
|
|
185
|
-
};
|
|
186
|
-
//#endregion
|
|
187
|
-
//#region methods / action
|
|
188
|
-
Docs.prototype.action = function (_a) {
|
|
189
|
-
return tslib_1.__awaiter(this, arguments, void 0, function (_b) {
|
|
190
|
-
var portForDocs;
|
|
191
|
-
var _this = this;
|
|
192
|
-
var _c;
|
|
193
|
-
var changeOfFiles = _b.changeOfFiles, asyncEvent = _b.asyncEvent;
|
|
194
|
-
return tslib_1.__generator(this, function (_d) {
|
|
195
|
-
switch (_d.label) {
|
|
196
|
-
case 0:
|
|
197
|
-
//#region @backendFunc
|
|
198
|
-
// if (asyncEvent) {
|
|
199
|
-
// console.log(
|
|
200
|
-
// 'changeOfFiles',
|
|
201
|
-
// changeOfFiles.map(f => f.fileAbsolutePath),
|
|
202
|
-
// );
|
|
203
|
-
// }
|
|
204
|
-
// QUICK_FIX
|
|
205
|
-
if (asyncEvent &&
|
|
206
|
-
changeOfFiles.length === 1 &&
|
|
207
|
-
((_c = tnp_core_2._.first(changeOfFiles)) === null || _c === void 0 ? void 0 : _c.fileAbsolutePath) ===
|
|
208
|
-
this.docsGlobalTimestampForWatcherAbsPath) {
|
|
209
|
-
return [2 /*return*/];
|
|
210
|
-
}
|
|
211
|
-
if (!!asyncEvent) return [3 /*break*/, 2];
|
|
212
|
-
return [4 /*yield*/, this.init()];
|
|
213
|
-
case 1:
|
|
214
|
-
_d.sent();
|
|
215
|
-
_d.label = 2;
|
|
216
|
-
case 2: return [4 /*yield*/, this.recreateFilesInTempFolder(asyncEvent)];
|
|
217
|
-
case 3:
|
|
218
|
-
_d.sent();
|
|
219
|
-
if (!!asyncEvent) return [3 /*break*/, 7];
|
|
220
|
-
return [4 /*yield*/, this.buildMkdocs({ watch: this.isWatchCompilation })];
|
|
221
|
-
case 4:
|
|
222
|
-
_d.sent();
|
|
223
|
-
tnp_core_1.chokidar
|
|
224
|
-
.watch(this.project.pathFor(this.docsConfigJsonFileName), {
|
|
225
|
-
ignoreInitial: true,
|
|
226
|
-
})
|
|
227
|
-
.on('all', function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
228
|
-
return tslib_1.__generator(this, function (_a) {
|
|
229
|
-
switch (_a.label) {
|
|
230
|
-
case 0:
|
|
231
|
-
tnp_helpers_3.Helpers.info('Docs config changed (docs-config.jsonc).. rebuilding..');
|
|
232
|
-
return [4 /*yield*/, this.action({
|
|
233
|
-
changeOfFiles: [],
|
|
234
|
-
asyncEvent: true,
|
|
235
|
-
})];
|
|
236
|
-
case 1:
|
|
237
|
-
_a.sent();
|
|
238
|
-
return [2 /*return*/];
|
|
239
|
-
}
|
|
240
|
-
});
|
|
241
|
-
}); });
|
|
242
|
-
if (!this.initalParams.docsOutFolder) return [3 /*break*/, 7];
|
|
243
|
-
return [4 /*yield*/, this.project.registerAndAssignPort(('docs port for http server'), {
|
|
244
|
-
startFrom: 3950,
|
|
245
|
-
})];
|
|
246
|
-
case 5:
|
|
247
|
-
portForDocs = _d.sent();
|
|
248
|
-
return [4 /*yield*/, tnp_helpers_3.UtilsHttp.startHttpServer(this.outDocsDistFolderAbs, portForDocs)];
|
|
249
|
-
case 6:
|
|
250
|
-
_d.sent();
|
|
251
|
-
_d.label = 7;
|
|
252
|
-
case 7:
|
|
253
|
-
if (asyncEvent) {
|
|
254
|
-
this.writeGlobalWatcherTimestamp();
|
|
255
|
-
}
|
|
256
|
-
return [2 /*return*/];
|
|
257
|
-
}
|
|
258
|
-
});
|
|
259
|
-
});
|
|
260
|
-
};
|
|
261
|
-
//#endregion
|
|
262
|
-
//#region methods / docs config json $schema content
|
|
263
|
-
Docs.prototype.docsConfigSchemaContent = function () {
|
|
264
|
-
//#region @backendFunc
|
|
265
|
-
return tnp_helpers_3.Helpers.readFile(this.docsConfigSchemaPath);
|
|
266
|
-
//#endregion
|
|
267
|
-
};
|
|
268
|
-
//#endregion
|
|
269
|
-
//#region private methods
|
|
270
|
-
//#region private methods / default docs config
|
|
271
|
-
Docs.prototype.defaultDocsConfig = function () {
|
|
272
|
-
//#region @backendFunc
|
|
273
|
-
return {
|
|
274
|
-
site_name: this.project.name,
|
|
275
|
-
// additionalAssets: [], // TODO MAKE IT AUTOMATIC
|
|
276
|
-
externalDocs: {
|
|
277
|
-
mdfiles: [],
|
|
278
|
-
projects: [],
|
|
279
|
-
},
|
|
280
|
-
omitFilesPatters: [],
|
|
281
|
-
priorityOrder: [],
|
|
282
|
-
mapTitlesNames: {
|
|
283
|
-
'README.md': 'Introduction',
|
|
284
|
-
},
|
|
285
|
-
customCssPath: 'custom.css',
|
|
286
|
-
customJsPath: 'custom.js',
|
|
287
|
-
};
|
|
288
|
-
//#endregion
|
|
289
|
-
};
|
|
290
|
-
//#endregion
|
|
291
|
-
//#region private methods / apply priority order
|
|
292
|
-
Docs.prototype.applyPriorityOrder = function (files) {
|
|
293
|
-
//#region @backendFunc
|
|
294
|
-
var orderByPriority = function (items, priority) {
|
|
295
|
-
return items.sort(function (a, b) {
|
|
296
|
-
// Get the index of the 'title' in the priorityOrder array
|
|
297
|
-
var indexA = priority.indexOf(a.title.replace('.md', ''));
|
|
298
|
-
var indexB = priority.indexOf(b.title.replace('.md', ''));
|
|
299
|
-
// If either title is not in the priority order, move it to the end (assign a large index)
|
|
300
|
-
var priorityA = indexA === -1 ? priority.length : indexA;
|
|
301
|
-
var priorityB = indexB === -1 ? priority.length : indexB;
|
|
302
|
-
// Compare by priority order
|
|
303
|
-
return priorityA - priorityB;
|
|
304
|
-
});
|
|
305
|
-
};
|
|
306
|
-
files = orderByPriority(files, (this.config.priorityOrder || []).map(function (p) { return p.replace('.md', ''); }));
|
|
307
|
-
// Return prioritized files first, followed by the rest
|
|
308
|
-
var omitFilesPatters = this.config.omitFilesPatters || [];
|
|
309
|
-
var result = tnp_core_1.Utils.uniqArray(
|
|
310
|
-
// [...prioritizedFiles, ...nonPrioritizedFiles]
|
|
311
|
-
files.filter(function (f) {
|
|
312
|
-
return f.title &&
|
|
313
|
-
!omitFilesPatters
|
|
314
|
-
.map(function (a) { return a.replace('.md', ''); })
|
|
315
|
-
.includes(f.title.replace('.md', ''));
|
|
316
|
-
}), 'relativePath');
|
|
317
|
-
return result;
|
|
318
|
-
//#endregion
|
|
319
|
-
};
|
|
320
|
-
//#endregion
|
|
321
|
-
//#region private methods / mkdocs.yml content
|
|
322
|
-
Docs.prototype.mkdocsYmlContent = function (entryPointFilesRelativePaths) {
|
|
323
|
-
//#region @backendFunc
|
|
324
|
-
// console.log({
|
|
325
|
-
// entryPointFilesRelativePaths,
|
|
326
|
-
// });
|
|
327
|
-
// example:
|
|
328
|
-
// - Introduction: introduction/index.md
|
|
329
|
-
// - Setup: setup/index.md
|
|
330
|
-
// - Isomorphic Code: isomorphic-code/index.md
|
|
331
|
-
// - Development: development/index.md
|
|
332
|
-
// - Tutorials: tutorials/index.md
|
|
333
|
-
// - Changelog: changelog/index.md
|
|
334
|
-
// - QA: qa/index.md
|
|
335
|
-
// docs_dir: ./
|
|
336
|
-
return "site_name: ".concat(this.config.site_name ? this.config.site_name : tnp_core_2._.upperFirst(this.project.name) + 'Documentation', "\n# site_url: ").concat(this.project.__env.config.domain, "\nnav:\n").concat(this.applyPriorityOrder(entryPointFilesRelativePaths)
|
|
337
|
-
.map(function (p) {
|
|
338
|
-
if (p.relativePath === p.title) {
|
|
339
|
-
" - ".concat(tnp_core_2._.replace(p.title, /[_\s]/g, ' '));
|
|
340
|
-
}
|
|
341
|
-
return " - ".concat(tnp_core_2._.replace(p.title, /[_\s]/g, ' '), ": ").concat(p.relativePath);
|
|
342
|
-
})
|
|
343
|
-
.join('\n'), "\ndocs_dir: ./").concat(this.combinedDocsFolder, "\ntheme:\n name: material\n features:\n - navigation.tabs\n - navigation.sections\n - toc.integrate\n - navigation.top\n - search.suggest\n - search.highlight\n - content.tabs.link\n - content.code.annotation\n - content.code.copy\n language: en\n palette:\n primary: custom\n accent: custom\n # - scheme: default\n # toggle:\n # icon: material/toggle-switch-off-outline\n # name: Switch to dark mode\n # primary: red\n # accent: red\n # - scheme: slate\n # toggle:\n # icon: material/toggle-switch\n # name: Switch to light mode\n # primary: red\n # accent: red\n\nextra_css:\n - ").concat(this.config.customCssPath || this.customDefaultCss, "\n\nextra_javascript:\n - ").concat(this.config.customJsPath || this.customDefaultJs, "\n\n# plugins:\n# - social\n\n# extra:\n# social:\n# - icon: fontawesome/brands/github-alt\n# link: https://github.com/james-willett\n# - icon: fontawesome/brands/twitter\n# link: https://twitter.com/TheJamesWillett\n# - icon: fontawesome/brands/linkedin\n# link: https://www.linkedin.com/in/willettjames/\n\nmarkdown_extensions:\n - pymdownx.highlight:\n anchor_linenums: true\n - pymdownx.inlinehilite\n - pymdownx.snippets\n - admonition\n - pymdownx.arithmatex:\n generic: true\n - footnotes\n - pymdownx.details\n - pymdownx.superfences\n - pymdownx.mark\n - attr_list\n # - pymdownx.emoji:\n # emoji_index: !!python/name:materialx.emoji.twemoji\n # emoji_generator: !!python/name:materialx.emoji.to_svg\n\n ");
|
|
344
|
-
//#endregion
|
|
345
|
-
};
|
|
346
|
-
//#endregion
|
|
347
|
-
//#region private methods / build mkdocs
|
|
348
|
-
Docs.prototype.buildMkdocs = function (_a) {
|
|
349
|
-
return tslib_1.__awaiter(this, arguments, void 0, function (_b) {
|
|
350
|
-
var _c;
|
|
351
|
-
var watch = _b.watch;
|
|
352
|
-
return tslib_1.__generator(this, function (_d) {
|
|
353
|
-
switch (_d.label) {
|
|
354
|
-
case 0:
|
|
355
|
-
//#region @backendFunc
|
|
356
|
-
this.project.setValueToJSONC(tnp_config_1.config.file.package_json, 'scripts.mkdocs', process.platform === 'darwin' ? 'mkdocs' : 'python3 -m mkdocs');
|
|
357
|
-
if (!watch) return [3 /*break*/, 2];
|
|
358
|
-
_c = this;
|
|
359
|
-
return [4 /*yield*/, this.project.registerAndAssignPort('mkdocs serve', {
|
|
360
|
-
startFrom: 3900,
|
|
361
|
-
})];
|
|
362
|
-
case 1:
|
|
363
|
-
_c.mkdocsServePort = _d.sent();
|
|
364
|
-
// python3 -m
|
|
365
|
-
tnp_helpers_3.Helpers.run(process.platform === 'darwin'
|
|
366
|
-
? "mkdocs serve -a localhost:".concat(this.mkdocsServePort, " --quiet")
|
|
367
|
-
: //--quiet
|
|
368
|
-
"python3 -m mkdocs serve -a localhost:".concat(this.mkdocsServePort, " --quiet"), {
|
|
369
|
-
cwd: this.project.pathFor([this.tmpDocsFolderRoot]),
|
|
370
|
-
}).async();
|
|
371
|
-
tnp_helpers_3.Helpers.info("Mkdocs server started on http://localhost:".concat(this.mkdocsServePort));
|
|
372
|
-
return [3 /*break*/, 3];
|
|
373
|
-
case 2:
|
|
374
|
-
if (!tnp_helpers_3.Helpers.exists(this.outDocsDistFolderAbs)) {
|
|
375
|
-
tnp_helpers_3.Helpers.mkdirp(this.outDocsDistFolderAbs);
|
|
376
|
-
}
|
|
377
|
-
tnp_helpers_3.Helpers.run("python3 -m mkdocs build --site-dir ".concat(this.outDocsDistFolderAbs), {
|
|
378
|
-
cwd: this.project.pathFor([this.tmpDocsFolderRoot]),
|
|
379
|
-
}).sync();
|
|
380
|
-
_d.label = 3;
|
|
381
|
-
case 3: return [2 /*return*/];
|
|
382
|
-
}
|
|
383
|
-
});
|
|
384
|
-
});
|
|
385
|
-
};
|
|
386
|
-
//#endregion
|
|
387
|
-
// TODO @LAST hande @render tag in md files
|
|
388
|
-
//#region private methods / copy files to docs folder
|
|
389
|
-
Docs.prototype.copyFilesToTempDocsFolder = function (relativeFilePathesToCopy, asyncEvent) {
|
|
390
|
-
var e_1, _a, e_2, _b;
|
|
391
|
-
//#region @backendFunc
|
|
392
|
-
var counterCopy = 0;
|
|
393
|
-
//#region handle custom js/css files
|
|
394
|
-
if (this.config.customCssPath &&
|
|
395
|
-
this.project.hasFile(this.config.customCssPath)) {
|
|
396
|
-
tnp_helpers_3.Helpers.copyFile(this.project.pathFor(this.config.customCssPath), this.project.pathFor([
|
|
397
|
-
this.tmpDocsFolderRootDocsDirRelativePath,
|
|
398
|
-
this.config.customCssPath,
|
|
399
|
-
]));
|
|
400
|
-
}
|
|
401
|
-
else {
|
|
402
|
-
this.project.writeFile([this.tmpDocsFolderRootDocsDirRelativePath, this.customDefaultCss], '');
|
|
403
|
-
}
|
|
404
|
-
if (this.config.customJsPath &&
|
|
405
|
-
this.project.hasFile(this.config.customJsPath)) {
|
|
406
|
-
tnp_helpers_3.Helpers.copyFile(this.project.pathFor(this.config.customJsPath), this.project.pathFor([
|
|
407
|
-
this.tmpDocsFolderRootDocsDirRelativePath,
|
|
408
|
-
this.config.customJsPath,
|
|
409
|
-
]));
|
|
410
|
-
}
|
|
411
|
-
else {
|
|
412
|
-
this.project.writeFile([this.tmpDocsFolderRootDocsDirRelativePath, this.customDefaultJs], '');
|
|
413
|
-
}
|
|
414
|
-
try {
|
|
415
|
-
//#endregion
|
|
416
|
-
for (var relativeFilePathesToCopy_1 = tslib_1.__values(relativeFilePathesToCopy), relativeFilePathesToCopy_1_1 = relativeFilePathesToCopy_1.next(); !relativeFilePathesToCopy_1_1.done; relativeFilePathesToCopy_1_1 = relativeFilePathesToCopy_1.next()) {
|
|
417
|
-
var asbFileSourcePath = relativeFilePathesToCopy_1_1.value;
|
|
418
|
-
if (tnp_helpers_3.Helpers.isFolder(asbFileSourcePath) ||
|
|
419
|
-
tnp_helpers_3.Helpers.isSymlinkFileExitedOrUnexisted(asbFileSourcePath)) {
|
|
420
|
-
continue;
|
|
421
|
-
}
|
|
422
|
-
var relativeFileSourcePath = this.project.relative(asbFileSourcePath);
|
|
423
|
-
// console.log(
|
|
424
|
-
// `(${asyncEvent ? 'async' : 'sync'}) Files changed:`,
|
|
425
|
-
// relativeFileSourcePath,
|
|
426
|
-
// );
|
|
427
|
-
var isNotInRootMdFile = tnp_core_2.path.basename(asbFileSourcePath) !== relativeFileSourcePath;
|
|
428
|
-
if (isNotInRootMdFile) {
|
|
429
|
-
// console.info('repalcign...');
|
|
430
|
-
var contentWithReplacedSomeLinks = tnp_helpers_1.UtilsMd.moveAssetsPathesToLevel(tnp_helpers_3.Helpers.readFile(asbFileSourcePath), 2);
|
|
431
|
-
// console.info('repalcign done...');
|
|
432
|
-
tnp_helpers_3.Helpers.writeFile(this.project.pathFor([
|
|
433
|
-
this.tmpDocsFolderRootDocsDirRelativePath,
|
|
434
|
-
relativeFileSourcePath,
|
|
435
|
-
]), contentWithReplacedSomeLinks);
|
|
436
|
-
}
|
|
437
|
-
else {
|
|
438
|
-
tnp_helpers_3.Helpers.copyFile(asbFileSourcePath, this.project.pathFor([
|
|
439
|
-
this.tmpDocsFolderRootDocsDirRelativePath,
|
|
440
|
-
relativeFileSourcePath,
|
|
441
|
-
]));
|
|
442
|
-
}
|
|
443
|
-
counterCopy++;
|
|
444
|
-
var assetsFromMdFile = tnp_helpers_1.UtilsMd.getAssets(tnp_helpers_3.Helpers.readFile(asbFileSourcePath));
|
|
445
|
-
try {
|
|
446
|
-
// if (path.basename(asbFilePath) === 'QA.md') {
|
|
447
|
-
// console.log(`assets for ${relativeFileSourcePath}`, assetsFromMdFile);
|
|
448
|
-
// }
|
|
449
|
-
// TODO @LAST add assets to watching list
|
|
450
|
-
for (var assetsFromMdFile_1 = (e_2 = void 0, tslib_1.__values(assetsFromMdFile)), assetsFromMdFile_1_1 = assetsFromMdFile_1.next(); !assetsFromMdFile_1_1.done; assetsFromMdFile_1_1 = assetsFromMdFile_1.next()) {
|
|
451
|
-
var assetRelativePathFromFile = assetsFromMdFile_1_1.value;
|
|
452
|
-
var hasSlash = relativeFileSourcePath.includes('/');
|
|
453
|
-
var slash = hasSlash ? '/' : '';
|
|
454
|
-
var relativeAssetPath = relativeFileSourcePath.replace(slash + tnp_core_2.path.basename(relativeFileSourcePath), slash + assetRelativePathFromFile);
|
|
455
|
-
var assetSourcetAbsPath = this.project.pathFor(relativeAssetPath);
|
|
456
|
-
var assetDestLocationAbsPath = this.project.pathFor([
|
|
457
|
-
this.tmpDocsFolderRootDocsDirRelativePath,
|
|
458
|
-
relativeAssetPath,
|
|
459
|
-
]);
|
|
460
|
-
// console.log({
|
|
461
|
-
// assetRelativePathFromFile,
|
|
462
|
-
// relativeAssetPath,
|
|
463
|
-
// relativeFileSourcePath,
|
|
464
|
-
// assetDestAbsPath: assetSourcetAbsPath,
|
|
465
|
-
// assetDestLocationAbsPath,
|
|
466
|
-
// });
|
|
467
|
-
// console.log(
|
|
468
|
-
// `Copy asset ${assetRelativePathFromFile} ${chalk.bold(relativeAssetPath)} to ${assetDestLocationAbsPath}`,
|
|
469
|
-
// );
|
|
470
|
-
tnp_helpers_3.Helpers.copyFile(assetSourcetAbsPath, assetDestLocationAbsPath);
|
|
471
|
-
counterCopy++;
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
475
|
-
finally {
|
|
476
|
-
try {
|
|
477
|
-
if (assetsFromMdFile_1_1 && !assetsFromMdFile_1_1.done && (_b = assetsFromMdFile_1.return)) _b.call(assetsFromMdFile_1);
|
|
478
|
-
}
|
|
479
|
-
finally { if (e_2) throw e_2.error; }
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
484
|
-
finally {
|
|
485
|
-
try {
|
|
486
|
-
if (relativeFilePathesToCopy_1_1 && !relativeFilePathesToCopy_1_1.done && (_a = relativeFilePathesToCopy_1.return)) _a.call(relativeFilePathesToCopy_1);
|
|
487
|
-
}
|
|
488
|
-
finally { if (e_1) throw e_1.error; }
|
|
489
|
-
}
|
|
490
|
-
var asyncInfo = asyncEvent
|
|
491
|
-
? "\nRefreshing http://localhost:".concat(this.mkdocsServePort, "..")
|
|
492
|
-
: '';
|
|
493
|
-
tnp_helpers_3.Helpers.info("(".concat(asyncEvent ? 'async' : 'sync', ") [").concat(tnp_core_1.Utils.fullDateTime(), "] Copied ").concat(counterCopy, " ") +
|
|
494
|
-
"files to temp docs folder. ".concat(asyncInfo));
|
|
495
|
-
//#endregion
|
|
496
|
-
};
|
|
497
|
-
//#endregion
|
|
498
|
-
//#region private methods / get root files
|
|
499
|
-
Docs.prototype.getRootFiles = function () {
|
|
500
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
501
|
-
return tslib_1.__generator(this, function (_a) {
|
|
502
|
-
//#region @backendFunc
|
|
503
|
-
return [2 /*return*/, tslib_1.__spreadArray([], tslib_1.__read(tnp_helpers_3.Helpers.filesFrom(this.project.location)
|
|
504
|
-
.filter(function (f) { return f.toLowerCase().endsWith('.md'); })
|
|
505
|
-
.map(function (f) { return tnp_core_2.path.basename(f); })), false).map(function (f) { return ({
|
|
506
|
-
title: f.replace('.md', ''),
|
|
507
|
-
relativePath: f,
|
|
508
|
-
// packageName: this.project.universalPackageName,
|
|
509
|
-
}); })];
|
|
510
|
-
});
|
|
511
|
-
});
|
|
512
|
-
};
|
|
513
|
-
//#endregion
|
|
514
|
-
//#region private methods / link project to docs folder
|
|
515
|
-
Docs.prototype.linkProjectToDocsFolder = function (packageName) {
|
|
516
|
-
//#region @backendFunc
|
|
517
|
-
var _this = this;
|
|
518
|
-
if (this.project.universalPackageName === packageName) {
|
|
519
|
-
// Helpers.warn(
|
|
520
|
-
// `Project ${packageName} is the same as current project ${this.project.universalPackageName}`,
|
|
521
|
-
// );
|
|
522
|
-
return;
|
|
523
|
-
}
|
|
524
|
-
// console.log('packageName', packageName);
|
|
525
|
-
var orgLocation;
|
|
526
|
-
try {
|
|
527
|
-
orgLocation = tnp_core_1.fse.realpathSync((0, tnp_core_2.crossPlatformPath)([
|
|
528
|
-
tnp_core_2.path.dirname(this.docsConfigGlobalContainerAbsPath),
|
|
529
|
-
packageName,
|
|
530
|
-
]));
|
|
531
|
-
}
|
|
532
|
-
catch (error) {
|
|
533
|
-
tnp_helpers_3.Helpers.error("Not found \"".concat(tnp_core_1.chalk.bold(packageName), "\" in global docs container. ") +
|
|
534
|
-
"Update your externalDocs.project config.", false, true);
|
|
535
|
-
}
|
|
536
|
-
var dest = this.project.pathFor([
|
|
537
|
-
this.tmpDocsFolderRootDocsDirRelativePath,
|
|
538
|
-
packageName,
|
|
539
|
-
]);
|
|
540
|
-
if (tnp_helpers_3.Helpers.filesFrom(orgLocation).length === 0) {
|
|
541
|
-
var nearestProj = this.project.ins.nearestTo(orgLocation);
|
|
542
|
-
tnp_helpers_3.Helpers.error("Please rebuild docs for this project ".concat(nearestProj === null || nearestProj === void 0 ? void 0 : nearestProj.genericName, "."), false, true);
|
|
543
|
-
}
|
|
544
|
-
if (!this.linkedAlreadProjects[orgLocation]) {
|
|
545
|
-
try {
|
|
546
|
-
tnp_core_1.fse.unlinkSync(dest);
|
|
547
|
-
}
|
|
548
|
-
catch (error) { }
|
|
549
|
-
tnp_helpers_3.Helpers.createSymLink(orgLocation, dest);
|
|
550
|
-
// TODO unlink watcher when project no longer in docs-config.json
|
|
551
|
-
tnp_helpers_3.Helpers.info("Listening changes of external project \"".concat(packageName, "\".."));
|
|
552
|
-
tnp_core_1.chokidar
|
|
553
|
-
.watch(this.getTimestampWatcherForPackageName(packageName), {
|
|
554
|
-
ignoreInitial: true,
|
|
555
|
-
})
|
|
556
|
-
.on('all', function () {
|
|
557
|
-
tnp_helpers_3.Helpers.info("Docs changed in external project \"".concat(tnp_core_1.chalk.bold(packageName), "\".. rebuilding.."));
|
|
558
|
-
_this.action({
|
|
559
|
-
changeOfFiles: [],
|
|
560
|
-
asyncEvent: true,
|
|
561
|
-
});
|
|
562
|
-
});
|
|
563
|
-
}
|
|
564
|
-
this.linkedAlreadProjects[orgLocation] = true;
|
|
565
|
-
//#endregion
|
|
566
|
-
};
|
|
567
|
-
//#endregion
|
|
568
|
-
//#region private methods / resolve package data from
|
|
569
|
-
Docs.prototype.resolvePackageDataFrom = function (packageNameWithPath) {
|
|
570
|
-
//#region @backendFunc
|
|
571
|
-
var isRelativePath = packageNameWithPath.startsWith('../') &&
|
|
572
|
-
packageNameWithPath.startsWith('./');
|
|
573
|
-
var isNpmOrgPath = packageNameWithPath.startsWith('@');
|
|
574
|
-
// const isNormalNpmPackagePath = !isRelativePath && !isNpmOrgPath;
|
|
575
|
-
if (isRelativePath) {
|
|
576
|
-
tnp_helpers_3.Helpers.error("Relative pathes are not supported: ".concat(this.docsConfigCurrentProjAbsPath), false, true);
|
|
577
|
-
}
|
|
578
|
-
var packageName = isNpmOrgPath
|
|
579
|
-
? packageNameWithPath.split('/').slice(0, 2).join('/')
|
|
580
|
-
: tnp_core_2._.first(packageNameWithPath.split('/'));
|
|
581
|
-
this.linkProjectToDocsFolder(packageName);
|
|
582
|
-
var destRelativePath = packageNameWithPath
|
|
583
|
-
.replace(packageName + '/', '')
|
|
584
|
-
.replace(packageName, '');
|
|
585
|
-
return { packageName: packageName, destRelativePath: destRelativePath };
|
|
586
|
-
//#endregion
|
|
587
|
-
};
|
|
588
|
-
//#endregion
|
|
589
|
-
//#region private methods / process md files
|
|
590
|
-
Docs.prototype.getExternalMdFiles = function () {
|
|
591
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
592
|
-
var externalMdFiles, externalMdFies, externalMdFies_1, externalMdFies_1_1, file, _a, packageName, destRelativePath, sourceAbsPath, destinationAbsPath, destMagicRelativePath, destinationMagicAbsPath, content, rules, rules_1, rules_1_1, rule;
|
|
593
|
-
var e_3, _b, e_4, _c;
|
|
594
|
-
return tslib_1.__generator(this, function (_d) {
|
|
595
|
-
externalMdFiles = [];
|
|
596
|
-
externalMdFies = this.config.externalDocs.mdfiles;
|
|
597
|
-
try {
|
|
598
|
-
for (externalMdFies_1 = tslib_1.__values(externalMdFies), externalMdFies_1_1 = externalMdFies_1.next(); !externalMdFies_1_1.done; externalMdFies_1_1 = externalMdFies_1.next()) {
|
|
599
|
-
file = externalMdFies_1_1.value;
|
|
600
|
-
_a = this.resolvePackageDataFrom(file.packageNameWithPath), packageName = _a.packageName, destRelativePath = _a.destRelativePath;
|
|
601
|
-
sourceAbsPath = tnp_core_1.fse.realpathSync((0, tnp_core_2.crossPlatformPath)([
|
|
602
|
-
tnp_core_2.path.dirname(this.docsConfigGlobalContainerAbsPath),
|
|
603
|
-
packageName,
|
|
604
|
-
destRelativePath,
|
|
605
|
-
]));
|
|
606
|
-
destinationAbsPath = this.project.pathFor([
|
|
607
|
-
this.tmpDocsFolderRootDocsDirRelativePath,
|
|
608
|
-
packageName,
|
|
609
|
-
destRelativePath,
|
|
610
|
-
]);
|
|
611
|
-
destMagicRelativePath = file.overrideTitle
|
|
612
|
-
? file.overrideTitle + '.md'
|
|
613
|
-
: (0, tnp_core_2.crossPlatformPath)([packageName, destRelativePath])
|
|
614
|
-
.split('/')
|
|
615
|
-
.map(function (p) { return tnp_core_2._.kebabCase(p.replace('.md', '')); })
|
|
616
|
-
.join('__') + '.md';
|
|
617
|
-
destinationMagicAbsPath = this.project.pathFor([
|
|
618
|
-
this.tmpDocsFolderRootDocsDirRelativePath,
|
|
619
|
-
destMagicRelativePath,
|
|
620
|
-
]);
|
|
621
|
-
tnp_helpers_3.Helpers.copyFile(sourceAbsPath, destinationAbsPath);
|
|
622
|
-
if (file.magicRenameRules) {
|
|
623
|
-
content = tnp_helpers_3.Helpers.readFile(destinationAbsPath);
|
|
624
|
-
rules = magic_renamer_1.RenameRule.from(file.magicRenameRules);
|
|
625
|
-
try {
|
|
626
|
-
for (rules_1 = (e_4 = void 0, tslib_1.__values(rules)), rules_1_1 = rules_1.next(); !rules_1_1.done; rules_1_1 = rules_1.next()) {
|
|
627
|
-
rule = rules_1_1.value;
|
|
628
|
-
content = rule.replaceInString(content);
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
632
|
-
finally {
|
|
633
|
-
try {
|
|
634
|
-
if (rules_1_1 && !rules_1_1.done && (_c = rules_1.return)) _c.call(rules_1);
|
|
635
|
-
}
|
|
636
|
-
finally { if (e_4) throw e_4.error; }
|
|
637
|
-
}
|
|
638
|
-
tnp_helpers_3.Helpers.writeFile(destinationMagicAbsPath, content);
|
|
639
|
-
}
|
|
640
|
-
externalMdFiles.push({
|
|
641
|
-
// packageName,
|
|
642
|
-
relativePath: file.magicRenameRules
|
|
643
|
-
? destMagicRelativePath
|
|
644
|
-
: (0, tnp_core_2.crossPlatformPath)([packageName, destRelativePath]),
|
|
645
|
-
title: file.overrideTitle
|
|
646
|
-
? file.overrideTitle
|
|
647
|
-
: destRelativePath.replace('.md', ''),
|
|
648
|
-
});
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
652
|
-
finally {
|
|
653
|
-
try {
|
|
654
|
-
if (externalMdFies_1_1 && !externalMdFies_1_1.done && (_b = externalMdFies_1.return)) _b.call(externalMdFies_1);
|
|
655
|
-
}
|
|
656
|
-
finally { if (e_3) throw e_3.error; }
|
|
657
|
-
}
|
|
658
|
-
return [2 /*return*/, externalMdFiles];
|
|
659
|
-
});
|
|
660
|
-
});
|
|
661
|
-
};
|
|
662
|
-
//#endregion
|
|
663
|
-
//#region private methods / get/process externalDocs.projects files
|
|
664
|
-
Docs.prototype.getProjectsFiles = function () {
|
|
665
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
666
|
-
var _this = this;
|
|
667
|
-
return tslib_1.__generator(this, function (_a) {
|
|
668
|
-
//#region @backendFunc
|
|
669
|
-
return [2 /*return*/, (this.config.externalDocs.projects || []).map(function (p) {
|
|
670
|
-
var _a = _this.resolvePackageDataFrom(Array.isArray(p.packageNameWithPath)
|
|
671
|
-
? tnp_core_2._.first(p.packageNameWithPath)
|
|
672
|
-
: p.packageNameWithPath), firstPackageName = _a.packageName, firstDestRelativePath = _a.destRelativePath;
|
|
673
|
-
var title = p.overrideTitle
|
|
674
|
-
? p.overrideTitle
|
|
675
|
-
: (0, tnp_core_2.crossPlatformPath)([firstPackageName, firstDestRelativePath]);
|
|
676
|
-
if (Array.isArray(p.packageNameWithPath)) {
|
|
677
|
-
var joinEntrypointName = p.overrideTitle
|
|
678
|
-
? p.overrideTitle + '.md'
|
|
679
|
-
: p.packageNameWithPath
|
|
680
|
-
.map(function (p) { return tnp_core_2._.snakeCase(p.replace('.md', '')); })
|
|
681
|
-
.join('__') + '.md';
|
|
682
|
-
return {
|
|
683
|
-
title: title,
|
|
684
|
-
relativePath: joinEntrypointName,
|
|
685
|
-
// packageName: p.packageName,
|
|
686
|
-
contentToWrite: p.packageNameWithPath
|
|
687
|
-
.map(function (singlePackageNameWithPath) {
|
|
688
|
-
var e_5, _a;
|
|
689
|
-
var _b = _this.resolvePackageDataFrom(singlePackageNameWithPath), packageName = _b.packageName, destRelativePath = _b.destRelativePath;
|
|
690
|
-
var orgLocation = _this.project.universalPackageName === packageName
|
|
691
|
-
? _this.project.pathFor(_this.tmpDocsFolderRootDocsDirRelativePath)
|
|
692
|
-
: tnp_core_1.fse.realpathSync((0, tnp_core_2.crossPlatformPath)([
|
|
693
|
-
tnp_core_2.path.dirname(_this.docsConfigGlobalContainerAbsPath),
|
|
694
|
-
packageName,
|
|
695
|
-
]));
|
|
696
|
-
var fileContent = tnp_helpers_3.Helpers.readFile([
|
|
697
|
-
orgLocation,
|
|
698
|
-
destRelativePath,
|
|
699
|
-
]);
|
|
700
|
-
var exterFileConfig = _this.config.externalDocs.mdfiles.find(function (f) { return f.packageNameWithPath === singlePackageNameWithPath; });
|
|
701
|
-
if (exterFileConfig === null || exterFileConfig === void 0 ? void 0 : exterFileConfig.magicRenameRules) {
|
|
702
|
-
var rules = magic_renamer_1.RenameRule.from(exterFileConfig.magicRenameRules);
|
|
703
|
-
try {
|
|
704
|
-
for (var rules_2 = tslib_1.__values(rules), rules_2_1 = rules_2.next(); !rules_2_1.done; rules_2_1 = rules_2.next()) {
|
|
705
|
-
var rule = rules_2_1.value;
|
|
706
|
-
fileContent = rule.replaceInString(fileContent);
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
710
|
-
finally {
|
|
711
|
-
try {
|
|
712
|
-
if (rules_2_1 && !rules_2_1.done && (_a = rules_2.return)) _a.call(rules_2);
|
|
713
|
-
}
|
|
714
|
-
finally { if (e_5) throw e_5.error; }
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
return fileContent;
|
|
718
|
-
})
|
|
719
|
-
.join('\n'),
|
|
720
|
-
};
|
|
721
|
-
}
|
|
722
|
-
return {
|
|
723
|
-
title: title,
|
|
724
|
-
// packageName: p.packageName,
|
|
725
|
-
relativePath: "".concat(firstPackageName, "/") +
|
|
726
|
-
"".concat(firstDestRelativePath ? firstDestRelativePath : 'README.md'),
|
|
727
|
-
};
|
|
728
|
-
})];
|
|
729
|
-
});
|
|
730
|
-
});
|
|
731
|
-
};
|
|
732
|
-
//#endregion
|
|
733
|
-
//#region private methods / recreate files in temp folder
|
|
734
|
-
Docs.prototype.recreateFilesInTempFolder = function (asyncEvent) {
|
|
735
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
736
|
-
var files, rootFiles, externalMdFiles, projectsFiles, mapTitlesNames, allFiles, allFiles_1, allFiles_1_1, projectFile;
|
|
737
|
-
var e_6, _a;
|
|
738
|
-
var _this = this;
|
|
739
|
-
return tslib_1.__generator(this, function (_b) {
|
|
740
|
-
switch (_b.label) {
|
|
741
|
-
case 0:
|
|
742
|
-
files = this.exitedFilesAbsPathes;
|
|
743
|
-
this.copyFilesToTempDocsFolder(files, asyncEvent);
|
|
744
|
-
return [4 /*yield*/, this.getRootFiles()];
|
|
745
|
-
case 1:
|
|
746
|
-
rootFiles = _b.sent();
|
|
747
|
-
return [4 /*yield*/, this.getExternalMdFiles()];
|
|
748
|
-
case 2:
|
|
749
|
-
externalMdFiles = _b.sent();
|
|
750
|
-
return [4 /*yield*/, this.getProjectsFiles()];
|
|
751
|
-
case 3:
|
|
752
|
-
projectsFiles = _b.sent();
|
|
753
|
-
mapTitlesNames = this.config.mapTitlesNames || {};
|
|
754
|
-
allFiles = tslib_1.__spreadArray(tslib_1.__spreadArray(tslib_1.__spreadArray([], tslib_1.__read(rootFiles), false), tslib_1.__read(externalMdFiles), false), tslib_1.__read(projectsFiles), false).map(
|
|
755
|
-
//#region allow own packages redirection
|
|
756
|
-
// QUICKFIX
|
|
757
|
-
function (f) {
|
|
758
|
-
if (f.relativePath.startsWith("".concat(_this.project.universalPackageName, "/"))) {
|
|
759
|
-
f.relativePath = f.relativePath.replace("".concat(_this.project.universalPackageName, "/"), '');
|
|
760
|
-
}
|
|
761
|
-
if (mapTitlesNames[f.title]) {
|
|
762
|
-
f.title = mapTitlesNames[f.title];
|
|
763
|
-
}
|
|
764
|
-
else if (mapTitlesNames[f.title.replace('.md', '')]) {
|
|
765
|
-
f.title = mapTitlesNames[f.title.replace('.md', '')];
|
|
766
|
-
}
|
|
767
|
-
else if (mapTitlesNames[f.title + '.md']) {
|
|
768
|
-
f.title = mapTitlesNames[f.title + '.md'];
|
|
769
|
-
}
|
|
770
|
-
return f;
|
|
771
|
-
});
|
|
772
|
-
try {
|
|
773
|
-
//#region write join entrypoint files
|
|
774
|
-
for (allFiles_1 = tslib_1.__values(allFiles), allFiles_1_1 = allFiles_1.next(); !allFiles_1_1.done; allFiles_1_1 = allFiles_1.next()) {
|
|
775
|
-
projectFile = allFiles_1_1.value;
|
|
776
|
-
if ('contentToWrite' in projectFile) {
|
|
777
|
-
this.project.writeFile([this.tmpDocsFolderRootDocsDirRelativePath, projectFile.relativePath], projectFile.contentToWrite);
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
782
|
-
finally {
|
|
783
|
-
try {
|
|
784
|
-
if (allFiles_1_1 && !allFiles_1_1.done && (_a = allFiles_1.return)) _a.call(allFiles_1);
|
|
785
|
-
}
|
|
786
|
-
finally { if (e_6) throw e_6.error; }
|
|
787
|
-
}
|
|
788
|
-
//#endregion
|
|
789
|
-
this.project.writeFile([this.tmpDocsFolderRoot, 'mkdocs.yml'], this.mkdocsYmlContent(allFiles));
|
|
790
|
-
return [2 /*return*/];
|
|
791
|
-
}
|
|
792
|
-
});
|
|
793
|
-
});
|
|
794
|
-
};
|
|
795
|
-
//#endregion
|
|
796
|
-
//#region private methods / write global watcher timestamp
|
|
797
|
-
Docs.prototype.writeGlobalWatcherTimestamp = function () {
|
|
798
|
-
//#region @backendFunc
|
|
799
|
-
tnp_helpers_3.Helpers.writeFile(this.docsGlobalTimestampForWatcherAbsPath, new Date().getTime().toString());
|
|
800
|
-
//#endregion
|
|
801
|
-
};
|
|
802
|
-
//#endregion
|
|
803
|
-
//#region private methods / get timestamp watcher for package name
|
|
804
|
-
Docs.prototype.getTimestampWatcherForPackageName = function (universalPackageName) {
|
|
805
|
-
//#region @backendFunc
|
|
806
|
-
var globalContainer = this.project.ins.by('container', this.project.__frameworkVersion);
|
|
807
|
-
return globalContainer.pathFor(".".concat(tnp_config_1.config.frameworkName, "/watcher-timestamps-for/").concat(universalPackageName));
|
|
808
|
-
//#endregion
|
|
809
|
-
};
|
|
810
|
-
return Docs;
|
|
811
|
-
}(tnp_helpers_2.BaseDebounceCompilerForProject));
|
|
812
|
-
exports.Docs = Docs;
|
|
813
|
-
//# sourceMappingURL=docs.js.map
|