@ng-doc/builder 16.9.0 → 16.11.0
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/index.js +2 -1
- package/browser/index.js.map +1 -1
- package/browser/schema.json +7 -1
- package/classes/observable-set.d.ts +1 -0
- package/classes/observable-set.js +4 -0
- package/classes/observable-set.js.map +1 -1
- package/dev-server/index.js +2 -1
- package/dev-server/index.js.map +1 -1
- package/dev-server/schema.json +7 -1
- package/engine/.cache/apps/ng-doc/docs/ng-doc.api.js +3 -8
- package/engine/.cache/apps/ng-doc/docs/recipes/ignoring-file-lines/ng-doc.page.js +41 -0
- package/engine/.cache/apps/ng-doc/docs/recipes/ng-doc.category.js +30 -0
- package/engine/actions/playground.action.js +2 -2
- package/engine/actions/playground.action.js.map +1 -1
- package/engine/build-ng-doc.js +10 -2
- package/engine/build-ng-doc.js.map +1 -1
- package/engine/builder-operators/build.d.ts +2 -3
- package/engine/builder-operators/build.js +8 -4
- package/engine/builder-operators/build.js.map +1 -1
- package/engine/builder-operators/compile.d.ts +1 -1
- package/engine/builder-operators/compile.js.map +1 -1
- package/engine/builder-operators/emit.d.ts +2 -2
- package/engine/builder-operators/emit.js.map +1 -1
- package/engine/builder-operators/post-build.d.ts +6 -0
- package/engine/builder-operators/post-build.js +23 -0
- package/engine/builder-operators/post-build.js.map +1 -0
- package/engine/builder-operators/post-process.d.ts +2 -2
- package/engine/builder-operators/post-process.js +4 -5
- package/engine/builder-operators/post-process.js.map +1 -1
- package/engine/builder-operators/task.d.ts +1 -1
- package/engine/builder-operators/task.js.map +1 -1
- package/engine/builder-operators/to-builder-output.d.ts +6 -0
- package/engine/builder-operators/to-builder-output.js +13 -0
- package/engine/builder-operators/to-builder-output.js.map +1 -0
- package/engine/entities/abstractions/entity.d.ts +11 -11
- package/engine/entities/abstractions/entity.js +2 -5
- package/engine/entities/abstractions/entity.js.map +1 -1
- package/engine/entities/abstractions/file.entity.d.ts +2 -2
- package/engine/entities/abstractions/file.entity.js.map +1 -1
- package/engine/entities/abstractions/module.entity.d.ts +1 -1
- package/engine/entities/abstractions/module.entity.js.map +1 -1
- package/engine/entities/abstractions/navigation.entity.d.ts +1 -1
- package/engine/entities/abstractions/navigation.entity.js.map +1 -1
- package/engine/entities/abstractions/route.entity.d.ts +3 -4
- package/engine/entities/abstractions/route.entity.js +2 -2
- package/engine/entities/abstractions/route.entity.js.map +1 -1
- package/engine/entities/api-list.entity.d.ts +20 -0
- package/engine/entities/api-list.entity.js +69 -0
- package/engine/entities/api-list.entity.js.map +1 -0
- package/engine/entities/api-page.entity.d.ts +2 -3
- package/engine/entities/api-page.entity.js +26 -28
- package/engine/entities/api-page.entity.js.map +1 -1
- package/engine/entities/api-scope.entity.d.ts +2 -3
- package/engine/entities/api-scope.entity.js +13 -7
- package/engine/entities/api-scope.entity.js.map +1 -1
- package/engine/entities/api.entity.d.ts +3 -4
- package/engine/entities/api.entity.js +26 -29
- package/engine/entities/api.entity.js.map +1 -1
- package/engine/entities/category.entity.d.ts +2 -3
- package/engine/entities/category.entity.js +11 -13
- package/engine/entities/category.entity.js.map +1 -1
- package/engine/entities/context.entity.d.ts +11 -0
- package/engine/entities/context.entity.js +34 -0
- package/engine/entities/context.entity.js.map +1 -0
- package/engine/entities/generated-module.entity.d.ts +12 -0
- package/engine/entities/generated-module.entity.js +52 -0
- package/engine/entities/generated-module.entity.js.map +1 -0
- package/engine/entities/index-file.entity.d.ts +12 -0
- package/engine/entities/index-file.entity.js +52 -0
- package/engine/entities/index-file.entity.js.map +1 -0
- package/engine/entities/index.d.ts +8 -1
- package/engine/entities/index.js +8 -1
- package/engine/entities/index.js.map +1 -1
- package/engine/entities/indexes.entity.d.ts +3 -4
- package/engine/entities/indexes.entity.js +12 -14
- package/engine/entities/indexes.entity.js.map +1 -1
- package/engine/entities/keywords.entity.d.ts +12 -0
- package/engine/entities/keywords.entity.js +32 -0
- package/engine/entities/keywords.entity.js.map +1 -0
- package/engine/entities/page-demo.entity.d.ts +20 -0
- package/engine/entities/page-demo.entity.js +87 -0
- package/engine/entities/page-demo.entity.js.map +1 -0
- package/engine/entities/page-playground.entity.d.ts +21 -0
- package/engine/entities/page-playground.entity.js +80 -0
- package/engine/entities/page-playground.entity.js.map +1 -0
- package/engine/entities/page.entity.d.ts +6 -18
- package/engine/entities/page.entity.js +39 -107
- package/engine/entities/page.entity.js.map +1 -1
- package/engine/entities/plugins/entity-plugins/add-to-dependencies.plugin.d.ts +5 -0
- package/engine/entities/plugins/entity-plugins/add-to-dependencies.plugin.js +20 -0
- package/engine/entities/plugins/entity-plugins/add-to-dependencies.plugin.js.map +1 -0
- package/engine/entities/plugins/entity-plugins/apply.plugin.d.ts +26 -0
- package/engine/entities/plugins/entity-plugins/apply.plugin.js +65 -0
- package/engine/entities/plugins/entity-plugins/apply.plugin.js.map +1 -0
- package/engine/entities/plugins/entity-plugins/extract-snippets.plugin.d.ts +6 -0
- package/engine/entities/plugins/entity-plugins/extract-snippets.plugin.js +23 -0
- package/engine/entities/plugins/entity-plugins/extract-snippets.plugin.js.map +1 -0
- package/engine/entities/plugins/entity-plugins/fill-indexes.plugin.d.ts +6 -0
- package/engine/entities/plugins/entity-plugins/fill-indexes.plugin.js +27 -0
- package/engine/entities/plugins/entity-plugins/fill-indexes.plugin.js.map +1 -0
- package/engine/entities/plugins/entity-plugins/index.d.ts +9 -0
- package/engine/entities/plugins/entity-plugins/index.js +13 -0
- package/engine/entities/plugins/entity-plugins/index.js.map +1 -0
- package/engine/entities/plugins/entity-plugins/markdown-to-html.plugin.d.ts +5 -0
- package/engine/entities/plugins/entity-plugins/markdown-to-html.plugin.js +21 -0
- package/engine/entities/plugins/entity-plugins/markdown-to-html.plugin.js.map +1 -0
- package/engine/entities/plugins/entity-plugins/post-process-html.plugin.d.ts +5 -0
- package/engine/entities/plugins/entity-plugins/post-process-html.plugin.js +18 -0
- package/engine/entities/plugins/entity-plugins/post-process-html.plugin.js.map +1 -0
- package/engine/entities/plugins/entity-plugins/process-html.plugin.d.ts +5 -0
- package/engine/entities/plugins/entity-plugins/process-html.plugin.js +18 -0
- package/engine/entities/plugins/entity-plugins/process-html.plugin.js.map +1 -0
- package/engine/entities/plugins/entity-plugins/remove-lines.plugin.d.ts +6 -0
- package/engine/entities/plugins/entity-plugins/remove-lines.plugin.js +23 -0
- package/engine/entities/plugins/entity-plugins/remove-lines.plugin.js.map +1 -0
- package/engine/entities/plugins/entity-plugins/wrap-code.plugin.d.ts +6 -0
- package/engine/entities/plugins/entity-plugins/wrap-code.plugin.js +21 -0
- package/engine/entities/plugins/entity-plugins/wrap-code.plugin.js.map +1 -0
- package/engine/entities/plugins/helpers/execute-plugins.d.ts +10 -0
- package/engine/entities/plugins/helpers/execute-plugins.js +18 -0
- package/engine/entities/plugins/helpers/execute-plugins.js.map +1 -0
- package/engine/entities/plugins/helpers/index.d.ts +1 -0
- package/engine/entities/plugins/helpers/index.js +5 -0
- package/engine/entities/plugins/helpers/index.js.map +1 -0
- package/engine/entities/plugins/index.d.ts +3 -0
- package/engine/entities/plugins/index.js +7 -0
- package/engine/entities/plugins/index.js.map +1 -0
- package/engine/entities/plugins/types/entity-plugin.d.ts +5 -0
- package/engine/entities/plugins/types/entity-plugin.js +3 -0
- package/engine/entities/plugins/types/entity-plugin.js.map +1 -0
- package/engine/entities/plugins/types/index.d.ts +1 -0
- package/engine/entities/plugins/types/index.js +5 -0
- package/engine/entities/plugins/types/index.js.map +1 -0
- package/engine/entities/routes.entity.d.ts +11 -0
- package/engine/entities/routes.entity.js +34 -0
- package/engine/entities/routes.entity.js.map +1 -0
- package/engine/entity-store.d.ts +1 -0
- package/engine/entity-store.js +3 -0
- package/engine/entity-store.js.map +1 -1
- package/engine/nunjucks/filters.d.ts +2 -2
- package/engine/nunjucks/filters.js +3 -2
- package/engine/nunjucks/filters.js.map +1 -1
- package/engine/variables.d.ts +1 -0
- package/engine/variables.js +1 -0
- package/engine/variables.js.map +1 -1
- package/helpers/angular/get-component-assets.d.ts +8 -0
- package/helpers/angular/get-component-assets.js +15 -0
- package/helpers/angular/get-component-assets.js.map +1 -0
- package/helpers/angular/get-component-source-files.d.ts +7 -0
- package/helpers/angular/get-component-source-files.js +23 -0
- package/helpers/angular/get-component-source-files.js.map +1 -0
- package/helpers/angular/index.d.ts +2 -0
- package/helpers/angular/index.js +2 -0
- package/helpers/angular/index.js.map +1 -1
- package/helpers/build-file-assets.d.ts +7 -0
- package/helpers/build-file-assets.js +25 -0
- package/helpers/build-file-assets.js.map +1 -0
- package/helpers/build-file-entity.js +14 -1
- package/helpers/build-file-entity.js.map +1 -1
- package/helpers/create-builder-context.d.ts +5 -5
- package/helpers/create-builder-context.js +6 -6
- package/helpers/create-builder-context.js.map +1 -1
- package/helpers/demo/assets-from-component-asset.d.ts +6 -0
- package/helpers/demo/assets-from-component-asset.js +14 -0
- package/helpers/demo/assets-from-component-asset.js.map +1 -0
- package/helpers/demo/index.d.ts +1 -0
- package/helpers/demo/index.js +5 -0
- package/helpers/demo/index.js.map +1 -0
- package/helpers/emit-built-output.d.ts +2 -2
- package/helpers/emit-built-output.js.map +1 -1
- package/helpers/entity-type.d.ts +1 -1
- package/helpers/extract-docs.js +4 -4
- package/helpers/extract-docs.js.map +1 -1
- package/helpers/format-code.d.ts +1 -1
- package/helpers/format-code.js +14 -3
- package/helpers/format-code.js.map +1 -1
- package/helpers/get-code-type-from-lang.d.ts +6 -0
- package/helpers/get-code-type-from-lang.js +31 -0
- package/helpers/get-code-type-from-lang.js.map +1 -0
- package/helpers/get-demo-class-declarations.d.ts +1 -1
- package/helpers/get-demo-class-declarations.js +18 -7
- package/helpers/get-demo-class-declarations.js.map +1 -1
- package/helpers/index.d.ts +7 -3
- package/helpers/index.js +7 -3
- package/helpers/index.js.map +1 -1
- package/helpers/load-config.d.ts +3 -2
- package/helpers/load-config.js +4 -3
- package/helpers/load-config.js.map +1 -1
- package/helpers/markdown-to-html.d.ts +10 -0
- package/helpers/{marked.js → markdown-to-html.js} +11 -8
- package/helpers/markdown-to-html.js.map +1 -0
- package/helpers/process-html.d.ts +3 -3
- package/helpers/process-html.js +14 -11
- package/helpers/process-html.js.map +1 -1
- package/helpers/process-legacy-snippets.d.ts +9 -0
- package/helpers/process-legacy-snippets.js +70 -0
- package/helpers/process-legacy-snippets.js.map +1 -0
- package/helpers/process-snippets.d.ts +5 -5
- package/helpers/process-snippets.js +63 -50
- package/helpers/process-snippets.js.map +1 -1
- package/helpers/remove-lines-from-code.d.ts +6 -0
- package/helpers/remove-lines-from-code.js +30 -0
- package/helpers/remove-lines-from-code.js.map +1 -0
- package/helpers/snippets-from-asset.d.ts +9 -0
- package/helpers/snippets-from-asset.js +26 -0
- package/helpers/snippets-from-asset.js.map +1 -0
- package/interfaces/asset.d.ts +5 -7
- package/interfaces/build-result.d.ts +10 -0
- package/{types/snippet-type.js → interfaces/build-result.js} +1 -1
- package/interfaces/build-result.js.map +1 -0
- package/interfaces/index.d.ts +3 -0
- package/interfaces/index.js +3 -0
- package/interfaces/index.js.map +1 -1
- package/interfaces/output.d.ts +1 -3
- package/interfaces/schema.d.ts +3 -0
- package/interfaces/snippet-config.d.ts +8 -0
- package/interfaces/snippet-config.js +3 -0
- package/interfaces/snippet-config.js.map +1 -0
- package/interfaces/snippet.d.ts +5 -4
- package/operators/error-handler.d.ts +1 -1
- package/package.json +6 -5
- package/parsers/helpers/index.d.ts +3 -0
- package/parsers/helpers/index.js +7 -0
- package/parsers/helpers/index.js.map +1 -0
- package/parsers/helpers/number.d.ts +2 -0
- package/parsers/helpers/number.js +7 -0
- package/parsers/helpers/number.js.map +1 -0
- package/parsers/helpers/param-value.d.ts +2 -0
- package/parsers/helpers/param-value.js +8 -0
- package/parsers/helpers/param-value.js.map +1 -0
- package/parsers/helpers/param.d.ts +7 -0
- package/parsers/helpers/param.js +19 -0
- package/parsers/helpers/param.js.map +1 -0
- package/parsers/parse-code-block-params.js +8 -13
- package/parsers/parse-code-block-params.js.map +1 -1
- package/parsers/parse-snippet.d.ts +6 -0
- package/parsers/parse-snippet.js +27 -0
- package/parsers/parse-snippet.js.map +1 -0
- package/schematics/category/files/ng-doc.category.ts.template +1 -1
- package/schematics/category/index.js +2 -1
- package/schematics/category/index.js.map +1 -1
- package/schematics/page/index.js +2 -1
- package/schematics/page/index.js.map +1 -1
- package/templates/demo-assets.ts.nunj +13 -4
- package/templates/page.module.ts.nunj +3 -2
- package/templates/parts/usage-notes.html.nunj +1 -1
- package/templates/playgrounds.ts.nunj +19 -9
- package/types/index.d.ts +0 -1
- package/types/index.js +0 -1
- package/types/index.js.map +1 -1
- package/engine/entities/skeleton.entity.d.ts +0 -16
- package/engine/entities/skeleton.entity.js +0 -44
- package/engine/entities/skeleton.entity.js.map +0 -1
- package/helpers/build-assets.d.ts +0 -10
- package/helpers/build-assets.js +0 -55
- package/helpers/build-assets.js.map +0 -1
- package/helpers/get-component-asset.d.ts +0 -10
- package/helpers/get-component-asset.js +0 -50
- package/helpers/get-component-asset.js.map +0 -1
- package/helpers/marked.d.ts +0 -9
- package/helpers/marked.js.map +0 -1
- package/types/snippet-type.d.ts +0 -1
- package/types/snippet-type.js.map +0 -1
package/browser/index.js
CHANGED
|
@@ -17,10 +17,11 @@ const helpers_1 = require("../helpers");
|
|
|
17
17
|
* @returns Observable of BrowserBuilderOutput
|
|
18
18
|
*/
|
|
19
19
|
function runBrowser(options, context) {
|
|
20
|
+
var _a;
|
|
20
21
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
21
22
|
const browserTarget = options.browserTarget ? (0, architect_1.targetFromTargetString)(options.browserTarget) : null;
|
|
22
23
|
const targetOptions = browserTarget ? yield context.getTargetOptions(browserTarget) : options;
|
|
23
|
-
const builderContext = (0, helpers_1.createBuilderContext)(targetOptions, context);
|
|
24
|
+
const builderContext = (0, helpers_1.createBuilderContext)(targetOptions, context, (_a = options.ngDoc) === null || _a === void 0 ? void 0 : _a.config);
|
|
24
25
|
const runner = (0, build_ng_doc_1.buildNgDoc)(builderContext);
|
|
25
26
|
yield (0, rxjs_1.firstValueFrom)(runner.pipe((0, operators_1.first)()));
|
|
26
27
|
return builderContext.config.angularBuilder === 'esbuild'
|
package/browser/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/builder/browser/index.ts"],"names":[],"mappings":";;;;AAAA,yDAMmC;AACnC,gFAAuF;AACvF,gGAA+F;AAC/F,+BAAgD;AAChD,8CAAqC;AAErC,yDAAkD;AAClD,wCAAgD;AAGhD;;;;;;GAMG;AACH,SAAsB,UAAU,CAAC,OAAoB,EAAE,OAAuB
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/builder/browser/index.ts"],"names":[],"mappings":";;;;AAAA,yDAMmC;AACnC,gFAAuF;AACvF,gGAA+F;AAC/F,+BAAgD;AAChD,8CAAqC;AAErC,yDAAkD;AAClD,wCAAgD;AAGhD;;;;;;GAMG;AACH,SAAsB,UAAU,CAAC,OAAoB,EAAE,OAAuB;;;QAC7E,MAAM,aAAa,GAAkB,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,IAAA,kCAAsB,EAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAClH,MAAM,aAAa,GAAQ,aAAa,CAAC,CAAC,CAAC,MAAM,OAAO,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAE,OAAe,CAAC;QAC5G,MAAM,cAAc,GAAwB,IAAA,8BAAoB,EAAC,aAAa,EAAE,OAAO,EAAE,MAAA,OAAO,CAAC,KAAK,0CAAE,MAAM,CAAC,CAAC;QAChH,MAAM,MAAM,GAAqB,IAAA,yBAAU,EAAC,cAAc,CAAC,CAAC;QAE5D,MAAM,IAAA,qBAAc,EAAC,MAAM,CAAC,IAAI,CAAC,IAAA,iBAAK,GAAE,CAAC,CAAC,CAAC;QAE3C,OAAO,cAAc,CAAC,MAAM,CAAC,cAAc,KAAK,SAAS;YACxD,CAAC,CAAC,IAAA,6BAAiB,EAAC,IAAA,qCAAmB,EAAC,OAAc,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,EAAE;YAC7E,CAAC,CAAC,MAAM,IAAA,6BAAmB,EAAC,OAAc,EAAE,OAAO,CAAC,CAAC,SAAS,EAAE,CAAC;;CAClE;AAXD,gCAWC;AAED,6DAA6D;AAC7D,aAAa;AACb,kBAAe,IAAA,yBAAa,EAAC,UAAU,CAAC,CAAC"}
|
package/browser/schema.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observable-set.js","sourceRoot":"","sources":["../../../../libs/builder/classes/observable-set.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AACrC,+BAA+C;AAC/C,8CAAmC;AAEnC,MAAa,aAAa;IAIzB,YAAY,MAAY;QAHhB,eAAU,GAAW,IAAI,GAAG,EAAE,CAAC;QAC/B,aAAQ,GAAwB,IAAI,oBAAa,EAAQ,CAAC;QAGjE,MAAM,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;IAC/B,CAAC;IAED,OAAO;QACN,OAAO,IAAA,cAAO,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACjC,CAAC;IACD,OAAO;QACN,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAA,eAAG,EAAC,GAAG,EAAE,CAAC,IAAA,cAAO,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IAChE,CAAC;IAED,GAAG,CAAC,GAAG,MAAW;QACjB,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,KAAQ,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE;YAC3D,MAAM,CAAC,OAAO,CAAC,CAAC,KAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;YACzD,MAAM,CA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,MAAM,CAAC,MAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;SACtC;IACF,CAAC;IAED,IAAI,CAAC,GAAG,MAAW;QAClB,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;QACxB,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;IACrB,CAAC;IAED,MAAM,CAAC,KAAQ;QACd,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IACtB,CAAC;IAED,KAAK;QACJ,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;QACxB,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IACtB,CAAC;CACD;AApCD,sCAoCC"}
|
package/dev-server/index.js
CHANGED
|
@@ -17,7 +17,8 @@ const helpers_1 = require("../helpers");
|
|
|
17
17
|
function runDevServer(options, context) {
|
|
18
18
|
const browserTarget = options.browserTarget ? (0, architect_1.targetFromTargetString)(options.browserTarget) : null;
|
|
19
19
|
return (browserTarget ? (0, rxjs_1.from)(context.getTargetOptions(browserTarget)) : (0, rxjs_1.of)(options)).pipe((0, operators_1.switchMap)((targetOptions) => {
|
|
20
|
-
|
|
20
|
+
var _a;
|
|
21
|
+
const builderContext = (0, helpers_1.createBuilderContext)(targetOptions, context, (_a = options.ngDoc) === null || _a === void 0 ? void 0 : _a.config);
|
|
21
22
|
const runner = (0, build_ng_doc_1.buildNgDoc)(builderContext).pipe((0, operators_1.shareReplay)(1));
|
|
22
23
|
if (builderContext.config.angularBuilder === 'esbuild') {
|
|
23
24
|
// This is a hack to make sure that the dev server uses the esbuild builder
|
package/dev-server/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/builder/dev-server/index.ts"],"names":[],"mappings":";;;;AAAA,yDAAwG;AAExG,sFAAkH;AA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EAAC,cAAc,CAAC,CAAC,IAAI,CAAC,IAAA,uBAAW,EAAC,CAAC,CAAC,CAAC,CAAC;QAEjF,IAAI,cAAc,CAAC,MAAM,CAAC,cAAc,KAAK,SAAS,EAAE;YACvD,2EAA2E;YAC3E,2EAA2E;YAC3E,yEAAyE;YACzE,oKAAoK;YACpK,OAAO,CAAC,uBAAuB,GAAG,GAAS,EAAE,wDAAC,OAAA,+CAA+C,CAAA,GAAA,CAAC;SAC9F;QAED,OAAO,MAAM,CAAC,IAAI,CACjB,IAAA,iBAAK,GAAE,EACP,IAAA,qBAAS,EAAC,GAAG,EAAE,CACd,IAAA,oBAAa,EAAC,CAAC,MAAM,EAAE,IAAA,gCAAmB,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAClE,IAAA,eAAG,EAAC,CAAC,CAAC,CAAC,EAAE,eAAe,CAAiC,EAAE,EAAE,CAAC,eAAe,CAAC,CAC9E,CACD,CACD,CAAC;IACH,CAAC,CAAC,CACF,CAAC;AACH,CAAC;AA1BD,oCA0BC;AAED,6DAA6D;AAC7D,aAAa;AACb,kBAAe,IAAA,yBAAa,EAAC,YAAY,CAAC,CAAC"}
|
package/dev-server/schema.json
CHANGED
|
@@ -97,7 +97,13 @@
|
|
|
97
97
|
"description": "Enable and define the file watching poll time period in milliseconds."
|
|
98
98
|
},
|
|
99
99
|
"ngDoc": {
|
|
100
|
-
"type": "object"
|
|
100
|
+
"type": "object",
|
|
101
|
+
"properties": {
|
|
102
|
+
"config": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"optional": true
|
|
105
|
+
}
|
|
106
|
+
}
|
|
101
107
|
}
|
|
102
108
|
},
|
|
103
109
|
"additionalProperties": true,
|
|
@@ -25,6 +25,7 @@ __export(ng_doc_api_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(ng_doc_api_exports);
|
|
26
26
|
var api = {
|
|
27
27
|
title: "API References",
|
|
28
|
+
keyword: "ApiReferences",
|
|
28
29
|
scopes: [
|
|
29
30
|
{
|
|
30
31
|
name: "@ng-doc/app",
|
|
@@ -34,14 +35,8 @@ var api = {
|
|
|
34
35
|
{
|
|
35
36
|
name: "@ng-doc/builder",
|
|
36
37
|
route: "builder",
|
|
37
|
-
include: [
|
|
38
|
-
|
|
39
|
-
"libs/builder/types/**.ts",
|
|
40
|
-
"libs/builder/schematics/**/*.ts"
|
|
41
|
-
],
|
|
42
|
-
exclude: [
|
|
43
|
-
"libs/builder/**/**.spec.ts"
|
|
44
|
-
]
|
|
38
|
+
include: ["libs/builder/interfaces/**.ts", "libs/builder/types/**.ts", "libs/builder/schematics/**/*.ts"],
|
|
39
|
+
exclude: ["libs/builder/**/**.spec.ts"]
|
|
45
40
|
},
|
|
46
41
|
{
|
|
47
42
|
name: "@ng-doc/ui-kit",
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// apps/ng-doc/docs/recipes/ignoring-file-lines/apps/ng-doc/docs/recipes/ignoring-file-lines/ng-doc.page.ts
|
|
20
|
+
var ng_doc_page_exports = {};
|
|
21
|
+
__export(ng_doc_page_exports, {
|
|
22
|
+
default: () => ng_doc_page_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(ng_doc_page_exports);
|
|
25
|
+
|
|
26
|
+
// apps/ng-doc/docs/recipes/ng-doc.category.ts
|
|
27
|
+
var RecipesCategory = {
|
|
28
|
+
title: "Recipes",
|
|
29
|
+
expandable: true,
|
|
30
|
+
order: 7
|
|
31
|
+
};
|
|
32
|
+
var ng_doc_category_default = RecipesCategory;
|
|
33
|
+
|
|
34
|
+
// apps/ng-doc/docs/recipes/ignoring-file-lines/apps/ng-doc/docs/recipes/ignoring-file-lines/ng-doc.page.ts
|
|
35
|
+
var IgnoringFileLinesPage = {
|
|
36
|
+
title: `Ignoring file lines`,
|
|
37
|
+
mdFile: "./index.md",
|
|
38
|
+
category: ng_doc_category_default,
|
|
39
|
+
keyword: "IgnoringFileLines"
|
|
40
|
+
};
|
|
41
|
+
var ng_doc_page_default = IgnoringFileLinesPage;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// apps/ng-doc/docs/recipes/apps/ng-doc/docs/recipes/ng-doc.category.ts
|
|
20
|
+
var ng_doc_category_exports = {};
|
|
21
|
+
__export(ng_doc_category_exports, {
|
|
22
|
+
default: () => ng_doc_category_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(ng_doc_category_exports);
|
|
25
|
+
var RecipesCategory = {
|
|
26
|
+
title: "Recipes",
|
|
27
|
+
expandable: true,
|
|
28
|
+
order: 7
|
|
29
|
+
};
|
|
30
|
+
var ng_doc_category_default = RecipesCategory;
|
|
@@ -11,7 +11,7 @@ const core_1 = require("@ng-doc/core");
|
|
|
11
11
|
function playgroundAction(pId, options) {
|
|
12
12
|
return (project, page) => {
|
|
13
13
|
var _a, _b;
|
|
14
|
-
const metadata = page.
|
|
14
|
+
const metadata = page.playgroundEntity.metadata[pId];
|
|
15
15
|
if (metadata) {
|
|
16
16
|
return {
|
|
17
17
|
output: `<ng-doc-playground id="${pId}" indexable="false">
|
|
@@ -24,7 +24,7 @@ function playgroundAction(pId, options) {
|
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
else {
|
|
27
|
-
|
|
27
|
+
return { output: '' };
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground.action.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/actions/playground.action.ts"],"names":[],"mappings":";;;AAAA,uCAAgE;AAOhE;;;;;GAKG;AACH,SAAgB,gBAAgB,CAAC,GAAW,EAAE,OAAgC;IAC7E,OAAO,CAAC,OAAgB,EAAE,IAAqB,EAAqB,EAAE;;QACrE,MAAM,QAAQ,GAAwC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"playground.action.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/actions/playground.action.ts"],"names":[],"mappings":";;;AAAA,uCAAgE;AAOhE;;;;;GAKG;AACH,SAAgB,gBAAgB,CAAC,GAAW,EAAE,OAAgC;IAC7E,OAAO,CAAC,OAAgB,EAAE,IAAqB,EAAqB,EAAE;;QACrE,MAAM,QAAQ,GAAwC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QAE1F,IAAI,QAAQ,EAAE;YACb,OAAO;gBACN,MAAM,EAAE,0BAA0B,GAAG;6BACZ,MAAA,QAAQ,CAAC,QAAQ,mCAAI,EAAE;4BACxB,MAAA,QAAQ,CAAC,IAAI,mCAAI,EAAE;wBACvB,IAAA,iBAAU,EAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;2BAC5C,IAAA,iBAAU,EAAC,IAAI,CAAC,SAAS,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC,CAAC;2BACzC;gBACvB,YAAY,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC,WAAW,EAAE,CAAC;aAC5D,CAAC;SACF;aAAM;YACN,OAAO,EAAC,MAAM,EAAE,EAAE,EAAC,CAAC;SACpB;IACF,CAAC,CAAC;AACH,CAAC;AAlBD,4CAkBC"}
|
package/engine/build-ng-doc.js
CHANGED
|
@@ -10,9 +10,11 @@ const helpers_1 = require("../helpers");
|
|
|
10
10
|
const operators_2 = require("../operators");
|
|
11
11
|
const builder_operators_1 = require("./builder-operators");
|
|
12
12
|
const dependency_changes_1 = require("./builder-operators/dependency-changes");
|
|
13
|
+
const post_build_1 = require("./builder-operators/post-build");
|
|
13
14
|
const post_process_1 = require("./builder-operators/post-process");
|
|
14
15
|
const print_output_1 = require("./builder-operators/print-output");
|
|
15
16
|
const task_1 = require("./builder-operators/task");
|
|
17
|
+
const to_builder_output_1 = require("./builder-operators/to-builder-output");
|
|
16
18
|
const entities_1 = require("./entities");
|
|
17
19
|
const cache_1 = require("./entities/cache");
|
|
18
20
|
const indexes_entity_1 = require("./entities/indexes.entity");
|
|
@@ -36,8 +38,14 @@ function buildNgDoc(context) {
|
|
|
36
38
|
const cache = new cache_1.NgDocCache(!!((_a = context.config) === null || _a === void 0 ? void 0 : _a.cache));
|
|
37
39
|
const project = (0, helpers_1.createProject)({ tsConfigFilePath: context.tsConfig });
|
|
38
40
|
// Global entities that should be built after each build cycle
|
|
39
|
-
const
|
|
41
|
+
const globalEntities = [
|
|
42
|
+
new entities_1.NgDocContextEntity(store, cache, context),
|
|
43
|
+
new entities_1.NgDocGeneratedModuleEntity(store, cache, context),
|
|
44
|
+
new entities_1.NgDocIndexFileEntity(store, cache, context),
|
|
45
|
+
new entities_1.NgDocRoutesEntity(store, cache, context),
|
|
46
|
+
];
|
|
40
47
|
const indexesEntity = new indexes_entity_1.NgDocIndexesEntity(store, cache, context);
|
|
48
|
+
const keywordEntity = new entities_1.NgDocKeywordsEntity(store, cache, context);
|
|
41
49
|
// Clean build path if cache is not enabled
|
|
42
50
|
if (!!((_b = context.config) === null || _b === void 0 ? void 0 : _b.cache) && (0, cache_1.invalidateCacheIfNeeded)(context.cachedFiles)) {
|
|
43
51
|
// do nothing
|
|
@@ -54,7 +62,7 @@ function buildNgDoc(context) {
|
|
|
54
62
|
])
|
|
55
63
|
.flat());
|
|
56
64
|
// The main build cycle
|
|
57
|
-
return (0, entity_emitter_1.entityEmitter)(store, cache, context, project, watcher).pipe((0, rxjs_1.combineLatestWith)((0, rxjs_1.from)(store.loadGlobalKeywords())), (0, operators_1.map)(([entities]) => entities), (0, rxjs_1.mergeMap)((entities) => (0, rxjs_1.of)(entities).pipe((0, task_1.task)('Updating source files...', (0, builder_operators_1.refresh)()), (0, task_1.taskForMany)('Collecting affected files...', (0, builder_operators_1.addBuildCandidates)(store)), (0, task_1.task)('Compiling...', (0, builder_operators_1.compile)()), (0, task_1.task)('Loading...', (0, builder_operators_1.load)()), (0, dependency_changes_1.dependencyChanges)(watcher), (0, operators_1.tap)(() => store.updateKeywordMap()), (0, task_1.taskForMany)('Building...', (0, builder_operators_1.build)(store,
|
|
65
|
+
return (0, entity_emitter_1.entityEmitter)(store, cache, context, project, watcher).pipe((0, rxjs_1.combineLatestWith)((0, rxjs_1.from)(store.loadGlobalKeywords())), (0, operators_1.map)(([entities]) => entities), (0, rxjs_1.mergeMap)((entities) => (0, rxjs_1.of)(entities).pipe((0, task_1.task)('Updating source files...', (0, builder_operators_1.refresh)()), (0, task_1.taskForMany)('Collecting affected files...', (0, builder_operators_1.addBuildCandidates)(store)), (0, task_1.task)('Compiling...', (0, builder_operators_1.compile)()), (0, task_1.task)('Loading...', (0, builder_operators_1.load)()), (0, dependency_changes_1.dependencyChanges)(watcher), (0, operators_1.tap)(() => store.updateKeywordMap()), (0, task_1.taskForMany)('Building...', (0, builder_operators_1.build)(store, ...globalEntities), (0, functions_1.ifNotCachedOrInvalid)(cache, store)), (0, task_1.taskForMany)('Post-build...', (0, post_build_1.postBuild)()), (0, task_1.taskForMany)('Post-processing...', (0, post_process_1.postProcess)(store, context.config, indexesEntity, keywordEntity)), (0, task_1.taskForMany)(undefined, (0, to_builder_output_1.toBuilderOutput)()), (0, task_1.taskForMany)('Emitting...', (0, builder_operators_1.emit)()), (0, builder_operators_1.collectGarbage)(store))), (0, builder_operators_1.updateCache)(store), (0, print_output_1.printOutput)(store), (0, operators_1.map)(() => void 0), (0, rxjs_1.finalize)(() => watcher.close()), (0, operators_2.progress)());
|
|
58
66
|
}
|
|
59
67
|
exports.buildNgDoc = buildNgDoc;
|
|
60
68
|
//# sourceMappingURL=build-ng-doc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-ng-doc.js","sourceRoot":"","sources":["../../../../libs/builder/engine/build-ng-doc.ts"],"names":[],"mappings":";;;;AAAA,+CAAyB;AACzB,mDAA6B;AAC7B,+BAAiF;AACjF,8CAAwC;AAGxC,wCAAwD;AAExD,4CAAsC;AACtC,2DAS6B;AAC7B,+EAAyE;AACzE,mEAA6D;AAC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
|
|
3
3
|
import { NgDocEntity } from '../entities/abstractions/entity';
|
|
4
4
|
import { NgDocEntityStore } from '../entity-store';
|
|
5
5
|
/**
|
|
@@ -7,7 +7,6 @@ import { NgDocEntityStore } from '../entity-store';
|
|
|
7
7
|
* keyword relationships, and returns the built artifacts.
|
|
8
8
|
*
|
|
9
9
|
* @param store - The entity store.
|
|
10
|
-
* @param config - The NgDoc configuration.
|
|
11
10
|
* @param additionalEntities - Additional entities to build.
|
|
12
11
|
*/
|
|
13
|
-
export declare function build(store: NgDocEntityStore,
|
|
12
|
+
export declare function build(store: NgDocEntityStore, ...additionalEntities: NgDocEntity[]): OperatorFunction<NgDocEntity[], NgDocBuildResult[]>;
|
|
@@ -3,18 +3,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.build = void 0;
|
|
4
4
|
const operators_1 = require("rxjs/operators");
|
|
5
5
|
const operators_2 = require("../../operators");
|
|
6
|
-
const error_handler_1 = require("../../operators/error-handler");
|
|
7
6
|
const build_candidates_1 = require("../functions/build-candidates");
|
|
8
7
|
/**
|
|
9
8
|
* Operator that updates the keyword map, builds the artifacts for each entity based on the
|
|
10
9
|
* keyword relationships, and returns the built artifacts.
|
|
11
10
|
*
|
|
12
11
|
* @param store - The entity store.
|
|
13
|
-
* @param config - The NgDoc configuration.
|
|
14
12
|
* @param additionalEntities - Additional entities to build.
|
|
15
13
|
*/
|
|
16
|
-
function build(store,
|
|
17
|
-
return (source) => source.pipe((0, operators_1.map)((entities) => (0, build_candidates_1.buildCandidates)(store, entities).filter((e) => e.isReadyForBuild)), (0, operators_1.switchMap)((entities) => (0, operators_2.forkJoinOrEmpty)(entities.map((e) =>
|
|
14
|
+
function build(store, ...additionalEntities) {
|
|
15
|
+
return (source) => source.pipe((0, operators_1.map)((entities) => (0, build_candidates_1.buildCandidates)(store, entities).filter((e) => e.isReadyForBuild)), (0, operators_1.switchMap)((entities) => (0, operators_2.forkJoinOrEmpty)(entities.map((e) => {
|
|
16
|
+
e.beforeBuild();
|
|
17
|
+
return e.build();
|
|
18
|
+
}))), (0, operators_1.switchMap)((output) => (0, operators_2.forkJoinOrEmpty)((0, build_candidates_1.buildCandidates)(store, additionalEntities).map((e) => {
|
|
19
|
+
e.beforeBuild();
|
|
20
|
+
return e.build();
|
|
21
|
+
})).pipe((0, operators_1.map)((additionalOutput) => output.concat(additionalOutput).flat()))));
|
|
18
22
|
}
|
|
19
23
|
exports.build = build;
|
|
20
24
|
//# sourceMappingURL=build.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/build.ts"],"names":[],"mappings":";;;AACA,8CAA8C;AAG9C,+CAAgD;
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/build.ts"],"names":[],"mappings":";;;AACA,8CAA8C;AAG9C,+CAAgD;AAGhD,oEAA8D;AAE9D;;;;;;GAMG;AACH,SAAgB,KAAK,CACpB,KAAuB,EACvB,GAAG,kBAAiC;IAEpC,OAAO,CAAC,MAAiC,EAAE,EAAE,CAC5C,MAAM,CAAC,IAAI,CACV,IAAA,eAAG,EAAC,CAAC,QAAuB,EAAE,EAAE,CAAC,IAAA,kCAAe,EAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,EAChH,IAAA,qBAAS,EAAC,CAAC,QAAuB,EAAE,EAAE,CACrC,IAAA,2BAAe,EACd,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAc,EAAE,EAAE;QAC/B,CAAC,CAAC,WAAW,EAAE,CAAC;QAEhB,OAAO,CAAC,CAAC,KAAK,EAAE,CAAC;IAClB,CAAC,CAAC,CACF,CACD,EACD,IAAA,qBAAS,EAAC,CAAC,MAA0B,EAAE,EAAE,CACxC,IAAA,2BAAe,EACd,IAAA,kCAAe,EAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAc,EAAE,EAAE;QACjE,CAAC,CAAC,WAAW,EAAE,CAAC;QAEhB,OAAO,CAAC,CAAC,KAAK,EAAE,CAAC;IAClB,CAAC,CAAC,CACF,CAAC,IAAI,CAAC,IAAA,eAAG,EAAC,CAAC,gBAAoC,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAC7F,CACD,CAAC;AACJ,CAAC;AA1BD,sBA0BC"}
|
|
@@ -3,4 +3,4 @@ import { NgDocEntity } from '../entities/abstractions/entity';
|
|
|
3
3
|
/**
|
|
4
4
|
* Operator that compiles the source file only if it is a `NgDocFileEntity`
|
|
5
5
|
*/
|
|
6
|
-
export declare function compile(): OperatorFunction<
|
|
6
|
+
export declare function compile<T extends NgDocEntity>(): OperatorFunction<T, T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/compile.ts"],"names":[],"mappings":";;;AAAA,+BAAsD;AACtD,8CAA8C;AAE9C,2CAA2C;AAC3C,iEAA2D;AAG3D;;GAEG;AACH,SAAgB,OAAO;IACtB,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"compile.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/compile.ts"],"names":[],"mappings":";;;AAAA,+BAAsD;AACtD,8CAA8C;AAE9C,2CAA2C;AAC3C,iEAA2D;AAG3D;;GAEG;AACH,SAAgB,OAAO;IACtB,OAAO,CAAC,MAAqB,EAAE,EAAE,CAChC,MAAM,CAAC,IAAI,CACV,IAAA,qBAAS,EAAC,CAAC,CAAI,EAAE,EAAE;QAClB,IAAI,IAAA,sBAAY,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE;YACzC,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC,IAAI,CACtB,IAAA,eAAG,EAAC,GAAG,EAAE,CAAC,CAAC,CAAC,EACZ,IAAA,4BAAY,EAAC,CAAC,CAAC,CACf,CAAC;SACF;QAED,OAAO,IAAA,SAAE,EAAC,CAAC,CAAC,CAAC;IACd,CAAC,CAAC,CACF,CAAC;AACJ,CAAC;AAdD,0BAcC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OperatorFunction } from 'rxjs';
|
|
2
|
-
import {
|
|
2
|
+
import { NgDocBuilderOutput } from '../../interfaces';
|
|
3
3
|
/**
|
|
4
4
|
* Operator that emits the built output after each source emission.
|
|
5
5
|
*/
|
|
6
|
-
export declare function emit(): OperatorFunction<
|
|
6
|
+
export declare function emit(): OperatorFunction<NgDocBuilderOutput[], NgDocBuilderOutput[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emit.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/emit.ts"],"names":[],"mappings":";;;AACA,8CAAmC;AAEnC,2CAA8C;AAE9C,iEAA2D;AAE3D;;GAEG;AACH,SAAgB,IAAI;IACnB,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"emit.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/emit.ts"],"names":[],"mappings":";;;AACA,8CAAmC;AAEnC,2CAA8C;AAE9C,iEAA2D;AAE3D;;GAEG;AACH,SAAgB,IAAI;IACnB,OAAO,CAAC,MAAwC,EAAE,EAAE,CACnD,MAAM,CAAC,IAAI,CACV,IAAA,eAAG,EAAC,CAAC,CAAuB,EAAE,EAAE,CAAC,IAAA,yBAAe,EAAC,CAAC,CAAC,CAAC,EACpD,IAAA,4BAAY,EAAC,EAAE,CAAC,CAChB,CAAC;AACJ,CAAC;AAND,oBAMC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.postBuild = void 0;
|
|
4
|
+
const core_1 = require("@ng-doc/core");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const operators_2 = require("../../operators");
|
|
7
|
+
const error_handler_1 = require("../../operators/error-handler");
|
|
8
|
+
const plugins_1 = require("../entities/plugins");
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
function postBuild() {
|
|
13
|
+
return (source) => source.pipe((0, operators_1.switchMap)((outputs) => (0, operators_2.forkJoinOrEmpty)(outputs.map((output) => handlePostBuild(output).pipe((0, error_handler_1.errorHandler)(output))))));
|
|
14
|
+
}
|
|
15
|
+
exports.postBuild = postBuild;
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @param output
|
|
19
|
+
*/
|
|
20
|
+
function handlePostBuild(output) {
|
|
21
|
+
return (0, plugins_1.executePlugins)(output.result, output.entity, (0, core_1.asArray)(output.postBuildPlugins)).pipe((0, operators_1.map)((result) => Object.assign({}, output, { result })));
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=post-build.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-build.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/post-build.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AAErC,8CAA8C;AAG9C,+CAAgD;AAChD,iEAA2D;AAC3D,iDAAmD;AAEnD;;GAEG;AACH,SAAgB,SAAS;IACxB,OAAO,CAAC,MAAuB,EAAE,EAAE,CAClC,MAAM,CAAC,IAAI,CACV,IAAA,qBAAS,EAAC,CAAC,OAAY,EAAE,EAAE,CAC1B,IAAA,2BAAe,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAS,EAAE,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAA,4BAAY,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAC/F,CACD,CAAC;AACJ,CAAC;AAPD,8BAOC;AAED;;;GAGG;AACH,SAAS,eAAe,CAA6B,MAAS;IAC7D,OAAO,IAAA,wBAAc,EAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,IAAA,cAAO,EAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,CACzF,IAAA,eAAG,EAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,EAAC,MAAM,EAAC,CAAC,CAAC,CACpD,CAAC;AACH,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OperatorFunction } from 'rxjs';
|
|
2
|
-
import {
|
|
2
|
+
import { NgDocBuildResult, NgDocConfiguration } from '../../interfaces';
|
|
3
3
|
import { NgDocEntity } from '../entities/abstractions/entity';
|
|
4
4
|
import { NgDocEntityStore } from '../entity-store';
|
|
5
5
|
/**
|
|
@@ -10,4 +10,4 @@ import { NgDocEntityStore } from '../entity-store';
|
|
|
10
10
|
* @param config - The configuration.
|
|
11
11
|
* @param additionalEntities - Additional entities to be build and post-processed.
|
|
12
12
|
*/
|
|
13
|
-
export declare function postProcess(store: NgDocEntityStore, config: NgDocConfiguration, ...additionalEntities: NgDocEntity[]): OperatorFunction<
|
|
13
|
+
export declare function postProcess<T extends NgDocBuildResult>(store: NgDocEntityStore, config: NgDocConfiguration, ...additionalEntities: NgDocEntity[]): OperatorFunction<T[], T[]>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.postProcess = void 0;
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@ng-doc/core");
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
6
|
const operators_2 = require("../../operators");
|
|
7
7
|
const error_handler_1 = require("../../operators/error-handler");
|
|
8
|
+
const plugins_1 = require("../entities/plugins");
|
|
8
9
|
/**
|
|
9
10
|
* Post-processes the build output.
|
|
10
11
|
* It is used to update the keyword map and to run the post-process function of each entity.
|
|
@@ -14,7 +15,7 @@ const error_handler_1 = require("../../operators/error-handler");
|
|
|
14
15
|
* @param additionalEntities - Additional entities to be build and post-processed.
|
|
15
16
|
*/
|
|
16
17
|
function postProcess(store, config, ...additionalEntities) {
|
|
17
|
-
return (source) => source.pipe((0, operators_1.tap)(() => store.updateKeywordMap()), (0, operators_1.switchMap)((outputs) => (0, operators_2.forkJoinOrEmpty)(outputs.map((output) => handlePostProcess(output).pipe((0, error_handler_1.errorHandler)(output)))).pipe((0, operators_1.switchMap)((postProcessedOutputs) => (0, operators_2.forkJoinOrEmpty)(additionalEntities.map((e) => e.build()
|
|
18
|
+
return (source) => source.pipe((0, operators_1.tap)(() => store.updateKeywordMap()), (0, operators_1.switchMap)((outputs) => (0, operators_2.forkJoinOrEmpty)(outputs.map((output) => handlePostProcess(output).pipe((0, error_handler_1.errorHandler)(output)))).pipe((0, operators_1.switchMap)((postProcessedOutputs) => (0, operators_2.forkJoinOrEmpty)(additionalEntities.map((e) => e.build())).pipe((0, operators_1.switchMap)((additionalOutputs) => (0, operators_2.forkJoinOrEmpty)(additionalOutputs.map((output) => handlePostProcess(output).pipe((0, error_handler_1.errorHandler)(output))))), (0, operators_1.map)((additionalPostProcessedOutputs) => [
|
|
18
19
|
...postProcessedOutputs,
|
|
19
20
|
...additionalPostProcessedOutputs,
|
|
20
21
|
]))))));
|
|
@@ -25,8 +26,6 @@ exports.postProcess = postProcess;
|
|
|
25
26
|
* @param output
|
|
26
27
|
*/
|
|
27
28
|
function handlePostProcess(output) {
|
|
28
|
-
return output.
|
|
29
|
-
? output.postProcessFn(output.content).pipe((0, operators_1.map)((content) => (Object.assign(Object.assign({}, output), { content }))))
|
|
30
|
-
: (0, rxjs_1.of)(output);
|
|
29
|
+
return (0, plugins_1.executePlugins)(output.result, output.entity, (0, core_1.asArray)(output.postProcessPlugins)).pipe((0, operators_1.map)((result) => Object.assign({}, output, { result })));
|
|
31
30
|
}
|
|
32
31
|
//# sourceMappingURL=post-process.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-process.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/post-process.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"post-process.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/post-process.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AAErC,8CAAmD;AAGnD,+CAAgD;AAChD,iEAA2D;AAE3D,iDAAmD;AAGnD;;;;;;;GAOG;AACH,SAAgB,WAAW,CAC1B,KAAuB,EACvB,MAA0B,EAC1B,GAAG,kBAAiC;IAEpC,OAAO,CAAC,MAAuB,EAAE,EAAE,CAClC,MAAM,CAAC,IAAI,CACV,IAAA,eAAG,EAAC,GAAG,EAAE,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,EACnC,IAAA,qBAAS,EAAC,CAAC,OAAY,EAAE,EAAE,CAC1B,IAAA,2BAAe,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAA,4BAAY,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CACrG,IAAA,qBAAS,EAAC,CAAC,oBAAyB,EAAE,EAAE,CACvC,IAAA,2BAAe,EAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,EAAmB,CAAC,CAAC,CAAC,IAAI,CAC9E,IAAA,qBAAS,EAAC,CAAC,iBAAsB,EAAE,EAAE,CACpC,IAAA,2BAAe,EACd,iBAAiB,CAAC,GAAG,CAAC,CAAC,MAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAA,4BAAY,EAAC,MAAM,CAAC,CAAC,CAAC,CAC1F,CACD,EACD,IAAA,eAAG,EAAC,CAAC,8BAAmC,EAAE,EAAE,CAAC;QAC5C,GAAG,oBAAoB;QACvB,GAAG,8BAA8B;KACjC,CAAC,CACF,CACD,CACD,CACD,CACD,CAAC;AACJ,CAAC;AA1BD,kCA0BC;AAED;;;GAGG;AACH,SAAS,iBAAiB,CAA6B,MAAS;IAC/D,OAAO,IAAA,wBAAc,EAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,IAAA,cAAO,EAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAC3F,IAAA,eAAG,EAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,EAAC,MAAM,EAAC,CAAC,CAAC,CACpD,CAAC;AACH,CAAC"}
|
|
@@ -22,4 +22,4 @@ export declare function task<T, R>(name: string, operator: OperatorFunction<T, R
|
|
|
22
22
|
* @param operator - The operator to run on the source.
|
|
23
23
|
* @param filter - The filter function to filter the values of the source.
|
|
24
24
|
*/
|
|
25
|
-
export declare function taskForMany<T, R>(name: string, operator: OperatorFunction<T[], R[]>, filter?: (value: T) => boolean): OperatorFunction<T[], R[]>;
|
|
25
|
+
export declare function taskForMany<T, R>(name: string | undefined, operator: OperatorFunction<T[], R[]>, filter?: (value: T) => boolean): OperatorFunction<T[], R[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/task.ts"],"names":[],"mappings":";;;AAAA,+BAAoD;AAEpD,+CAA0D;AAE1D;;;;;;;;;;GAUG;AACH,SAAgB,IAAI,CACnB,IAAY,EACZ,QAAgC,EAChC,MAA8B;IAE9B,OAAO,CAAC,MAAM,EAAE,EAAE;QACjB,OAAO,MAAM,CAAC,IAAI,CACjB,IAAA,oBAAQ,EAAC,IAAI,CAAC,EACd,IAAA,eAAQ,EAAC,CAAC,MAAM,EAAE,EAAE;YACnB,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAA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ACd,IAAA,eAAQ,EAAC,CAAC,MAAM,EAAE,EAAE;YACnB,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;YAEzD,OAAO,IAAA,SAAE,EAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACpC,CAAC,CAAC,CACF,CAAC;IACH,CAAC,CAAC;AACH,CAAC;AAfD,kCAeC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { OperatorFunction } from 'rxjs';
|
|
2
|
+
import { NgDocBuilderOutput, NgDocBuildResult } from '../../interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Converts the build result to a builder output.
|
|
5
|
+
*/
|
|
6
|
+
export declare function toBuilderOutput<T extends NgDocBuildResult>(): OperatorFunction<T[], NgDocBuilderOutput[]>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toBuilderOutput = void 0;
|
|
4
|
+
const operators_1 = require("rxjs/operators");
|
|
5
|
+
const operators_2 = require("../../operators");
|
|
6
|
+
/**
|
|
7
|
+
* Converts the build result to a builder output.
|
|
8
|
+
*/
|
|
9
|
+
function toBuilderOutput() {
|
|
10
|
+
return (source) => source.pipe((0, operators_1.switchMap)((outputs) => (0, operators_2.forkJoinOrEmpty)(outputs.map((output) => output.toBuilderOutput(output.result)))));
|
|
11
|
+
}
|
|
12
|
+
exports.toBuilderOutput = toBuilderOutput;
|
|
13
|
+
//# sourceMappingURL=to-builder-output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-builder-output.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/to-builder-output.ts"],"names":[],"mappings":";;;AACA,8CAAyC;AAGzC,+CAAgD;AAEhD;;GAEG;AACH,SAAgB,eAAe;IAC9B,OAAO,CAAC,MAAuB,EAAE,EAAE,CAClC,MAAM,CAAC,IAAI,CACV,IAAA,qBAAS,EAAC,CAAC,OAAY,EAAE,EAAE,CAAC,IAAA,2BAAe,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAS,EAAE,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAC/G,CAAC;AACJ,CAAC;AALD,0CAKC"}
|
|
@@ -2,7 +2,7 @@ import { logging } from '@angular-devkit/core';
|
|
|
2
2
|
import { NgDocPageIndex } from '@ng-doc/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { ObservableSet } from '../../../classes';
|
|
5
|
-
import { NgDocBuilderContext,
|
|
5
|
+
import { NgDocBuilderContext, NgDocBuildResult } from '../../../interfaces';
|
|
6
6
|
import { NgDocEntityStore } from '../../entity-store';
|
|
7
7
|
import { NgDocCache } from '../cache';
|
|
8
8
|
/**
|
|
@@ -50,14 +50,14 @@ export declare abstract class NgDocEntity {
|
|
|
50
50
|
*/
|
|
51
51
|
warnings: Error[];
|
|
52
52
|
private destroy$;
|
|
53
|
-
/**
|
|
54
|
-
* Files that are watched for changes to rebuild entity or remove it
|
|
55
|
-
*/
|
|
56
|
-
abstract readonly rootFiles: string[];
|
|
57
53
|
/**
|
|
58
54
|
* Indicates when it's root entity and should be used for rooted components.
|
|
59
55
|
*/
|
|
60
56
|
abstract readonly isRoot: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Files that are watched for changes to rebuild entity or remove it
|
|
59
|
+
*/
|
|
60
|
+
abstract readonly rootFiles: string[];
|
|
61
61
|
/**
|
|
62
62
|
* Should return the parent of the current entity
|
|
63
63
|
*/
|
|
@@ -104,17 +104,17 @@ export declare abstract class NgDocEntity {
|
|
|
104
104
|
get isReadyForBuild(): boolean;
|
|
105
105
|
get logger(): logging.LoggerApi;
|
|
106
106
|
get cachedFilePaths(): string[];
|
|
107
|
-
/**
|
|
108
|
-
* Build all artifacts that need for application.
|
|
109
|
-
* This is the last method in the build process, should return output that should be emitted to the file system
|
|
110
|
-
*/
|
|
111
|
-
protected abstract buildImpl(): Observable<NgDocBuildOutput[]>;
|
|
112
107
|
/**
|
|
113
108
|
* Method called by NgDocBuilder when one or more dependencies have changed
|
|
114
109
|
*/
|
|
115
110
|
dependenciesChanged(): void;
|
|
116
111
|
childrenGenerator(): Observable<NgDocEntity[]>;
|
|
117
|
-
|
|
112
|
+
beforeBuild(): void;
|
|
113
|
+
/**
|
|
114
|
+
* Build all artifacts that need for application.
|
|
115
|
+
* This is the last method in the build process, should return output that should be emitted to the file system
|
|
116
|
+
*/
|
|
117
|
+
abstract build(): Observable<NgDocBuildResult<any, any>>;
|
|
118
118
|
updateCache(): void;
|
|
119
119
|
removeArtifacts(): void;
|
|
120
120
|
/**
|
|
@@ -93,7 +93,7 @@ exports.NgDocEntity = (() => {
|
|
|
93
93
|
* @type {Array<NgDocEntity>}
|
|
94
94
|
*/
|
|
95
95
|
get childEntities() {
|
|
96
|
-
return
|
|
96
|
+
return this.children.concat(this.children.map((child) => child.childEntities).flat());
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
99
99
|
* Returns `true` if current entity has children
|
|
@@ -128,14 +128,11 @@ exports.NgDocEntity = (() => {
|
|
|
128
128
|
childrenGenerator() {
|
|
129
129
|
return (0, rxjs_1.of)([]);
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
beforeBuild() {
|
|
132
132
|
// Clear all indexes and used keywords before build
|
|
133
133
|
this.usedKeywords.clear();
|
|
134
134
|
this.potentialKeywords.clear();
|
|
135
135
|
this.indexes = [];
|
|
136
|
-
return this.buildImpl().pipe((0, operators_1.tap)({
|
|
137
|
-
error: (e) => this.errors.push(e),
|
|
138
|
-
}));
|
|
139
136
|
}
|
|
140
137
|
updateCache() {
|
|
141
138
|
if (this.isReadyForBuild && !this.warnings.length) {
|