@ng-doc/builder 17.6.16 → 18.0.0-beta.2
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/application/index.js +13 -16
- package/application/index.js.map +1 -1
- package/classes/index.d.ts +1 -0
- package/classes/index.js +1 -0
- package/classes/index.js.map +1 -1
- package/classes/observable-map.d.ts +17 -0
- package/classes/observable-map.js +48 -0
- package/classes/observable-map.js.map +1 -0
- package/classes/observable-set.d.ts +4 -1
- package/classes/observable-set.js +9 -3
- package/classes/observable-set.js.map +1 -1
- package/dev-server/index.js +9 -6
- package/dev-server/index.js.map +1 -1
- package/dev-server/patch-builder-context.js +8 -9
- package/dev-server/patch-builder-context.js.map +1 -1
- package/engine/.cache/apps/ng-doc/docs/api-documentation/auto-generation/ng-doc.page.mjs +20 -0
- package/engine/.cache/apps/ng-doc/docs/api-documentation/documenting-declarations/ng-doc.page.mjs +20 -0
- package/engine/.cache/apps/ng-doc/docs/api-documentation/rendering-api/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/customization/icons/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/customization/layout/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/customization/page-processors/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/customization/page-skeleton/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/customization/search/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/customization/themes/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/develop/ng-doc.page.mjs +36 -0
- package/engine/.cache/apps/ng-doc/docs/getting-started/configuration/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/getting-started/installation/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/getting-started/migrations/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/getting-started/ssr/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/getting-started/what-is-ng-doc/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/ng-doc.api.mjs +42 -0
- package/engine/.cache/apps/ng-doc/docs/recipes/ignoring-file-lines/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/recipes/performance/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/blockquotes/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/code-blocks/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/demo-and-demo-pane/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/images-videos-and-embeds/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/keywords/ng-doc.page.mjs +17 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/mermaid-diagrams/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/nunjucks/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/pages-and-categories/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/playground/ng-doc.page.mjs +33 -0
- package/engine/build-ng-doc.d.ts +2 -3
- package/engine/build-ng-doc.js +25 -47
- package/engine/build-ng-doc.js.map +1 -1
- package/engine/builders/api-list/api-list-component.builder.d.ts +13 -0
- package/engine/builders/api-list/api-list-component.builder.js +27 -0
- package/engine/builders/api-list/api-list-component.builder.js.map +1 -0
- package/engine/builders/api-list/api-list.builder.d.ts +17 -0
- package/engine/builders/api-list/api-list.builder.js +42 -0
- package/engine/builders/api-list/api-list.builder.js.map +1 -0
- package/engine/builders/api-list/api-page-template.builder.d.ts +18 -0
- package/engine/builders/api-list/api-page-template.builder.js +67 -0
- package/engine/builders/api-list/api-page-template.builder.js.map +1 -0
- package/engine/builders/api-list/index.d.ts +10 -0
- package/engine/builders/api-list/index.js +63 -0
- package/engine/builders/api-list/index.js.map +1 -0
- package/engine/builders/api-list/keywords/build-api-keywords.d.ts +7 -0
- package/engine/builders/api-list/keywords/build-api-keywords.js +28 -0
- package/engine/builders/api-list/keywords/build-api-keywords.js.map +1 -0
- package/engine/builders/api-list/keywords/get-api-anchor-keywords.d.ts +8 -0
- package/engine/builders/api-list/keywords/get-api-anchor-keywords.js +27 -0
- package/engine/builders/api-list/keywords/get-api-anchor-keywords.js.map +1 -0
- package/engine/builders/api-list/keywords/get-pipe-keywords.d.ts +7 -0
- package/engine/builders/api-list/keywords/get-pipe-keywords.js +20 -0
- package/engine/builders/api-list/keywords/get-pipe-keywords.js.map +1 -0
- package/engine/builders/api-list/keywords/get-selector-keywords.d.ts +7 -0
- package/engine/builders/api-list/keywords/get-selector-keywords.js +38 -0
- package/engine/builders/api-list/keywords/get-selector-keywords.js.map +1 -0
- package/engine/builders/api-list/render-api-header.d.ts +10 -0
- package/engine/builders/api-list/render-api-header.js +24 -0
- package/engine/builders/api-list/render-api-header.js.map +1 -0
- package/engine/builders/global/context-and-routes.builder.d.ts +16 -0
- package/engine/builders/global/context-and-routes.builder.js +61 -0
- package/engine/builders/global/context-and-routes.builder.js.map +1 -0
- package/engine/builders/global/index.builder.d.ts +8 -0
- package/engine/builders/global/index.builder.js +24 -0
- package/engine/builders/global/index.builder.js.map +1 -0
- package/engine/builders/global/index.d.ts +7 -0
- package/engine/builders/global/index.js +16 -0
- package/engine/builders/global/index.js.map +1 -0
- package/engine/builders/global/keywords.builder.d.ts +7 -0
- package/engine/builders/global/keywords.builder.js +23 -0
- package/engine/builders/global/keywords.builder.js.map +1 -0
- package/engine/builders/global/search-indexes.builder.d.ts +7 -0
- package/engine/builders/global/search-indexes.builder.js +20 -0
- package/engine/builders/global/search-indexes.builder.js.map +1 -0
- package/engine/builders/helpers/create-declaration-metadata.d.ts +12 -0
- package/engine/builders/helpers/create-declaration-metadata.js +58 -0
- package/engine/builders/helpers/create-declaration-metadata.js.map +1 -0
- package/engine/builders/helpers/create-declaration-tab-metadata.d.ts +16 -0
- package/engine/builders/helpers/create-declaration-tab-metadata.js +31 -0
- package/engine/builders/helpers/create-declaration-tab-metadata.js.map +1 -0
- package/engine/builders/helpers/create-entry-metadata.d.ts +10 -0
- package/engine/builders/helpers/create-entry-metadata.js +72 -0
- package/engine/builders/helpers/create-entry-metadata.js.map +1 -0
- package/engine/builders/helpers/create-import-path.d.ts +7 -0
- package/engine/builders/helpers/create-import-path.js +19 -0
- package/engine/builders/helpers/create-import-path.js.map +1 -0
- package/engine/builders/helpers/create-markdown-metadata.d.ts +8 -0
- package/engine/builders/helpers/create-markdown-metadata.js +32 -0
- package/engine/builders/helpers/create-markdown-metadata.js.map +1 -0
- package/engine/builders/helpers/get-category-source-file.d.ts +7 -0
- package/engine/builders/helpers/get-category-source-file.js +31 -0
- package/engine/builders/helpers/get-category-source-file.js.map +1 -0
- package/engine/builders/helpers/get-entry-out-dir.d.ts +9 -0
- package/engine/builders/helpers/get-entry-out-dir.js +25 -0
- package/engine/builders/helpers/get-entry-out-dir.js.map +1 -0
- package/engine/builders/helpers/get-entry-relative-path.d.ts +6 -0
- package/engine/builders/helpers/get-entry-relative-path.js +16 -0
- package/engine/builders/helpers/get-entry-relative-path.js.map +1 -0
- package/engine/builders/helpers/get-entry-route.d.ts +7 -0
- package/engine/builders/helpers/get-entry-route.js +23 -0
- package/engine/builders/helpers/get-entry-route.js.map +1 -0
- package/engine/builders/helpers/get-playground-metadata.d.ts +9 -0
- package/engine/builders/helpers/get-playground-metadata.js +40 -0
- package/engine/builders/helpers/get-playground-metadata.js.map +1 -0
- package/engine/builders/helpers/get-scoped-keyword.d.ts +8 -0
- package/engine/builders/helpers/get-scoped-keyword.js +19 -0
- package/engine/builders/helpers/get-scoped-keyword.js.map +1 -0
- package/engine/builders/helpers/get-structured-docs.d.ts +11 -0
- package/engine/builders/helpers/get-structured-docs.js +55 -0
- package/engine/builders/helpers/get-structured-docs.js.map +1 -0
- package/engine/builders/helpers/get-variable-statement-from-object-literal-expression.d.ts +6 -0
- package/engine/builders/helpers/get-variable-statement-from-object-literal-expression.js +19 -0
- package/engine/builders/helpers/get-variable-statement-from-object-literal-expression.js.map +1 -0
- package/engine/builders/helpers/index.d.ts +14 -0
- package/engine/builders/helpers/index.js +18 -0
- package/engine/builders/helpers/index.js.map +1 -0
- package/engine/builders/helpers/markdown-front-matter.d.ts +8 -0
- package/engine/builders/helpers/markdown-front-matter.js +14 -0
- package/engine/builders/helpers/markdown-front-matter.js.map +1 -0
- package/engine/builders/index.d.ts +4 -0
- package/engine/builders/index.js +8 -0
- package/engine/builders/index.js.map +1 -0
- package/engine/builders/interfaces/entry-metadata.d.ts +32 -0
- package/engine/builders/interfaces/entry-metadata.js +13 -0
- package/engine/builders/interfaces/entry-metadata.js.map +1 -0
- package/engine/builders/interfaces/entry.d.ts +23 -0
- package/engine/builders/interfaces/entry.js +23 -0
- package/engine/builders/interfaces/entry.js.map +1 -0
- package/engine/builders/interfaces/index.d.ts +4 -0
- package/engine/builders/interfaces/index.js +8 -0
- package/engine/builders/interfaces/index.js.map +1 -0
- package/engine/builders/interfaces/markdown-entry.d.ts +21 -0
- package/engine/{entities/plugins/types/entity-plugin.js → builders/interfaces/markdown-entry.js} +1 -1
- package/engine/builders/interfaces/markdown-entry.js.map +1 -0
- package/engine/builders/interfaces/template-builder-output.d.ts +8 -0
- package/engine/builders/interfaces/template-builder-output.js +3 -0
- package/engine/builders/interfaces/template-builder-output.js.map +1 -0
- package/engine/builders/page/demo-assets.builder.d.ts +20 -0
- package/engine/builders/page/demo-assets.builder.js +74 -0
- package/engine/builders/page/demo-assets.builder.js.map +1 -0
- package/engine/builders/page/guide-template.builder.d.ts +17 -0
- package/engine/builders/page/guide-template.builder.js +71 -0
- package/engine/builders/page/guide-template.builder.js.map +1 -0
- package/engine/builders/page/index.d.ts +11 -0
- package/engine/builders/page/index.js +39 -0
- package/engine/builders/page/index.js.map +1 -0
- package/engine/builders/page/keywords/build-guide-keywords.d.ts +7 -0
- package/engine/builders/page/keywords/build-guide-keywords.js +25 -0
- package/engine/builders/page/keywords/build-guide-keywords.js.map +1 -0
- package/engine/builders/page/keywords/get-page-anchor-keywords.d.ts +8 -0
- package/engine/builders/page/keywords/get-page-anchor-keywords.js +27 -0
- package/engine/builders/page/keywords/get-page-anchor-keywords.js.map +1 -0
- package/engine/builders/page/playground.builder.d.ts +13 -0
- package/engine/builders/page/playground.builder.js +45 -0
- package/engine/builders/page/playground.builder.js.map +1 -0
- package/engine/builders/page/render-page-header.d.ts +13 -0
- package/engine/builders/page/render-page-header.js +20 -0
- package/engine/builders/page/render-page-header.js.map +1 -0
- package/engine/builders/shared/content.builder.d.ts +21 -0
- package/engine/builders/shared/content.builder.js +84 -0
- package/engine/builders/shared/content.builder.js.map +1 -0
- package/engine/builders/shared/entry.builder.d.ts +20 -0
- package/engine/builders/shared/entry.builder.js +45 -0
- package/engine/builders/shared/entry.builder.js.map +1 -0
- package/engine/builders/shared/index.d.ts +3 -0
- package/engine/builders/shared/index.js +7 -0
- package/engine/builders/shared/index.js.map +1 -0
- package/engine/builders/shared/page-component.builder.d.ts +22 -0
- package/engine/builders/shared/page-component.builder.js +64 -0
- package/engine/builders/shared/page-component.builder.js.map +1 -0
- package/engine/builders/shared/page-wrapper.builder.d.ts +18 -0
- package/engine/builders/shared/page-wrapper.builder.js +84 -0
- package/engine/builders/shared/page-wrapper.builder.js.map +1 -0
- package/engine/{entities/cache → cache}/cache.js +3 -6
- package/engine/cache/cache.js.map +1 -0
- package/engine/{entities/cache → cache}/cached-files-initializer.js +1 -2
- package/engine/cache/cached-files-initializer.js.map +1 -0
- package/engine/{entities/cache → cache}/cached-props-initializer.js +3 -4
- package/engine/cache/cached-props-initializer.js.map +1 -0
- package/engine/{entities/cache → cache}/decorators/cached-entity.js +5 -6
- package/engine/cache/decorators/cached-entity.js.map +1 -0
- package/engine/cache/decorators/cached-files-getter.js.map +1 -0
- package/engine/cache/decorators/cached-property.js.map +1 -0
- package/engine/cache/decorators/index.js.map +1 -0
- package/engine/cache/helpers/create-cache-for-file.js.map +1 -0
- package/engine/{entities/cache → cache}/helpers/create-cache.d.ts +3 -2
- package/engine/{entities/cache → cache}/helpers/create-cache.js +5 -4
- package/engine/cache/helpers/create-cache.js.map +1 -0
- package/engine/{entities/cache → cache}/helpers/get-cache-dir-path.js +2 -3
- package/engine/cache/helpers/get-cache-dir-path.js.map +1 -0
- package/engine/cache/helpers/get-cache-file-path.js.map +1 -0
- package/engine/cache/helpers/index.js.map +1 -0
- package/engine/{entities/cache → cache}/helpers/invalidate-cache-if-needed.js +1 -1
- package/engine/cache/helpers/invalidate-cache-if-needed.js.map +1 -0
- package/engine/{entities/cache → cache}/helpers/is-cache-valid.js +2 -3
- package/engine/cache/helpers/is-cache-valid.js.map +1 -0
- package/engine/{entities/cache → cache}/helpers/load-cache.d.ts +1 -1
- package/engine/cache/helpers/load-cache.js.map +1 -0
- package/engine/{entities/cache → cache}/helpers/update-cache.d.ts +1 -1
- package/engine/cache/helpers/update-cache.js.map +1 -0
- package/engine/cache/index.js.map +1 -0
- package/engine/cache/interfaces/cache-accessor.js.map +1 -0
- package/engine/cache/interfaces/cached-data.d.ts +6 -0
- package/engine/cache/interfaces/cached-data.js.map +1 -0
- package/engine/cache/interfaces/index.js.map +1 -0
- package/engine/core/index.d.ts +6 -0
- package/engine/core/index.js +10 -0
- package/engine/core/index.js.map +1 -0
- package/engine/core/operators/builder-state.d.ts +13 -0
- package/engine/core/operators/builder-state.js +20 -0
- package/engine/core/operators/builder-state.js.map +1 -0
- package/engine/core/operators/create-builder.d.ts +10 -0
- package/engine/core/operators/create-builder.js +32 -0
- package/engine/core/operators/create-builder.js.map +1 -0
- package/engine/core/operators/distinct-pending.d.ts +6 -0
- package/engine/core/operators/distinct-pending.js +12 -0
- package/engine/core/operators/distinct-pending.js.map +1 -0
- package/engine/core/operators/emit-cache.d.ts +17 -0
- package/engine/core/operators/emit-cache.js +31 -0
- package/engine/core/operators/emit-cache.js.map +1 -0
- package/engine/core/operators/emit-file-output.d.ts +7 -0
- package/engine/core/operators/emit-file-output.js +36 -0
- package/engine/core/operators/emit-file-output.js.map +1 -0
- package/engine/core/operators/entries-emitter.d.ts +8 -0
- package/engine/core/operators/entries-emitter.js +37 -0
- package/engine/core/operators/entries-emitter.js.map +1 -0
- package/engine/core/operators/factory.d.ts +12 -0
- package/engine/core/operators/factory.js +54 -0
- package/engine/core/operators/factory.js.map +1 -0
- package/engine/core/operators/handle-cache-strategy.d.ts +16 -0
- package/engine/core/operators/handle-cache-strategy.js +61 -0
- package/engine/core/operators/handle-cache-strategy.js.map +1 -0
- package/engine/core/operators/index.d.ts +16 -0
- package/engine/core/operators/index.js +20 -0
- package/engine/core/operators/index.js.map +1 -0
- package/engine/core/operators/join-builder-states.d.ts +9 -0
- package/engine/core/operators/join-builder-states.js +29 -0
- package/engine/core/operators/join-builder-states.js.map +1 -0
- package/engine/core/operators/merge-factory.d.ts +14 -0
- package/engine/core/operators/merge-factory.js +38 -0
- package/engine/core/operators/merge-factory.js.map +1 -0
- package/engine/core/operators/print-build-progress.d.ts +5 -0
- package/engine/core/operators/print-build-progress.js +16 -0
- package/engine/core/operators/print-build-progress.js.map +1 -0
- package/engine/core/operators/print-errors.d.ts +6 -0
- package/engine/core/operators/print-errors.js +17 -0
- package/engine/core/operators/print-errors.js.map +1 -0
- package/engine/core/operators/resolve-async-file-outputs.d.ts +6 -0
- package/engine/core/operators/resolve-async-file-outputs.js +29 -0
- package/engine/core/operators/resolve-async-file-outputs.js.map +1 -0
- package/engine/core/operators/run-build.d.ts +10 -0
- package/engine/core/operators/run-build.js +22 -0
- package/engine/core/operators/run-build.js.map +1 -0
- package/engine/core/operators/stack.d.ts +27 -0
- package/engine/core/operators/stack.js +78 -0
- package/engine/core/operators/stack.js.map +1 -0
- package/engine/core/operators/when-builders-done.d.ts +9 -0
- package/engine/core/operators/when-builders-done.js +21 -0
- package/engine/core/operators/when-builders-done.js.map +1 -0
- package/engine/core/operators/when-done.d.ts +20 -0
- package/engine/core/operators/when-done.js +40 -0
- package/engine/core/operators/when-done.js.map +1 -0
- package/engine/core/stores/api.d.ts +2 -0
- package/engine/core/stores/api.js +6 -0
- package/engine/core/stores/api.js.map +1 -0
- package/engine/core/stores/index-store.d.ts +3 -0
- package/engine/core/stores/index-store.js +6 -0
- package/engine/core/stores/index-store.js.map +1 -0
- package/engine/core/stores/index.d.ts +4 -0
- package/engine/core/stores/index.js +8 -0
- package/engine/core/stores/index.js.map +1 -0
- package/engine/core/stores/keywords.d.ts +9 -0
- package/engine/core/stores/keywords.js +35 -0
- package/engine/core/stores/keywords.js.map +1 -0
- package/engine/core/stores/page-store.d.ts +3 -0
- package/engine/core/stores/page-store.js +6 -0
- package/engine/core/stores/page-store.js.map +1 -0
- package/engine/core/triggers/index.d.ts +3 -0
- package/engine/core/triggers/index.js +7 -0
- package/engine/core/triggers/index.js.map +1 -0
- package/engine/core/triggers/on-dependencies-change.d.ts +12 -0
- package/engine/core/triggers/on-dependencies-change.js +19 -0
- package/engine/core/triggers/on-dependencies-change.js.map +1 -0
- package/engine/core/triggers/on-keywords-touch.d.ts +13 -0
- package/engine/core/triggers/on-keywords-touch.js +27 -0
- package/engine/core/triggers/on-keywords-touch.js.map +1 -0
- package/engine/core/triggers/on-remove-from-store.d.ts +11 -0
- package/engine/core/triggers/on-remove-from-store.js +15 -0
- package/engine/core/triggers/on-remove-from-store.js.map +1 -0
- package/engine/core/types/builder.d.ts +3 -0
- package/{interfaces/build-result.js → engine/core/types/builder.js} +1 -1
- package/engine/core/types/builder.js.map +1 -0
- package/engine/core/types/cache-strategy.d.ts +29 -0
- package/engine/core/types/cache-strategy.js +3 -0
- package/engine/core/types/cache-strategy.js.map +1 -0
- package/engine/core/types/file-output.d.ts +10 -0
- package/engine/core/types/file-output.js +11 -0
- package/engine/core/types/file-output.js.map +1 -0
- package/engine/core/types/index.d.ts +5 -0
- package/engine/core/types/index.js +9 -0
- package/engine/core/types/index.js.map +1 -0
- package/engine/core/types/state.d.ts +74 -0
- package/engine/core/types/state.js +81 -0
- package/engine/core/types/state.js.map +1 -0
- package/engine/core/types/trigger.d.ts +30 -0
- package/engine/core/types/trigger.js +36 -0
- package/engine/core/types/trigger.js.map +1 -0
- package/engine/core/variables/cold-start.d.ts +8 -0
- package/engine/core/variables/cold-start.js +18 -0
- package/engine/core/variables/cold-start.js.map +1 -0
- package/engine/core/variables/index.d.ts +1 -0
- package/engine/{entities/plugins/types → core/variables}/index.js +1 -1
- package/engine/core/variables/index.js.map +1 -0
- package/engine/core/watcher/index.d.ts +2 -0
- package/engine/core/watcher/index.js +6 -0
- package/engine/core/watcher/index.js.map +1 -0
- package/engine/core/watcher/watch-file.d.ts +9 -0
- package/engine/core/watcher/watch-file.js +29 -0
- package/engine/core/watcher/watch-file.js.map +1 -0
- package/engine/core/watcher/watch-folder.d.ts +8 -0
- package/engine/core/watcher/watch-folder.js +31 -0
- package/engine/core/watcher/watch-folder.js.map +1 -0
- package/engine/core/watcher/watch.d.ts +8 -0
- package/engine/core/watcher/watch.js +39 -0
- package/engine/core/watcher/watch.js.map +1 -0
- package/engine/index.d.ts +2 -6
- package/engine/index.js +2 -6
- package/engine/index.js.map +1 -1
- package/engine/nunjucks/actions/api-details.action.d.ts +6 -0
- package/engine/nunjucks/actions/api-details.action.js +27 -0
- package/engine/nunjucks/actions/api-details.action.js.map +1 -0
- package/engine/nunjucks/actions/api.action.d.ts +6 -0
- package/engine/nunjucks/actions/api.action.js +35 -0
- package/engine/nunjucks/actions/api.action.js.map +1 -0
- package/engine/{actions → nunjucks/actions}/demo-pane.action.d.ts +2 -2
- package/engine/{actions → nunjucks/actions}/demo-pane.action.js +1 -1
- package/engine/nunjucks/actions/demo-pane.action.js.map +1 -0
- package/engine/{actions → nunjucks/actions}/demo.action.d.ts +2 -2
- package/engine/{actions → nunjucks/actions}/demo.action.js +1 -1
- package/engine/nunjucks/actions/demo.action.js.map +1 -0
- package/engine/nunjucks/actions/js-doc-has-tag.action.d.ts +7 -0
- package/engine/nunjucks/actions/js-doc-has-tag.action.js +23 -0
- package/engine/nunjucks/actions/js-doc-has-tag.action.js.map +1 -0
- package/engine/nunjucks/actions/js-doc-tag.action.d.ts +7 -0
- package/engine/nunjucks/actions/js-doc-tag.action.js +23 -0
- package/engine/nunjucks/actions/js-doc-tag.action.js.map +1 -0
- package/engine/nunjucks/actions/js-doc-tags.action.d.ts +7 -0
- package/engine/nunjucks/actions/js-doc-tags.action.js +24 -0
- package/engine/nunjucks/actions/js-doc-tags.action.js.map +1 -0
- package/engine/nunjucks/actions/js-doc.action.d.ts +6 -0
- package/engine/nunjucks/actions/js-doc.action.js +22 -0
- package/engine/nunjucks/actions/js-doc.action.js.map +1 -0
- package/engine/{actions → nunjucks/actions}/playground.action.d.ts +2 -2
- package/engine/{actions → nunjucks/actions}/playground.action.js +7 -6
- package/engine/nunjucks/actions/playground.action.js.map +1 -0
- package/engine/{actions.d.ts → nunjucks/actions.d.ts} +4 -5
- package/engine/{actions.js → nunjucks/actions.js} +7 -12
- package/engine/nunjucks/actions.js.map +1 -0
- package/engine/nunjucks/api.d.ts +7 -0
- package/engine/nunjucks/api.js +20 -0
- package/engine/nunjucks/api.js.map +1 -0
- package/engine/nunjucks/base-action.d.ts +10 -0
- package/engine/nunjucks/base-action.js +16 -0
- package/engine/nunjucks/base-action.js.map +1 -0
- package/engine/nunjucks/filters.d.ts +2 -1
- package/engine/nunjucks/filters.js +10 -7
- package/engine/nunjucks/filters.js.map +1 -1
- package/engine/nunjucks/index.d.ts +3 -0
- package/engine/nunjucks/index.js +3 -0
- package/engine/nunjucks/index.js.map +1 -1
- package/engine/nunjucks/js-doc.d.ts +11 -0
- package/engine/nunjucks/js-doc.js +28 -0
- package/engine/nunjucks/js-doc.js.map +1 -0
- package/engine/nunjucks/render-template.d.ts +6 -0
- package/engine/nunjucks/render-template.js +27 -10
- package/engine/nunjucks/render-template.js.map +1 -1
- package/engine/transform-index-html.d.ts +5 -0
- package/engine/transform-index-html.js +15 -0
- package/engine/transform-index-html.js.map +1 -0
- package/engine/watcher.js +1 -1
- package/engine/watcher.js.map +1 -1
- package/helpers/angular/get-component-assets.d.ts +3 -1
- package/helpers/angular/get-component-assets.js +20 -3
- package/helpers/angular/get-component-assets.js.map +1 -1
- package/helpers/angular/get-component-decorator.js +1 -1
- package/helpers/angular/get-component-decorator.js.map +1 -1
- package/helpers/angular/get-component-inputs.js.map +1 -1
- package/helpers/angular/get-component-source-files.js.map +1 -1
- package/helpers/angular/get-directive-decorator.js +1 -1
- package/helpers/angular/get-directive-decorator.js.map +1 -1
- package/helpers/angular/get-input-name.js +4 -5
- package/helpers/angular/get-input-name.js.map +1 -1
- package/helpers/angular/get-input-type.js.map +1 -1
- package/helpers/angular/get-pipe-decorator.js +1 -1
- package/helpers/angular/get-pipe-decorator.js.map +1 -1
- package/helpers/angular/is-input.js +2 -3
- package/helpers/angular/is-input.js.map +1 -1
- package/helpers/angular/is-standalone.d.ts +1 -1
- package/helpers/angular/is-standalone.js +3 -4
- package/helpers/angular/is-standalone.js.map +1 -1
- package/helpers/build-file-assets.js +1 -1
- package/helpers/build-file-assets.js.map +1 -1
- package/helpers/build-file-entity.js +45 -48
- package/helpers/build-file-entity.js.map +1 -1
- package/helpers/build-indexes.js +41 -45
- package/helpers/build-indexes.js.map +1 -1
- package/helpers/construct-page-keyword.d.ts +10 -0
- package/helpers/construct-page-keyword.js +24 -0
- package/helpers/construct-page-keyword.js.map +1 -0
- package/helpers/create-builder-context.js +12 -11
- package/helpers/create-builder-context.js.map +1 -1
- package/helpers/create-import-path.js.map +1 -1
- package/helpers/{get-demo-class-declarations.js → demo/get-demo-class-declarations.js} +1 -2
- package/helpers/demo/get-demo-class-declarations.js.map +1 -0
- package/helpers/demo/index.d.ts +1 -1
- package/helpers/demo/index.js +1 -1
- package/helpers/extract-selectors.d.ts +7 -2
- package/helpers/extract-selectors.js +16 -3
- package/helpers/extract-selectors.js.map +1 -1
- package/helpers/filter-useless-members.d.ts +2 -2
- package/helpers/filter-useless-members.js.map +1 -1
- package/helpers/format-code.js +3 -4
- package/helpers/format-code.js.map +1 -1
- package/helpers/format-keyword-key.d.ts +5 -0
- package/helpers/{keyword-key.js → format-keyword-key.js} +3 -3
- package/helpers/format-keyword-key.js.map +1 -0
- package/helpers/get-declaration-by-path.d.ts +8 -0
- package/helpers/get-declaration-by-path.js +30 -0
- package/helpers/get-declaration-by-path.js.map +1 -0
- package/helpers/get-declaration-type.js +1 -1
- package/helpers/get-declaration-type.js.map +1 -1
- package/helpers/get-js-doc.d.ts +35 -0
- package/helpers/get-js-doc.js +121 -0
- package/helpers/get-js-doc.js.map +1 -0
- package/helpers/import-fresh-esm.js +10 -12
- package/helpers/import-fresh-esm.js.map +1 -1
- package/helpers/index.d.ts +7 -13
- package/helpers/index.js +7 -13
- package/helpers/index.js.map +1 -1
- package/helpers/is-public-declaration.d.ts +6 -0
- package/helpers/is-public-declaration.js +16 -0
- package/helpers/is-public-declaration.js.map +1 -0
- package/helpers/is-supported-declaration.d.ts +2 -2
- package/helpers/is-supported-declaration.js.map +1 -1
- package/helpers/load-config.js +1 -2
- package/helpers/load-config.js.map +1 -1
- package/helpers/markdown-to-html.js +16 -10
- package/helpers/markdown-to-html.js.map +1 -1
- package/helpers/minify-html.d.ts +5 -0
- package/helpers/minify-html.js +22 -0
- package/helpers/minify-html.js.map +1 -0
- package/helpers/playground/build-playground-metadata.js +15 -11
- package/helpers/playground/build-playground-metadata.js.map +1 -1
- package/helpers/playground/get-playground-inputs.js +6 -6
- package/helpers/playground/get-playground-inputs.js.map +1 -1
- package/helpers/playground/get-playgrounds-class-declarations.d.ts +6 -0
- package/helpers/playground/get-playgrounds-class-declarations.js +26 -0
- package/helpers/playground/get-playgrounds-class-declarations.js.map +1 -0
- package/helpers/playground/get-playgrounds-ids.js +2 -3
- package/helpers/playground/get-playgrounds-ids.js.map +1 -1
- package/helpers/playground/get-target-for-playground.js +4 -3
- package/helpers/playground/get-target-for-playground.js.map +1 -1
- package/helpers/playground/index.d.ts +1 -0
- package/helpers/playground/index.js +1 -0
- package/helpers/playground/index.js.map +1 -1
- package/helpers/presentation.js +3 -6
- package/helpers/presentation.js.map +1 -1
- package/helpers/print.d.ts +0 -15
- package/helpers/print.js +0 -24
- package/helpers/print.js.map +1 -1
- package/helpers/process-legacy-snippets.js +7 -8
- package/helpers/process-legacy-snippets.js.map +1 -1
- package/helpers/process-snippets.js +4 -5
- package/helpers/process-snippets.js.map +1 -1
- package/helpers/remove-lines-from-code.js +1 -2
- package/helpers/remove-lines-from-code.js.map +1 -1
- package/helpers/snippets-from-asset.js +8 -2
- package/helpers/snippets-from-asset.js.map +1 -1
- package/helpers/sort-navigation-entities.d.ts +3 -3
- package/helpers/sort-navigation-entities.js +9 -9
- package/helpers/sort-navigation-entities.js.map +1 -1
- package/helpers/to-template-string.js +5 -2
- package/helpers/to-template-string.js.map +1 -1
- package/helpers/typescript/accessor/group-accessors.js +2 -2
- package/helpers/typescript/accessor/group-accessors.js.map +1 -1
- package/helpers/typescript/create-project.js +19 -1
- package/helpers/typescript/create-project.js.map +1 -1
- package/helpers/typescript/declaration-import.d.ts +2 -2
- package/helpers/typescript/declaration-import.js.map +1 -1
- package/helpers/typescript/display-type.d.ts +2 -1
- package/helpers/typescript/display-type.js +2 -1
- package/helpers/typescript/display-type.js.map +1 -1
- package/helpers/typescript/exclude-by-js-doc-tags.d.ts +7 -0
- package/helpers/typescript/exclude-by-js-doc-tags.js +14 -0
- package/helpers/typescript/exclude-by-js-doc-tags.js.map +1 -0
- package/helpers/typescript/find-declarations.d.ts +10 -0
- package/helpers/typescript/find-declarations.js +35 -0
- package/helpers/typescript/find-declarations.js.map +1 -0
- package/helpers/typescript/first-node-with-comment.d.ts +1 -1
- package/helpers/typescript/first-node-with-comment.js +1 -2
- package/helpers/typescript/first-node-with-comment.js.map +1 -1
- package/helpers/typescript/get-object-expression-from-default.js +4 -4
- package/helpers/typescript/get-object-expression-from-default.js.map +1 -1
- package/helpers/typescript/index.d.ts +2 -1
- package/helpers/typescript/index.js +2 -1
- package/helpers/typescript/index.js.map +1 -1
- package/helpers/typescript/interface/find-interface.js +1 -1
- package/helpers/typescript/interface/find-interface.js.map +1 -1
- package/helpers/typescript/interface/for-all-interfaces.js +1 -1
- package/helpers/typescript/interface/for-all-interfaces.js.map +1 -1
- package/helpers/typescript/interface/get-interface-member.d.ts +2 -2
- package/helpers/typescript/interface/get-interface-member.js.map +1 -1
- package/helpers/typescript/member/find-member.d.ts +3 -3
- package/helpers/typescript/member/find-member.js +3 -3
- package/helpers/typescript/member/find-member.js.map +1 -1
- package/helpers/typescript/member/get-implemented-member.d.ts +2 -2
- package/helpers/typescript/member/get-implemented-member.js +1 -1
- package/helpers/typescript/member/get-implemented-member.js.map +1 -1
- package/helpers/typescript/member/get-inherited-parent.d.ts +2 -2
- package/helpers/typescript/member/get-inherited-parent.js.map +1 -1
- package/helpers/typescript/member/get-member-parent.d.ts +2 -2
- package/helpers/typescript/member/get-member-parent.js.map +1 -1
- package/helpers/typescript/member/get-overridden-member.d.ts +2 -2
- package/helpers/typescript/member/get-overridden-member.js.map +1 -1
- package/helpers/typescript/member/member-type.d.ts +9 -4
- package/helpers/typescript/member/member-type.js +12 -0
- package/helpers/typescript/member/member-type.js.map +1 -1
- package/helpers/typescript/method/get-method-chain.js.map +1 -1
- package/helpers/typescript/node/sort-by-nodes-name.js +1 -1
- package/helpers/typescript/node/sort-by-nodes-name.js.map +1 -1
- package/helpers/typescript/property/get-property-assignment.d.ts +1 -1
- package/helpers/typescript/property/get-property-assignment.js +2 -3
- package/helpers/typescript/property/get-property-assignment.js.map +1 -1
- package/helpers/utils.d.ts +6 -0
- package/helpers/utils.js +12 -0
- package/helpers/utils.js.map +1 -0
- package/interfaces/action-output.d.ts +2 -2
- package/interfaces/builder-context.d.ts +7 -5
- package/interfaces/configuration.d.ts +16 -2
- package/interfaces/entity-keyword.d.ts +1 -1
- package/interfaces/index.d.ts +0 -1
- package/interfaces/index.js +0 -1
- package/interfaces/index.js.map +1 -1
- package/interfaces/renderer-options.d.ts +1 -1
- package/operators/index.d.ts +0 -2
- package/operators/index.js +0 -2
- package/operators/index.js.map +1 -1
- package/package.json +16 -14
- package/parsers/helpers/param.js +1 -1
- package/parsers/helpers/param.js.map +1 -1
- package/parsers/parse-code-block-params.js +3 -3
- package/parsers/parse-code-block-params.js.map +1 -1
- package/parsers/parse-snippet.js +2 -2
- package/parsers/parse-snippet.js.map +1 -1
- package/schematics/api/files/ng-doc.api.ts.template +1 -1
- package/schematics/api/index.js +2 -3
- package/schematics/api/index.js.map +1 -1
- package/schematics/category/index.js +10 -7
- package/schematics/category/index.js.map +1 -1
- package/schematics/category/schema.json +54 -54
- package/schematics/migration.json +8 -8
- package/schematics/migrations/standalone-pages/index.js +13 -6
- package/schematics/migrations/standalone-pages/index.js.map +1 -1
- package/schematics/ng-update/index.js +2 -4
- package/schematics/ng-update/index.js.map +1 -1
- package/schematics/ng-update/steps/{update-git-ignore.d.ts → update-pages.d.ts} +1 -1
- package/schematics/ng-update/steps/update-pages.js +89 -0
- package/schematics/ng-update/steps/update-pages.js.map +1 -0
- package/schematics/page/files/index.md.template +3 -1
- package/schematics/page/files/ng-doc.page.ts.template +1 -2
- package/schematics/page/index.js +12 -7
- package/schematics/page/index.js.map +1 -1
- package/schematics/page/schema.d.ts +2 -5
- package/schematics/page/schema.json +44 -49
- package/schematics/utils/get-project.js +1 -2
- package/schematics/utils/get-project.js.map +1 -1
- package/scripts/restore-theme.js +6 -0
- package/templates/api/base.html.nunj +9 -19
- package/templates/api/class-declaration.html.nunj +57 -0
- package/templates/api/details/class-declaration.html.nunj +47 -0
- package/templates/api/details/enum-declaration.html.nunj +0 -0
- package/templates/api/details/function-declaration.html.nunj +14 -0
- package/templates/api/details/helpers/decorators.html.nunj +14 -0
- package/templates/api/details/helpers/extends.html.nunj +6 -0
- package/templates/api/details/helpers/selectors.html.nunj +12 -0
- package/templates/api/details/helpers/type-parameters.html.nunj +14 -0
- package/templates/api/details/interface-declaration.html.nunj +27 -0
- package/templates/api/details/type-alias-declaration.html.nunj +14 -0
- package/templates/api/details/variable-declaration.html.nunj +0 -0
- package/templates/api/details.html.nunj +9 -0
- package/templates/api/{enum.html.nunj → enum-declaration.html.nunj} +3 -5
- package/templates/api/function-declaration.html.nunj +24 -0
- package/templates/api/interface-declaration.html.nunj +27 -0
- package/templates/api/type-alias-declaration.html.nunj +8 -0
- package/templates/api/variable-declaration.html.nunj +8 -0
- package/templates/api-header.html.nunj +11 -0
- package/templates/api-list.ts.nunj +10 -21
- package/templates/api-page-content.html.nunj +1 -15
- package/templates/context.ts.nunj +48 -33
- package/templates/helpers/accessor.html.nunj +50 -47
- package/templates/helpers/code.html.nunj +1 -2
- package/templates/helpers/constructor.html.nunj +24 -26
- package/templates/helpers/members.html.nunj +26 -20
- package/templates/helpers/method.html.nunj +58 -44
- package/templates/helpers/no-content.html.nunj +1 -1
- package/templates/helpers/overload.html.nunj +47 -0
- package/templates/helpers/parameters.html.nunj +37 -37
- package/templates/helpers/properties.html.nunj +43 -37
- package/templates/helpers/status.html.nunj +37 -0
- package/templates/helpers/type.html.nunj +4 -0
- package/templates/index.ts.nunj +2 -2
- package/templates/page-header.html.nunj +5 -0
- package/templates/page-wrapper.ts.nunj +42 -0
- package/templates/page.ts.nunj +55 -38
- package/templates/parts/page-tags.html.nunj +0 -15
- package/templates/parts/see-also.html.nunj +1 -1
- package/templates/parts/usage-notes.html.nunj +1 -1
- package/templates/playgrounds.ts.nunj +1 -1
- package/templates/routes.ts.nunj +27 -0
- package/types/action.d.ts +2 -3
- package/types/index.d.ts +1 -1
- package/types/index.js +1 -1
- package/types/index.js.map +1 -1
- package/types/supported-declaration.d.ts +2 -0
- package/types/supported-declaration.js +3 -0
- package/types/supported-declaration.js.map +1 -0
- package/engine/actions/demo-pane.action.js.map +0 -1
- package/engine/actions/demo.action.js.map +0 -1
- package/engine/actions/playground.action.js.map +0 -1
- package/engine/actions.js.map +0 -1
- package/engine/builder-operators/add-build-candidates.d.ts +0 -8
- package/engine/builder-operators/add-build-candidates.js +0 -26
- package/engine/builder-operators/add-build-candidates.js.map +0 -1
- package/engine/builder-operators/build.d.ts +0 -11
- package/engine/builder-operators/build.js +0 -22
- package/engine/builder-operators/build.js.map +0 -1
- package/engine/builder-operators/collect-garbage.d.ts +0 -7
- package/engine/builder-operators/collect-garbage.js +0 -19
- package/engine/builder-operators/collect-garbage.js.map +0 -1
- package/engine/builder-operators/compile.d.ts +0 -6
- package/engine/builder-operators/compile.js +0 -19
- package/engine/builder-operators/compile.js.map +0 -1
- package/engine/builder-operators/dependency-changes.d.ts +0 -9
- package/engine/builder-operators/dependency-changes.js +0 -23
- package/engine/builder-operators/dependency-changes.js.map +0 -1
- package/engine/builder-operators/emit.d.ts +0 -6
- package/engine/builder-operators/emit.js +0 -13
- package/engine/builder-operators/emit.js.map +0 -1
- package/engine/builder-operators/index.d.ts +0 -9
- package/engine/builder-operators/index.js +0 -13
- package/engine/builder-operators/index.js.map +0 -1
- package/engine/builder-operators/load.d.ts +0 -7
- package/engine/builder-operators/load.js +0 -20
- package/engine/builder-operators/load.js.map +0 -1
- package/engine/builder-operators/post-build.d.ts +0 -6
- package/engine/builder-operators/post-build.js +0 -22
- package/engine/builder-operators/post-build.js.map +0 -1
- package/engine/builder-operators/post-process.d.ts +0 -12
- package/engine/builder-operators/post-process.js +0 -29
- package/engine/builder-operators/post-process.js.map +0 -1
- package/engine/builder-operators/print-output.d.ts +0 -7
- package/engine/builder-operators/print-output.js +0 -52
- package/engine/builder-operators/print-output.js.map +0 -1
- package/engine/builder-operators/refresh.d.ts +0 -6
- package/engine/builder-operators/refresh.js +0 -19
- package/engine/builder-operators/refresh.js.map +0 -1
- package/engine/builder-operators/task.d.ts +0 -23
- package/engine/builder-operators/task.js +0 -43
- package/engine/builder-operators/task.js.map +0 -1
- package/engine/builder-operators/to-builder-output.d.ts +0 -6
- package/engine/builder-operators/to-builder-output.js +0 -12
- package/engine/builder-operators/to-builder-output.js.map +0 -1
- package/engine/builder-operators/update-cache.d.ts +0 -7
- package/engine/builder-operators/update-cache.js +0 -14
- package/engine/builder-operators/update-cache.js.map +0 -1
- package/engine/entities/abstractions/entity.d.ts +0 -122
- package/engine/entities/abstractions/entity.js +0 -186
- package/engine/entities/abstractions/entity.js.map +0 -1
- package/engine/entities/abstractions/file.entity.d.ts +0 -28
- package/engine/entities/abstractions/file.entity.js +0 -68
- package/engine/entities/abstractions/file.entity.js.map +0 -1
- package/engine/entities/abstractions/module.entity.d.ts +0 -25
- package/engine/entities/abstractions/module.entity.js +0 -57
- package/engine/entities/abstractions/module.entity.js.map +0 -1
- package/engine/entities/abstractions/navigation.entity.d.ts +0 -27
- package/engine/entities/abstractions/navigation.entity.js +0 -36
- package/engine/entities/abstractions/navigation.entity.js.map +0 -1
- package/engine/entities/abstractions/route.entity.d.ts +0 -35
- package/engine/entities/abstractions/route.entity.js +0 -68
- package/engine/entities/abstractions/route.entity.js.map +0 -1
- package/engine/entities/abstractions/source-file.entity.d.ts +0 -38
- package/engine/entities/abstractions/source-file.entity.js +0 -69
- package/engine/entities/abstractions/source-file.entity.js.map +0 -1
- package/engine/entities/api-list.entity.d.ts +0 -20
- package/engine/entities/api-list.entity.js +0 -74
- package/engine/entities/api-list.entity.js.map +0 -1
- package/engine/entities/api-page.entity.d.ts +0 -36
- package/engine/entities/api-page.entity.js +0 -140
- package/engine/entities/api-page.entity.js.map +0 -1
- package/engine/entities/api-scope.entity.d.ts +0 -41
- package/engine/entities/api-scope.entity.js +0 -115
- package/engine/entities/api-scope.entity.js.map +0 -1
- package/engine/entities/api.entity.d.ts +0 -27
- package/engine/entities/api.entity.js +0 -118
- package/engine/entities/api.entity.js.map +0 -1
- package/engine/entities/cache/cache.js.map +0 -1
- package/engine/entities/cache/cached-files-initializer.js.map +0 -1
- package/engine/entities/cache/cached-props-initializer.js.map +0 -1
- package/engine/entities/cache/decorators/cached-entity.js.map +0 -1
- package/engine/entities/cache/decorators/cached-files-getter.js.map +0 -1
- package/engine/entities/cache/decorators/cached-property.js.map +0 -1
- package/engine/entities/cache/decorators/index.js.map +0 -1
- package/engine/entities/cache/helpers/create-cache-for-file.js.map +0 -1
- package/engine/entities/cache/helpers/create-cache.js.map +0 -1
- package/engine/entities/cache/helpers/get-cache-dir-path.js.map +0 -1
- package/engine/entities/cache/helpers/get-cache-file-path.js.map +0 -1
- package/engine/entities/cache/helpers/index.js.map +0 -1
- package/engine/entities/cache/helpers/invalidate-cache-if-needed.js.map +0 -1
- package/engine/entities/cache/helpers/is-cache-valid.js.map +0 -1
- package/engine/entities/cache/helpers/load-cache.js.map +0 -1
- package/engine/entities/cache/helpers/update-cache.js.map +0 -1
- package/engine/entities/cache/index.js.map +0 -1
- package/engine/entities/cache/interfaces/cache-accessor.js.map +0 -1
- package/engine/entities/cache/interfaces/cached-data.d.ts +0 -5
- package/engine/entities/cache/interfaces/cached-data.js.map +0 -1
- package/engine/entities/cache/interfaces/index.js.map +0 -1
- package/engine/entities/category.entity.d.ts +0 -28
- package/engine/entities/category.entity.js +0 -108
- package/engine/entities/category.entity.js.map +0 -1
- package/engine/entities/context.entity.d.ts +0 -11
- package/engine/entities/context.entity.js +0 -34
- package/engine/entities/context.entity.js.map +0 -1
- package/engine/entities/index-file.entity.d.ts +0 -12
- package/engine/entities/index-file.entity.js +0 -57
- package/engine/entities/index-file.entity.js.map +0 -1
- package/engine/entities/index.d.ts +0 -13
- package/engine/entities/index.js +0 -17
- package/engine/entities/index.js.map +0 -1
- package/engine/entities/indexes.entity.d.ts +0 -12
- package/engine/entities/indexes.entity.js +0 -35
- package/engine/entities/indexes.entity.js.map +0 -1
- package/engine/entities/keywords.entity.d.ts +0 -12
- package/engine/entities/keywords.entity.js +0 -32
- package/engine/entities/keywords.entity.js.map +0 -1
- package/engine/entities/page-demo.entity.d.ts +0 -20
- package/engine/entities/page-demo.entity.js +0 -96
- package/engine/entities/page-demo.entity.js.map +0 -1
- package/engine/entities/page-playground.entity.d.ts +0 -22
- package/engine/entities/page-playground.entity.js +0 -101
- package/engine/entities/page-playground.entity.js.map +0 -1
- package/engine/entities/page.entity.d.ts +0 -33
- package/engine/entities/page.entity.js +0 -175
- package/engine/entities/page.entity.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/add-to-dependencies.plugin.d.ts +0 -5
- package/engine/entities/plugins/entity-plugins/add-to-dependencies.plugin.js +0 -19
- package/engine/entities/plugins/entity-plugins/add-to-dependencies.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/apply.plugin.d.ts +0 -26
- package/engine/entities/plugins/entity-plugins/apply.plugin.js +0 -64
- package/engine/entities/plugins/entity-plugins/apply.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/extract-snippets.plugin.d.ts +0 -6
- package/engine/entities/plugins/entity-plugins/extract-snippets.plugin.js +0 -22
- package/engine/entities/plugins/entity-plugins/extract-snippets.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/fill-indexes.plugin.d.ts +0 -6
- package/engine/entities/plugins/entity-plugins/fill-indexes.plugin.js +0 -26
- package/engine/entities/plugins/entity-plugins/fill-indexes.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/index.d.ts +0 -9
- package/engine/entities/plugins/entity-plugins/index.js +0 -13
- package/engine/entities/plugins/entity-plugins/index.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/markdown-to-html.plugin.d.ts +0 -5
- package/engine/entities/plugins/entity-plugins/markdown-to-html.plugin.js +0 -20
- package/engine/entities/plugins/entity-plugins/markdown-to-html.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/post-process-html.plugin.d.ts +0 -5
- package/engine/entities/plugins/entity-plugins/post-process-html.plugin.js +0 -17
- package/engine/entities/plugins/entity-plugins/post-process-html.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/process-html.plugin.d.ts +0 -5
- package/engine/entities/plugins/entity-plugins/process-html.plugin.js +0 -17
- package/engine/entities/plugins/entity-plugins/process-html.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/remove-lines.plugin.d.ts +0 -6
- package/engine/entities/plugins/entity-plugins/remove-lines.plugin.js +0 -22
- package/engine/entities/plugins/entity-plugins/remove-lines.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/wrap-code.plugin.d.ts +0 -6
- package/engine/entities/plugins/entity-plugins/wrap-code.plugin.js +0 -20
- package/engine/entities/plugins/entity-plugins/wrap-code.plugin.js.map +0 -1
- package/engine/entities/plugins/helpers/execute-plugins.d.ts +0 -10
- package/engine/entities/plugins/helpers/execute-plugins.js +0 -17
- package/engine/entities/plugins/helpers/execute-plugins.js.map +0 -1
- package/engine/entities/plugins/helpers/index.d.ts +0 -1
- package/engine/entities/plugins/helpers/index.js +0 -5
- package/engine/entities/plugins/helpers/index.js.map +0 -1
- package/engine/entities/plugins/index.d.ts +0 -3
- package/engine/entities/plugins/index.js +0 -7
- package/engine/entities/plugins/index.js.map +0 -1
- package/engine/entities/plugins/types/entity-plugin.d.ts +0 -5
- package/engine/entities/plugins/types/entity-plugin.js.map +0 -1
- package/engine/entities/plugins/types/index.d.ts +0 -1
- package/engine/entities/plugins/types/index.js.map +0 -1
- package/engine/entities/routes.entity.d.ts +0 -11
- package/engine/entities/routes.entity.js +0 -37
- package/engine/entities/routes.entity.js.map +0 -1
- package/engine/entity-emitter.d.ts +0 -18
- package/engine/entity-emitter.js +0 -49
- package/engine/entity-emitter.js.map +0 -1
- package/engine/entity-store.d.ts +0 -19
- package/engine/entity-store.js +0 -82
- package/engine/entity-store.js.map +0 -1
- package/engine/functions/build-candidates.d.ts +0 -10
- package/engine/functions/build-candidates.js +0 -47
- package/engine/functions/build-candidates.js.map +0 -1
- package/engine/functions/if-not-cached-or-invalid.d.ts +0 -9
- package/engine/functions/if-not-cached-or-invalid.js +0 -18
- package/engine/functions/if-not-cached-or-invalid.js.map +0 -1
- package/engine/functions/index.d.ts +0 -2
- package/engine/functions/index.js +0 -6
- package/engine/functions/index.js.map +0 -1
- package/engine/ts-doc-formatter.d.ts +0 -5
- package/engine/ts-doc-formatter.js +0 -29
- package/engine/ts-doc-formatter.js.map +0 -1
- package/helpers/build-entity-keyword.d.ts +0 -10
- package/helpers/build-entity-keyword.js +0 -27
- package/helpers/build-entity-keyword.js.map +0 -1
- package/helpers/demo/assets-from-component-asset.d.ts +0 -6
- package/helpers/demo/assets-from-component-asset.js +0 -13
- package/helpers/demo/assets-from-component-asset.js.map +0 -1
- package/helpers/entity-type.d.ts +0 -51
- package/helpers/entity-type.js +0 -80
- package/helpers/entity-type.js.map +0 -1
- package/helpers/extract-docs.d.ts +0 -20
- package/helpers/extract-docs.js +0 -78
- package/helpers/extract-docs.js.map +0 -1
- package/helpers/extract-path-anchor.d.ts +0 -7
- package/helpers/extract-path-anchor.js +0 -17
- package/helpers/extract-path-anchor.js.map +0 -1
- package/helpers/generate-api-entities.d.ts +0 -6
- package/helpers/generate-api-entities.js +0 -68
- package/helpers/generate-api-entities.js.map +0 -1
- package/helpers/get-demo-class-declarations.js.map +0 -1
- package/helpers/get-entity-constructor.d.ts +0 -7
- package/helpers/get-entity-constructor.js +0 -24
- package/helpers/get-entity-constructor.js.map +0 -1
- package/helpers/get-keyword-type-from-entity.d.ts +0 -7
- package/helpers/get-keyword-type-from-entity.js +0 -20
- package/helpers/get-keyword-type-from-entity.js.map +0 -1
- package/helpers/get-page-type.d.ts +0 -7
- package/helpers/get-page-type.js +0 -12
- package/helpers/get-page-type.js.map +0 -1
- package/helpers/is-not-excluded-path.d.ts +0 -6
- package/helpers/is-not-excluded-path.js +0 -15
- package/helpers/is-not-excluded-path.js.map +0 -1
- package/helpers/keyword-key.d.ts +0 -5
- package/helpers/keyword-key.js.map +0 -1
- package/helpers/process-html.d.ts +0 -13
- package/helpers/process-html.js +0 -43
- package/helpers/process-html.js.map +0 -1
- package/helpers/typescript/exclude-by-ts-docs-tags.d.ts +0 -7
- package/helpers/typescript/exclude-by-ts-docs-tags.js +0 -17
- package/helpers/typescript/exclude-by-ts-docs-tags.js.map +0 -1
- package/helpers/unique-name.d.ts +0 -5
- package/helpers/unique-name.js +0 -21
- package/helpers/unique-name.js.map +0 -1
- package/interfaces/build-result.d.ts +0 -10
- package/interfaces/build-result.js.map +0 -1
- package/operators/buffer-until-once.d.ts +0 -6
- package/operators/buffer-until-once.js +0 -14
- package/operators/buffer-until-once.js.map +0 -1
- package/operators/error-handler.d.ts +0 -7
- package/operators/error-handler.js +0 -20
- package/operators/error-handler.js.map +0 -1
- package/operators/fork-join-or-empty.d.ts +0 -6
- package/operators/fork-join-or-empty.js +0 -12
- package/operators/fork-join-or-empty.js.map +0 -1
- package/schematics/ng-update/steps/update-angular-json.d.ts +0 -4
- package/schematics/ng-update/steps/update-angular-json.js +0 -73
- package/schematics/ng-update/steps/update-angular-json.js.map +0 -1
- package/schematics/ng-update/steps/update-git-ignore.js +0 -21
- package/schematics/ng-update/steps/update-git-ignore.js.map +0 -1
- package/schematics/ng-update/steps/update-ts-config.d.ts +0 -5
- package/schematics/ng-update/steps/update-ts-config.js +0 -38
- package/schematics/ng-update/steps/update-ts-config.js.map +0 -1
- package/schematics/page/files/ng-doc.module.ts.template +0 -9
- package/templates/api/class.html.nunj +0 -96
- package/templates/api/function.html.nunj +0 -20
- package/templates/api/interface.html.nunj +0 -46
- package/templates/api/type-alias.html.nunj +0 -10
- package/templates/api/variable.html.nunj +0 -10
- package/templates/api-page.ts.nunj +0 -41
- package/templates/routing.ts.nunj +0 -11
- package/types/supported-declarations.d.ts +0 -2
- package/types/supported-declarations.js +0 -3
- package/types/supported-declarations.js.map +0 -1
- /package/engine/{entities/cache → cache}/cache.d.ts +0 -0
- /package/engine/{entities/cache → cache}/cached-files-initializer.d.ts +0 -0
- /package/engine/{entities/cache → cache}/cached-props-initializer.d.ts +0 -0
- /package/engine/{entities/cache → cache}/decorators/cached-entity.d.ts +0 -0
- /package/engine/{entities/cache → cache}/decorators/cached-files-getter.d.ts +0 -0
- /package/engine/{entities/cache → cache}/decorators/cached-files-getter.js +0 -0
- /package/engine/{entities/cache → cache}/decorators/cached-property.d.ts +0 -0
- /package/engine/{entities/cache → cache}/decorators/cached-property.js +0 -0
- /package/engine/{entities/cache → cache}/decorators/index.d.ts +0 -0
- /package/engine/{entities/cache → cache}/decorators/index.js +0 -0
- /package/engine/{entities/cache → cache}/helpers/create-cache-for-file.d.ts +0 -0
- /package/engine/{entities/cache → cache}/helpers/create-cache-for-file.js +0 -0
- /package/engine/{entities/cache → cache}/helpers/get-cache-dir-path.d.ts +0 -0
- /package/engine/{entities/cache → cache}/helpers/get-cache-file-path.d.ts +0 -0
- /package/engine/{entities/cache → cache}/helpers/get-cache-file-path.js +0 -0
- /package/engine/{entities/cache → cache}/helpers/index.d.ts +0 -0
- /package/engine/{entities/cache → cache}/helpers/index.js +0 -0
- /package/engine/{entities/cache → cache}/helpers/invalidate-cache-if-needed.d.ts +0 -0
- /package/engine/{entities/cache → cache}/helpers/is-cache-valid.d.ts +0 -0
- /package/engine/{entities/cache → cache}/helpers/load-cache.js +0 -0
- /package/engine/{entities/cache → cache}/helpers/update-cache.js +0 -0
- /package/engine/{entities/cache → cache}/index.d.ts +0 -0
- /package/engine/{entities/cache → cache}/index.js +0 -0
- /package/engine/{entities/cache → cache}/interfaces/cache-accessor.d.ts +0 -0
- /package/engine/{entities/cache → cache}/interfaces/cache-accessor.js +0 -0
- /package/engine/{entities/cache → cache}/interfaces/cached-data.js +0 -0
- /package/engine/{entities/cache → cache}/interfaces/index.d.ts +0 -0
- /package/engine/{entities/cache → cache}/interfaces/index.js +0 -0
- /package/helpers/{get-demo-class-declarations.d.ts → demo/get-demo-class-declarations.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-snippet.js","sourceRoot":"","sources":["../../../../libs/builder/parsers/parse-snippet.ts"],"names":[],"mappings":";;AASA,oCAmDC;;AA5DD,qDAA+B;AAG/B,uCAA8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AAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAC7E,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;QACjF,UAAU,EAAE,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,eAAe,CAAC,EAAE,CAAC,OAAO,CAAC;KACzE,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAE/C,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AACjD,CAAC"}
|
package/schematics/api/index.js
CHANGED
|
@@ -9,11 +9,10 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
9
9
|
*/
|
|
10
10
|
function generate(options) {
|
|
11
11
|
return (host) => {
|
|
12
|
-
|
|
13
|
-
const execPath = (_a = options === null || options === void 0 ? void 0 : options.path) !== null && _a !== void 0 ? _a : '';
|
|
12
|
+
const execPath = options?.path ?? '';
|
|
14
13
|
return (0, schematics_1.chain)([
|
|
15
14
|
(0, schematics_1.mergeWith)((0, schematics_1.apply)((0, schematics_1.url)('./files'), [
|
|
16
|
-
(0, schematics_1.applyTemplates)(
|
|
15
|
+
(0, schematics_1.applyTemplates)({ ...options }),
|
|
17
16
|
(0, schematics_1.move)(execPath),
|
|
18
17
|
(0, schematics_1.forEach)((fileEntry) => {
|
|
19
18
|
if (host.exists(fileEntry.path)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/schematics/api/index.ts"],"names":[],"mappings":";;AAqBA,4BAoBC;AAzCD,2DAYoC;AAIpC;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,OAA4B;IACpD,OAAO,CAAC,IAAU,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/schematics/api/index.ts"],"names":[],"mappings":";;AAqBA,4BAoBC;AAzCD,2DAYoC;AAIpC;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,OAA4B;IACpD,OAAO,CAAC,IAAU,EAAE,EAAE;QACrB,MAAM,QAAQ,GAAW,OAAO,EAAE,IAAI,IAAI,EAAE,CAAC;QAE7C,OAAO,IAAA,kBAAK,EAAC;YACZ,IAAA,sBAAS,EACR,IAAA,kBAAK,EAAC,IAAA,gBAAG,EAAC,SAAS,CAAC,EAAE;gBACrB,IAAA,2BAAc,EAAC,EAAE,GAAG,OAAO,EAAE,CAAC;gBAC9B,IAAA,iBAAI,EAAC,QAAQ,CAAC;gBACd,IAAA,oBAAO,EAAC,CAAC,SAAoB,EAAE,EAAE;oBAChC,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;wBACjC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;oBACnD,CAAC;oBACD,OAAO,SAAS,CAAC;gBAClB,CAAC,CAAC;aACF,CAAC,EACF,0BAAa,CAAC,SAAS,CACvB;SACD,CAAC,CAAC;IACJ,CAAC,CAAC;AACH,CAAC"}
|
|
@@ -15,15 +15,14 @@ const extract_default_export_name_1 = require("../utils/extract-default-export-n
|
|
|
15
15
|
*/
|
|
16
16
|
function generate(options) {
|
|
17
17
|
return (host) => {
|
|
18
|
-
var _a, _b, _c, _d;
|
|
19
18
|
options.title = (0, utils_1.getTitle)(options.title);
|
|
20
|
-
const categoryName =
|
|
19
|
+
const categoryName = options.name ?? `${(0, strings_1.classify)(options.title)}Category`;
|
|
21
20
|
(0, utils_1.varNameValidation)(categoryName);
|
|
22
|
-
const execPath =
|
|
23
|
-
const categoryFolder = (0, strings_1.dasherize)(
|
|
21
|
+
const execPath = options?.path ?? '';
|
|
22
|
+
const categoryFolder = (0, strings_1.dasherize)(options.name ?? '').replace(/-category$/, '') || (0, strings_1.dasherize)(options.title);
|
|
24
23
|
const path = (0, path_1.join)(execPath, `/${categoryFolder}`);
|
|
25
24
|
const closestCategoryFile = options.category
|
|
26
|
-
? (0, utils_1.findClosestFile)(host,
|
|
25
|
+
? (0, utils_1.findClosestFile)(host, options?.path ?? '', variables_1.CATEGORY_NAME)
|
|
27
26
|
: null;
|
|
28
27
|
const parentCategoryName = options.category && closestCategoryFile
|
|
29
28
|
? (0, extract_default_export_name_1.extractDefaultExportName)(host, closestCategoryFile)
|
|
@@ -33,8 +32,12 @@ function generate(options) {
|
|
|
33
32
|
: null;
|
|
34
33
|
return (0, schematics_1.chain)([
|
|
35
34
|
(0, schematics_1.mergeWith)((0, schematics_1.apply)((0, schematics_1.url)('./files'), [
|
|
36
|
-
(0, schematics_1.applyTemplates)(
|
|
37
|
-
|
|
35
|
+
(0, schematics_1.applyTemplates)({
|
|
36
|
+
...options,
|
|
37
|
+
categoryName,
|
|
38
|
+
parentCategoryName,
|
|
39
|
+
importPath: categoryImportPath,
|
|
40
|
+
}),
|
|
38
41
|
(0, schematics_1.move)(path),
|
|
39
42
|
(0, schematics_1.forEach)((fileEntry) => {
|
|
40
43
|
if (host.exists(fileEntry.path)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/schematics/category/index.ts"],"names":[],"mappings":";;AA2BA,4BA4CC;AAvED,oEAA6E;AAC7E,2DAYoC;AACpC,+BAAsC;AAEtC,sDAAuD;AACvD,+CAA4C;AAC5C,oCAAwE;AACxE,sFAAgF;AAGhF;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,OAAiC;IACzD,OAAO,CAAC,IAAU,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"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
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "NgDocPage",
|
|
4
|
+
"title": "NgDocPage schematic",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"path": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"format": "path",
|
|
10
|
+
"$default": {
|
|
11
|
+
"$source": "workingDirectory"
|
|
12
|
+
},
|
|
13
|
+
"description": "The path at which to create the entity file, relative to the current workspace. Default is a folder with the same name as the component in the project root.",
|
|
14
|
+
"visible": false
|
|
15
|
+
},
|
|
16
|
+
"title": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "The title of the page.",
|
|
19
|
+
"$default": {
|
|
20
|
+
"$source": "argv",
|
|
21
|
+
"index": 0
|
|
22
|
+
},
|
|
23
|
+
"x-prompt": "The title of your category (e.g. \"Getting Started\")?"
|
|
24
|
+
},
|
|
25
|
+
"name": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Name of the category variable (alias is `-n`, title in PascalCase by default)",
|
|
28
|
+
"alias": "n"
|
|
29
|
+
},
|
|
30
|
+
"route": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "The route of the page",
|
|
33
|
+
"alias": "r"
|
|
34
|
+
},
|
|
35
|
+
"category": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"description": "Automatically import the category.",
|
|
38
|
+
"alias": "c"
|
|
39
|
+
},
|
|
40
|
+
"order": {
|
|
41
|
+
"type": "number",
|
|
42
|
+
"description": "Order category in sidebar",
|
|
43
|
+
"alias": "o"
|
|
44
|
+
},
|
|
45
|
+
"expandable": {
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"description": "Determine if the category is expandable",
|
|
48
|
+
"alias": "e"
|
|
49
|
+
},
|
|
50
|
+
"expanded": {
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"description": "Determine if the category is expanded",
|
|
53
|
+
"alias": "x"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
56
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
"$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
|
+
"schematics": {
|
|
4
|
+
"migration-v18": {
|
|
5
|
+
"version": "18.0.0",
|
|
6
|
+
"description": "Updates NgDoc to v18",
|
|
7
|
+
"factory": "./ng-update/index#update"
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
10
|
}
|
|
@@ -35,11 +35,11 @@ function migrate(options) {
|
|
|
35
35
|
* @param sourceFile
|
|
36
36
|
*/
|
|
37
37
|
function getObjectExpressionFromDefault(sourceFile) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
const defaultExport = sourceFile
|
|
39
|
+
.getExportedDeclarations()
|
|
40
|
+
?.get('default')?.[0];
|
|
41
41
|
if (ng_morph_1.Node.isVariableDeclaration(defaultExport)) {
|
|
42
|
-
return defaultExport
|
|
42
|
+
return defaultExport?.getFirstChildByKindOrThrow(ng_morph_1.SyntaxKind.ObjectLiteralExpression);
|
|
43
43
|
}
|
|
44
44
|
return undefined;
|
|
45
45
|
}
|
|
@@ -61,11 +61,18 @@ function migrateProperty(original, destination, propertyName, newPropertyName =
|
|
|
61
61
|
if (ng_morph_1.Node.isPropertyAssignment(property) || ng_morph_1.Node.isShorthandPropertyAssignment(property)) {
|
|
62
62
|
if (ng_morph_1.Node.isPropertyAssignment(property)) {
|
|
63
63
|
const structure = property.getStructure();
|
|
64
|
-
destination.addProperty(
|
|
64
|
+
destination.addProperty({
|
|
65
|
+
...structure,
|
|
66
|
+
name: newPropertyName,
|
|
67
|
+
initializer: initializer(structure.initializer),
|
|
68
|
+
});
|
|
65
69
|
}
|
|
66
70
|
if (ng_morph_1.Node.isShorthandPropertyAssignment(property)) {
|
|
67
71
|
const structure = property.getStructure();
|
|
68
|
-
destination.addProperty(
|
|
72
|
+
destination.addProperty({
|
|
73
|
+
...structure,
|
|
74
|
+
name: newPropertyName,
|
|
75
|
+
});
|
|
69
76
|
}
|
|
70
77
|
const imports = sourceFile
|
|
71
78
|
.getImportDeclarations()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/builder/schematics/migrations/standalone-pages/index.ts"],"names":[],"mappings":";;AAuBA,0BAuCC;;AA7DD,uCAakB;AAClB,mDAA6B;AAI7B;;;GAGG;AACH,SAAgB,OAAO,CAAC,OAAmC;IAC1D,OAAO,CAAC,IAAU,EAAE,EAAE;QACrB,IAAA,2BAAgB,EACf,IAAA,wBAAa,EAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,8BAA8B,EAAE,sBAAsB,CAAC,CAAC,CAC3F,CAAC;QAEF,MAAM,WAAW,GAAG,IAAA,yBAAc,EAAC,8BAA8B,CAAC,CAAC;QAEnE,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;YACtC,MAAM,cAAc,GAAG,IAAA,yBAAc,EACpC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,gBAAgB,EAAE,EAAE,gBAAgB,CAAC,CAC1D,CAAC,CAAC,CAAC,CAAC;YAEL,IAAI,CAAC,cAAc,EAAE,CAAC;gBACrB,SAAS;YACV,CAAC;YAED,MAAM,gBAAgB,GAAG,8BAA8B,CAAC,UAAU,CAAC,CAAC;YACpE,MAAM,oBAAoB,GAAG,8BAA8B,CAAC,cAAc,CAAC,CAAC;YAE5E,IAAI,CAAC,gBAAgB,IAAI,CAAC,oBAAoB,EAAE,CAAC;gBAChD,SAAS;YACV,CAAC;YAED,eAAe,CACd,gBAAgB,EAChB,oBAAoB,EACpB,QAAQ,EACR,SAAS,EACT,CAAC,WAAmB,EAAE,EAAE,CAAC,IAAI,WAAW,GAAG,CAC3C,CAAC;YACF,eAAe,CAAC,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;YACzE,eAAe,CAAC,gBAAgB,EAAE,oBAAoB,EAAE,aAAa,CAAC,CAAC;YAEvE,UAAU,CAAC,MAAM,EAAE,CAAC;QACrB,CAAC;QAED,IAAA,4BAAiB,GAAE,CAAC;IACrB,CAAC,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,SAAS,8BAA8B,CACtC,UAAsB
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/builder/schematics/migrations/standalone-pages/index.ts"],"names":[],"mappings":";;AAuBA,0BAuCC;;AA7DD,uCAakB;AAClB,mDAA6B;AAI7B;;;GAGG;AACH,SAAgB,OAAO,CAAC,OAAmC;IAC1D,OAAO,CAAC,IAAU,EAAE,EAAE;QACrB,IAAA,2BAAgB,EACf,IAAA,wBAAa,EAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,8BAA8B,EAAE,sBAAsB,CAAC,CAAC,CAC3F,CAAC;QAEF,MAAM,WAAW,GAAG,IAAA,yBAAc,EAAC,8BAA8B,CAAC,CAAC;QAEnE,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;YACtC,MAAM,cAAc,GAAG,IAAA,yBAAc,EACpC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,gBAAgB,EAAE,EAAE,gBAAgB,CAAC,CAC1D,CAAC,CAAC,CAAC,CAAC;YAEL,IAAI,CAAC,cAAc,EAAE,CAAC;gBACrB,SAAS;YACV,CAAC;YAED,MAAM,gBAAgB,GAAG,8BAA8B,CAAC,UAAU,CAAC,CAAC;YACpE,MAAM,oBAAoB,G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AC,CAAC,iBAAoC,EAAE,EAAE,CAAC,iBAAiB,CAAC,YAAY,EAAE,CAAC,CACvF,CAAC;QACJ,CAAC;IACF,CAAC;AACF,CAAC;AAED;;;;GAIG;AACH,SAAS,SAAS,CAAC,IAAU,EAAE,MAAY;IAC1C,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QACrB,OAAO,IAAI,CAAC;IACb,CAAC;IAED,MAAM,CAAC,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;IAE3B,IAAI,CAAC,EAAE,CAAC;QACP,OAAO,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IAC7B,CAAC;IAED,OAAO,KAAK,CAAC;AACd,CAAC"}
|
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.update = update;
|
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const
|
|
6
|
-
const update_git_ignore_1 = require("./steps/update-git-ignore");
|
|
7
|
-
const update_ts_config_1 = require("./steps/update-ts-config");
|
|
5
|
+
const update_pages_1 = require("./steps/update-pages");
|
|
8
6
|
/**
|
|
9
7
|
*
|
|
10
8
|
*/
|
|
11
9
|
function update() {
|
|
12
|
-
return (0, schematics_1.chain)([(0,
|
|
10
|
+
return (0, schematics_1.chain)([(0, update_pages_1.updatePages)()]);
|
|
13
11
|
}
|
|
14
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/schematics/ng-update/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/schematics/ng-update/index.ts"],"names":[],"mappings":";;AAOA,wBAEC;AATD,2DAAyD;AAEzD,uDAAmD;AAEnD;;GAEG;AACH,SAAgB,MAAM;IACpB,OAAO,IAAA,kBAAK,EAAC,CAAC,IAAA,0BAAW,GAAE,CAAC,CAAC,CAAC;AAChC,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updatePages = updatePages;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const workspace_1 = require("@schematics/angular/utility/workspace");
|
|
6
|
+
const ng_morph_1 = require("ng-morph");
|
|
7
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
function updatePages() {
|
|
12
|
+
return async (tree) => {
|
|
13
|
+
return (0, workspace_1.updateWorkspace)(() => {
|
|
14
|
+
(0, ng_morph_1.setActiveProject)((0, ng_morph_1.createProject)(tree, './', ['**/**/ng-doc.page.ts']));
|
|
15
|
+
const sourceFiles = (0, ng_morph_1.getSourceFiles)('**/**/ng-doc.page.ts');
|
|
16
|
+
for (const sourceFile of sourceFiles) {
|
|
17
|
+
const objectExpression = getObjectExpressionFromDefault(sourceFile);
|
|
18
|
+
if (!objectExpression) {
|
|
19
|
+
continue;
|
|
20
|
+
}
|
|
21
|
+
removeTitleFromMarkdown(tree, objectExpression);
|
|
22
|
+
moveKeywordIntoMarkdown(tree, objectExpression);
|
|
23
|
+
}
|
|
24
|
+
(0, ng_morph_1.saveActiveProject)();
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @param sourceFile
|
|
31
|
+
*/
|
|
32
|
+
function getObjectExpressionFromDefault(sourceFile) {
|
|
33
|
+
const defaultExport = sourceFile
|
|
34
|
+
.getExportedDeclarations()
|
|
35
|
+
?.get('default')?.[0];
|
|
36
|
+
if (ng_morph_1.Node.isVariableDeclaration(defaultExport)) {
|
|
37
|
+
return defaultExport?.getFirstChildByKindOrThrow(ng_morph_1.SyntaxKind.ObjectLiteralExpression);
|
|
38
|
+
}
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @param tree
|
|
44
|
+
* @param objectExpression
|
|
45
|
+
*/
|
|
46
|
+
function removeTitleFromMarkdown(tree, objectExpression) {
|
|
47
|
+
const directoryPath = objectExpression.getSourceFile().getDirectoryPath();
|
|
48
|
+
const mdPathProperty = objectExpression.getProperty('mdFile');
|
|
49
|
+
if (mdPathProperty && ng_morph_1.Node.isPropertyAssignment(mdPathProperty)) {
|
|
50
|
+
const mdPathValue = mdPathProperty.getInitializer()?.getText();
|
|
51
|
+
if (mdPathValue) {
|
|
52
|
+
const mdPath = path_1.default.join(directoryPath, mdPathValue.replace(/['"]/g, ''));
|
|
53
|
+
const mdFile = tree.readText(mdPath);
|
|
54
|
+
if (mdFile) {
|
|
55
|
+
const newMdFile = mdFile.replace(/^\s*#?(\s)*{{(\s)*NgDocPage\.title(\s)*}}/m, '');
|
|
56
|
+
tree.overwrite(mdPath, newMdFile);
|
|
57
|
+
console.log('Removed title from:', mdPath);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @param tree
|
|
65
|
+
* @param objectExpression
|
|
66
|
+
*/
|
|
67
|
+
function moveKeywordIntoMarkdown(tree, objectExpression) {
|
|
68
|
+
const directoryPath = objectExpression.getSourceFile().getDirectoryPath();
|
|
69
|
+
const mdPathProperty = objectExpression.getProperty('mdFile');
|
|
70
|
+
const keywordProperty = objectExpression.getProperty('keyword');
|
|
71
|
+
if (mdPathProperty &&
|
|
72
|
+
ng_morph_1.Node.isPropertyAssignment(mdPathProperty) &&
|
|
73
|
+
keywordProperty &&
|
|
74
|
+
ng_morph_1.Node.isPropertyAssignment(keywordProperty)) {
|
|
75
|
+
const mdPathValue = mdPathProperty.getInitializer()?.getText();
|
|
76
|
+
const keywordValue = keywordProperty.getInitializer()?.getText();
|
|
77
|
+
if (mdPathValue && keywordValue) {
|
|
78
|
+
const mdPath = path_1.default.join(directoryPath, mdPathValue.replace(/['"]/g, ''));
|
|
79
|
+
const mdFile = tree.readText(mdPath);
|
|
80
|
+
if (mdFile) {
|
|
81
|
+
const newMdFile = `---\nkeyword: ${keywordValue}\n---\n${mdFile}`;
|
|
82
|
+
tree.overwrite(mdPath, newMdFile);
|
|
83
|
+
}
|
|
84
|
+
keywordProperty.remove();
|
|
85
|
+
console.log('Moved keyword into:', mdPath);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=update-pages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-pages.js","sourceRoot":"","sources":["../../../../../../libs/builder/schematics/ng-update/steps/update-pages.ts"],"names":[],"mappings":";;AAkBA,kCAqBC;;AAtCD,qEAAwE;AACxE,uCAUkB;AAClB,wDAAwB;AAExB;;GAEG;AACH,SAAgB,WAAW;IACzB,OAAO,KAAK,EAAE,IAAU,EAAE,EAAE;QAC1B,OAAO,IAAA,2BAAe,EAAC,GAAG,EAAE;YAC1B,IAAA,2BAAgB,EAAC,IAAA,wBAAa,EAAC,IAAI,EAAE,IAAI,EAAE,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC;YAEtE,MAAM,WAAW,GAAG,IAAA,yBAAc,EAAC,sBAAsB,CAAC,CAAC;YAE3D,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;gBACrC,MAAM,gBAAgB,GAAG,8BAA8B,CAAC,UAAU,CAAC,CAAC;gBAEpE,IAAI,CAAC,gBAAgB,EAAE,CAAC;oBACtB,SAAS;gBACX,CAAC;gBAED,uBAAuB,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;gBAChD,uBAAuB,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;YAClD,CAAC;YAED,IAAA,4BAAiB,GAAE,CAAC;QACtB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAED;;;G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B,CAAC,IAAU,EAAE,gBAAyC;IACpF,MAAM,aAAa,GAAG,gBAAgB,CAAC,aAAa,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC1E,MAAM,cAAc,GAAG,gBAAgB,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC9D,MAAM,eAAe,GAAG,gBAAgB,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IAEhE,IACE,cAAc;QACd,eAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC;QACzC,eAAe;QACf,eAAI,CAAC,oBAAoB,CAAC,eAAe,CAAC,EAC1C,CAAC;QACD,MAAM,WAAW,GAAG,cAAc,CAAC,cAAc,EAAE,EAAE,OAAO,EAAE,CAAC;QAC/D,MAAM,YAAY,GAAG,eAAe,CAAC,cAAc,EAAE,EAAE,OAAO,EAAE,CAAC;QAEjE,IAAI,WAAW,IAAI,YAAY,EAAE,CAAC;YAChC,MAAM,MAAM,GAAG,cAAI,CAAC,IAAI,CAAC,aAAa,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;YAC1E,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YAErC,IAAI,MAAM,EAAE,CAAC;gBACX,MAAM,SAAS,GAAG,iBAAiB,YAAY,UAAU,MAAM,EAAE,CAAC;gBAElE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;YACpC,CAAC;YAED,eAAe,CAAC,MAAM,EAAE,CAAC;YAEzB,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -7,8 +7,7 @@ const <%= pageName %>: NgDocPage = {
|
|
|
7
7
|
mdFile: './index.md',<% if (route) { %>
|
|
8
8
|
route: `<%= route %>`,<% } %><% if (importPath && categoryName) { %>
|
|
9
9
|
category: <%= categoryName %>,<% } %><% if (order) { %>
|
|
10
|
-
order: <%= order %>,<% } %><% if (
|
|
11
|
-
keyword: `<%= keyword %>`,<% } %><% if (module) { %>
|
|
10
|
+
order: <%= order %>,<% } %><% if (module) { %>
|
|
12
11
|
imports: [<%= pageName %>Module],<% } %>
|
|
13
12
|
};
|
|
14
13
|
|
package/schematics/page/index.js
CHANGED
|
@@ -16,12 +16,12 @@ const demoTemplates = ['ng-doc.module.ts.template'];
|
|
|
16
16
|
*/
|
|
17
17
|
function generate(options) {
|
|
18
18
|
return (host) => {
|
|
19
|
-
|
|
19
|
+
const pageName = options.name ?? (0, strings_1.classify)(options.title + 'Page');
|
|
20
20
|
options.title = (0, utils_1.getTitle)(options.title);
|
|
21
|
-
|
|
21
|
+
options.keyword = options.keyword ?? pageName;
|
|
22
22
|
(0, utils_1.varNameValidation)(pageName);
|
|
23
|
-
const execPath =
|
|
24
|
-
const pageFolder = (0, strings_1.dasherize)(
|
|
23
|
+
const execPath = options?.path ?? '';
|
|
24
|
+
const pageFolder = (0, strings_1.dasherize)(options.name ?? '').replace(/-page$/, '') || (0, strings_1.dasherize)(options.title);
|
|
25
25
|
const path = (0, path_1.join)(execPath, `/${pageFolder}`);
|
|
26
26
|
const closestCategoryFile = (options.category && (0, utils_1.findClosestFile)(host, execPath, variables_1.CATEGORY_NAME)) || null;
|
|
27
27
|
const categoryConstantName = (options.category &&
|
|
@@ -32,9 +32,14 @@ function generate(options) {
|
|
|
32
32
|
null;
|
|
33
33
|
return (0, schematics_1.chain)([
|
|
34
34
|
(0, schematics_1.mergeWith)((0, schematics_1.apply)((0, schematics_1.url)('./files'), [
|
|
35
|
-
(0, schematics_1.filter)((path) =>
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
(0, schematics_1.filter)((path) => !demoTemplates.includes((0, path_1.basename)(path))),
|
|
36
|
+
(0, schematics_1.applyTemplates)({
|
|
37
|
+
...options,
|
|
38
|
+
categoryName: categoryConstantName,
|
|
39
|
+
importPath: categoryImportPath,
|
|
40
|
+
pageName,
|
|
41
|
+
keyword: options.keyword,
|
|
42
|
+
}),
|
|
38
43
|
(0, schematics_1.move)(path),
|
|
39
44
|
(0, schematics_1.forEach)((fileEntry) => {
|
|
40
45
|
if (host.exists(fileEntry.path)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/schematics/page/index.ts"],"names":[],"mappings":";;AA8BA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/schematics/page/index.ts"],"names":[],"mappings":";;AA8BA,4BA+CC;AA7ED,oEAA6E;AAC7E,2DAaoC;AACpC,+BAAgD;AAEhD,sDAAuD;AACvD,+CAA4C;AAC5C,oCAAwE;AACxE,sFAAgF;AAGhF,MAAM,aAAa,GAAa,CAAC,2BAA2B,CAAC,CAAC;AAE9D;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,OAA6B;IACpD,OAAO,CAAC,IAAU,EAAE,EAAE;QACpB,MAAM,QAAQ,GAAW,OAAO,CAAC,IAAI,IAAI,IAAA,kBAAQ,EAAC,OAAO,CAAC,KAAK,GAAG,MAAM,CAAC,CAAC;QAE1E,OAAO,CAAC,KAAK,GAAG,IAAA,gBAAQ,EAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACxC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,QAAQ,CAAC;QAE9C,IAAA,yBAAiB,EAAC,QAAQ,CAAC,CAAC;QAE5B,MAAM,QAAQ,GAAW,OAAO,EAAE,IAAI,IAAI,EAAE,CAAC;QAC7C,MAAM,UAAU,GACd,IAAA,mBAAS,EAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,IAAA,mBAAS,EAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAClF,MAAM,IAAI,GAAW,IAAA,WAAI,EAAC,QAAQ,EAAE,IAAI,UAAU,EAAE,C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AAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { SchematicArgv } from '../schematic-argv';
|
|
2
2
|
/**
|
|
3
3
|
* The interface describes the possible parameters for generating the page,
|
|
4
|
-
* the generator can be called by the command below
|
|
4
|
+
* the generator can be called by the command below 123
|
|
5
5
|
*
|
|
6
6
|
* ```bash
|
|
7
7
|
* ng g @ng-doc/builder:page
|
|
8
8
|
* ```
|
|
9
9
|
*
|
|
10
10
|
* Here is an example showing how you can call a generator with all parameters
|
|
11
|
+
*
|
|
11
12
|
* ```bash
|
|
12
13
|
* ng g @ng-doc/builder:page MyPage -r custom-route -m -c -o 1
|
|
13
14
|
* ```
|
|
@@ -29,10 +30,6 @@ export interface NgDocBuildPageSchema extends SchematicArgv {
|
|
|
29
30
|
* Order of the page in sidebar (alias is `-o`, NgDoc sorting pages by name by default)
|
|
30
31
|
*/
|
|
31
32
|
order?: number;
|
|
32
|
-
/**
|
|
33
|
-
* Provide true if you need add module file for the page (alias is `-m`)
|
|
34
|
-
*/
|
|
35
|
-
module?: boolean;
|
|
36
33
|
/**
|
|
37
34
|
* If parameter was provided, generator will import first parent category automatically (alias is `-c`)
|
|
38
35
|
*/
|
|
@@ -1,51 +1,46 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"type": "number",
|
|
47
|
-
"description": "Order page in sidebar",
|
|
48
|
-
"alias": "o"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "NgDocPage",
|
|
4
|
+
"title": "NgDocPage schematic",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"path": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"format": "path",
|
|
10
|
+
"$default": {
|
|
11
|
+
"$source": "workingDirectory"
|
|
12
|
+
},
|
|
13
|
+
"description": "The path at which to create the entity file, relative to the current workspace. Default is a folder with the same name as the component in the project root.",
|
|
14
|
+
"visible": false
|
|
15
|
+
},
|
|
16
|
+
"title": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "The title of the page.",
|
|
19
|
+
"$default": {
|
|
20
|
+
"$source": "argv",
|
|
21
|
+
"index": 0
|
|
22
|
+
},
|
|
23
|
+
"x-prompt": "The title of your page (e.g. \"Getting Started\")?"
|
|
24
|
+
},
|
|
25
|
+
"name": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Name of the category variable (alias is `-n`, title in PascalCase by default)",
|
|
28
|
+
"alias": "n"
|
|
29
|
+
},
|
|
30
|
+
"route": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "The route of the page",
|
|
33
|
+
"alias": "r"
|
|
34
|
+
},
|
|
35
|
+
"category": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"description": "Automatically import the category.",
|
|
38
|
+
"alias": "c"
|
|
39
|
+
},
|
|
40
|
+
"order": {
|
|
41
|
+
"type": "number",
|
|
42
|
+
"description": "Order page in sidebar",
|
|
43
|
+
"alias": "o"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
51
46
|
}
|
|
@@ -7,8 +7,7 @@ exports.getProject = getProject;
|
|
|
7
7
|
* @param workspace
|
|
8
8
|
*/
|
|
9
9
|
function getProjectName(workspace) {
|
|
10
|
-
|
|
11
|
-
const ngDocProject = (_a = Array.from(workspace.projects.entries()).find(([, project]) => { var _a; return (_a = project.targets.get('build')) === null || _a === void 0 ? void 0 : _a.builder.startsWith('@ng-doc/builder'); })) === null || _a === void 0 ? void 0 : _a[0];
|
|
10
|
+
const ngDocProject = Array.from(workspace.projects.entries()).find(([, project]) => project.targets.get('build')?.builder.startsWith('@ng-doc/builder'))?.[0];
|
|
12
11
|
return ngDocProject;
|
|
13
12
|
}
|
|
14
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-project.js","sourceRoot":"","sources":["../../../../../libs/builder/schematics/utils/get-project.ts"],"names":[],"mappings":";;AAMA,wCAOC;AAMD,gCAIC;AArBD;;;GAGG;AACH,SAAgB,cAAc,CAAC,SAA8B
|
|
1
|
+
{"version":3,"file":"get-project.js","sourceRoot":"","sources":["../../../../../libs/builder/schematics/utils/get-project.ts"],"names":[],"mappings":";;AAMA,wCAOC;AAMD,gCAIC;AArBD;;;GAGG;AACH,SAAgB,cAAc,CAAC,SAA8B;IAC5D,MAAM,YAAY,GAAuB,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CACrF,CAAC,CAAC,EAAE,OAAO,CAA8B,EAAE,EAAE,CAC5C,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,CACpE,EAAE,CAAC,CAAC,CAAC,CAAC;IAEP,OAAO,YAAY,CAAC;AACrB,CAAC;AAED;;;GAGG;AACH,SAAgB,UAAU,CAAC,SAA8B;IACxD,MAAM,YAAY,GAAuB,cAAc,CAAC,SAAS,CAAC,CAAC;IAEnE,OAAO,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACxE,CAAC"}
|