@ng-doc/builder 16.3.6 → 16.4.1
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 +14 -11
- package/browser/index.js.map +1 -1
- package/dev-server/index.js +5 -5
- package/dev-server/index.js.map +1 -1
- package/engine/actions/playground.action.js +9 -21
- package/engine/actions/playground.action.js.map +1 -1
- package/engine/build-ng-doc.d.ts +9 -0
- package/engine/build-ng-doc.js +61 -0
- package/engine/build-ng-doc.js.map +1 -0
- package/engine/builder-operators/add-build-candidates.d.ts +8 -0
- package/engine/builder-operators/add-build-candidates.js +27 -0
- package/engine/builder-operators/add-build-candidates.js.map +1 -0
- package/engine/builder-operators/build.d.ts +13 -0
- package/engine/builder-operators/build.js +20 -0
- package/engine/builder-operators/build.js.map +1 -0
- package/engine/builder-operators/collect-garbage.d.ts +8 -0
- package/engine/builder-operators/collect-garbage.js +21 -0
- package/engine/builder-operators/collect-garbage.js.map +1 -0
- package/engine/builder-operators/compile.d.ts +6 -0
- package/engine/builder-operators/compile.js +20 -0
- package/engine/builder-operators/compile.js.map +1 -0
- package/engine/builder-operators/dependency-changes.d.ts +10 -0
- package/engine/builder-operators/dependency-changes.js +25 -0
- package/engine/builder-operators/dependency-changes.js.map +1 -0
- package/engine/builder-operators/emit.d.ts +6 -0
- package/engine/builder-operators/emit.js +14 -0
- package/engine/builder-operators/emit.js.map +1 -0
- package/engine/builder-operators/index.d.ts +8 -0
- package/engine/builder-operators/index.js +12 -0
- package/engine/builder-operators/index.js.map +1 -0
- package/engine/builder-operators/load.d.ts +6 -0
- package/engine/builder-operators/load.js +20 -0
- package/engine/builder-operators/load.js.map +1 -0
- package/engine/builder-operators/post-process.d.ts +13 -0
- package/engine/builder-operators/post-process.js +32 -0
- package/engine/builder-operators/post-process.js.map +1 -0
- package/engine/builder-operators/print-output.d.ts +8 -0
- package/engine/builder-operators/print-output.js +53 -0
- package/engine/builder-operators/print-output.js.map +1 -0
- package/engine/builder-operators/refresh.d.ts +6 -0
- package/engine/builder-operators/refresh.js +20 -0
- package/engine/builder-operators/refresh.js.map +1 -0
- package/engine/builder-operators/task.d.ts +25 -0
- package/engine/builder-operators/task.js +46 -0
- package/engine/builder-operators/task.js.map +1 -0
- package/engine/entities/abstractions/entity.d.ts +18 -16
- package/engine/entities/abstractions/entity.js +21 -19
- package/engine/entities/abstractions/entity.js.map +1 -1
- package/engine/entities/abstractions/file.entity.d.ts +11 -1
- package/engine/entities/abstractions/file.entity.js +32 -13
- package/engine/entities/abstractions/file.entity.js.map +1 -1
- package/engine/entities/abstractions/route.entity.d.ts +9 -1
- package/engine/entities/abstractions/route.entity.js +49 -27
- package/engine/entities/abstractions/route.entity.js.map +1 -1
- package/engine/entities/abstractions/source-file.entity.d.ts +11 -9
- package/engine/entities/abstractions/source-file.entity.js +18 -13
- package/engine/entities/abstractions/source-file.entity.js.map +1 -1
- package/engine/entities/api-page.entity.d.ts +13 -11
- package/engine/entities/api-page.entity.js +41 -28
- package/engine/entities/api-page.entity.js.map +1 -1
- package/engine/entities/api-scope.entity.d.ts +12 -10
- package/engine/entities/api-scope.entity.js +15 -13
- package/engine/entities/api-scope.entity.js.map +1 -1
- package/engine/entities/api.entity.d.ts +5 -5
- package/engine/entities/api.entity.js +18 -17
- package/engine/entities/api.entity.js.map +1 -1
- package/engine/entities/cache/decorators/cached-entity.d.ts +7 -5
- package/engine/entities/cache/decorators/cached-entity.js +11 -16
- package/engine/entities/cache/decorators/cached-entity.js.map +1 -1
- package/engine/entities/category.entity.d.ts +5 -5
- package/engine/entities/category.entity.js +16 -20
- package/engine/entities/category.entity.js.map +1 -1
- package/engine/entities/indexes.entity.d.ts +2 -3
- package/engine/entities/indexes.entity.js +2 -5
- package/engine/entities/indexes.entity.js.map +1 -1
- package/engine/entities/page.entity.d.ts +10 -10
- package/engine/entities/page.entity.js +83 -73
- package/engine/entities/page.entity.js.map +1 -1
- package/engine/entities/skeleton.entity.d.ts +2 -4
- package/engine/entities/skeleton.entity.js +11 -25
- package/engine/entities/skeleton.entity.js.map +1 -1
- package/engine/entity-emitter.d.ts +19 -0
- package/engine/entity-emitter.js +52 -0
- package/engine/entity-emitter.js.map +1 -0
- package/engine/entity-store.d.ts +1 -0
- package/engine/entity-store.js +7 -4
- package/engine/entity-store.js.map +1 -1
- package/engine/functions/build-candidates.js +16 -5
- package/engine/functions/build-candidates.js.map +1 -1
- package/engine/index.d.ts +3 -2
- package/engine/index.js +3 -2
- package/engine/index.js.map +1 -1
- package/engine/nunjucks/extentions/index.d.ts +1 -0
- package/engine/nunjucks/extentions/index.extension.js.map +1 -0
- package/engine/nunjucks/extentions/index.js +5 -0
- package/engine/nunjucks/extentions/index.js.map +1 -0
- package/engine/nunjucks/filters.d.ts +2 -0
- package/engine/{template-filters.js → nunjucks/filters.js} +5 -9
- package/engine/nunjucks/filters.js.map +1 -0
- package/engine/nunjucks/index.d.ts +2 -0
- package/engine/nunjucks/index.js +6 -0
- package/engine/nunjucks/index.js.map +1 -0
- package/engine/nunjucks/render-template.d.ts +8 -0
- package/engine/nunjucks/render-template.js +46 -0
- package/engine/nunjucks/render-template.js.map +1 -0
- package/engine/variables.d.ts +0 -2
- package/engine/variables.js +1 -3
- package/engine/variables.js.map +1 -1
- package/engine/watcher.d.ts +3 -5
- package/engine/watcher.js +13 -9
- package/engine/watcher.js.map +1 -1
- package/helpers/angular/{component-decorator.d.ts → get-component-decorator.d.ts} +1 -1
- package/helpers/angular/{component-decorator.js → get-component-decorator.js} +4 -4
- package/helpers/angular/get-component-decorator.js.map +1 -0
- package/helpers/angular/{directive-decorator.d.ts → get-directive-decorator.d.ts} +1 -1
- package/helpers/angular/{directive-decorator.js → get-directive-decorator.js} +4 -4
- package/helpers/angular/get-directive-decorator.js.map +1 -0
- package/helpers/angular/get-pipe-decorator.d.ts +8 -0
- package/helpers/angular/get-pipe-decorator.js +26 -0
- package/helpers/angular/get-pipe-decorator.js.map +1 -0
- package/helpers/angular/index.d.ts +3 -2
- package/helpers/angular/index.js +3 -2
- package/helpers/angular/index.js.map +1 -1
- package/helpers/angular/is-standalone.js +6 -4
- package/helpers/angular/is-standalone.js.map +1 -1
- package/helpers/build-entity-keyword.d.ts +10 -0
- package/helpers/build-entity-keyword.js +28 -0
- package/helpers/build-entity-keyword.js.map +1 -0
- package/helpers/build-file-entity.js +36 -34
- package/helpers/build-file-entity.js.map +1 -1
- package/helpers/build-indexes.js +43 -40
- package/helpers/build-indexes.js.map +1 -1
- package/helpers/emit-built-output.d.ts +2 -2
- package/helpers/emit-built-output.js +1 -1
- package/helpers/emit-built-output.js.map +1 -1
- package/helpers/entity-type.d.ts +6 -0
- package/helpers/entity-type.js +10 -1
- package/helpers/entity-type.js.map +1 -1
- package/helpers/extract-docs.js +2 -2
- package/helpers/extract-docs.js.map +1 -1
- package/helpers/extract-selectors.js +1 -1
- package/helpers/extract-selectors.js.map +1 -1
- package/helpers/generate-api-entities.js +4 -3
- package/helpers/generate-api-entities.js.map +1 -1
- package/helpers/get-component-asset.js +4 -11
- package/helpers/get-component-asset.js.map +1 -1
- package/helpers/index.d.ts +3 -5
- package/helpers/index.js +3 -5
- package/helpers/index.js.map +1 -1
- package/helpers/playground/build-playground-metadata.d.ts +9 -0
- package/helpers/playground/build-playground-metadata.js +66 -0
- package/helpers/playground/build-playground-metadata.js.map +1 -0
- package/helpers/playground/get-content-for-playground.d.ts +8 -0
- package/helpers/playground/get-content-for-playground.js +39 -0
- package/helpers/playground/get-content-for-playground.js.map +1 -0
- package/helpers/playground/get-playground-by-id.js.map +1 -0
- package/helpers/playground/get-playground-inputs.d.ts +12 -0
- package/helpers/playground/get-playground-inputs.js +72 -0
- package/helpers/playground/get-playground-inputs.js.map +1 -0
- package/helpers/playground/get-playground-template-inputs.d.ts +7 -0
- package/helpers/playground/get-playground-template-inputs.js +17 -0
- package/helpers/playground/get-playground-template-inputs.js.map +1 -0
- package/helpers/playground/get-playgrounds-expression.js.map +1 -0
- package/helpers/playground/get-playgrounds-ids.js.map +1 -0
- package/helpers/playground/get-target-for-playground.d.ts +8 -0
- package/helpers/playground/get-target-for-playground.js +26 -0
- package/helpers/playground/get-target-for-playground.js.map +1 -0
- package/helpers/playground/get-template-for-playground.d.ts +8 -0
- package/helpers/playground/get-template-for-playground.js +22 -0
- package/helpers/playground/get-template-for-playground.js.map +1 -0
- package/helpers/playground/index.d.ts +9 -0
- package/helpers/playground/index.js +13 -0
- package/helpers/playground/index.js.map +1 -0
- package/helpers/print.d.ts +24 -0
- package/helpers/print.js +46 -0
- package/helpers/print.js.map +1 -0
- package/helpers/process-html.d.ts +9 -2
- package/helpers/process-html.js +29 -10
- package/helpers/process-html.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 +1 -18
- package/helpers/typescript/create-project.js.map +1 -1
- package/interfaces/entity-keyword.d.ts +5 -0
- package/interfaces/entity-keyword.js +3 -0
- package/interfaces/entity-keyword.js.map +1 -0
- package/interfaces/index.d.ts +3 -1
- package/interfaces/index.js +3 -1
- package/interfaces/index.js.map +1 -1
- package/interfaces/output.d.ts +6 -0
- package/interfaces/{built-output.js → output.js} +1 -1
- package/interfaces/output.js.map +1 -0
- package/interfaces/playground-metadata.d.ts +12 -0
- package/interfaces/playground-metadata.js +3 -0
- package/interfaces/playground-metadata.js.map +1 -0
- package/operators/error-handler.d.ts +8 -0
- package/operators/error-handler.js +22 -0
- package/operators/error-handler.js.map +1 -0
- package/package.json +3 -3
- package/schematics/api/index.js +1 -1
- package/schematics/api/index.js.map +1 -1
- package/schematics/category/index.js +1 -1
- package/schematics/category/index.js.map +1 -1
- package/schematics/migrations/standalone-pages/index.js +2 -9
- package/schematics/migrations/standalone-pages/index.js.map +1 -1
- package/schematics/page/index.js +1 -7
- package/schematics/page/index.js.map +1 -1
- package/templates/api-page.module.ts.nunj +2 -2
- package/templates/helpers/accessor.html.nunj +2 -1
- package/templates/helpers/constructor.html.nunj +1 -1
- package/templates/helpers/members.html.nunj +2 -1
- package/templates/helpers/method.html.nunj +1 -1
- package/templates/helpers/parameters.html.nunj +2 -2
- package/templates/helpers/properties.html.nunj +1 -1
- package/templates/page.module.ts.nunj +2 -2
- package/templates/playgrounds.ts.nunj +15 -19
- package/engine/builder.d.ts +0 -23
- package/engine/builder.js +0 -125
- package/engine/builder.js.map +0 -1
- package/engine/entity-life-cycle.d.ts +0 -15
- package/engine/entity-life-cycle.js +0 -32
- package/engine/entity-life-cycle.js.map +0 -1
- package/engine/extentions/index.extension.js.map +0 -1
- package/engine/renderer.d.ts +0 -7
- package/engine/renderer.js +0 -49
- package/engine/renderer.js.map +0 -1
- package/engine/template-filters.d.ts +0 -2
- package/engine/template-filters.js.map +0 -1
- package/helpers/angular/component-decorator.js.map +0 -1
- package/helpers/angular/directive-decorator.js.map +0 -1
- package/helpers/get-playground-by-id.js.map +0 -1
- package/helpers/get-playground-properties.d.ts +0 -25
- package/helpers/get-playground-properties.js +0 -113
- package/helpers/get-playground-properties.js.map +0 -1
- package/helpers/get-playground-targets.d.ts +0 -6
- package/helpers/get-playground-targets.js +0 -21
- package/helpers/get-playground-targets.js.map +0 -1
- package/helpers/get-playgrounds-expression.js.map +0 -1
- package/helpers/get-playgrounds-ids.js.map +0 -1
- package/helpers/print-progress.d.ts +0 -6
- package/helpers/print-progress.js +0 -19
- package/helpers/print-progress.js.map +0 -1
- package/interfaces/built-output.d.ts +0 -4
- package/interfaces/built-output.js.map +0 -1
- /package/engine/{extentions → nunjucks/extentions}/index.extension.d.ts +0 -0
- /package/engine/{extentions → nunjucks/extentions}/index.extension.js +0 -0
- /package/helpers/{get-playground-by-id.d.ts → playground/get-playground-by-id.d.ts} +0 -0
- /package/helpers/{get-playground-by-id.js → playground/get-playground-by-id.js} +0 -0
- /package/helpers/{get-playgrounds-expression.d.ts → playground/get-playgrounds-expression.d.ts} +0 -0
- /package/helpers/{get-playgrounds-expression.js → playground/get-playgrounds-expression.js} +0 -0
- /package/helpers/{get-playgrounds-ids.d.ts → playground/get-playgrounds-ids.d.ts} +0 -0
- /package/helpers/{get-playgrounds-ids.js → playground/get-playgrounds-ids.js} +0 -0
|
@@ -7,6 +7,7 @@ const path = tslib_1.__importStar(require("path"));
|
|
|
7
7
|
const rxjs_1 = require("rxjs");
|
|
8
8
|
const operators_1 = require("rxjs/operators");
|
|
9
9
|
const helpers_1 = require("../../helpers");
|
|
10
|
+
const nunjucks_1 = require("../nunjucks");
|
|
10
11
|
const navigation_entity_1 = require("./abstractions/navigation.entity");
|
|
11
12
|
const decorators_1 = require("./cache/decorators");
|
|
12
13
|
exports.NgDocCategoryEntity = (() => {
|
|
@@ -15,10 +16,6 @@ exports.NgDocCategoryEntity = (() => {
|
|
|
15
16
|
let _classExtraInitializers = [];
|
|
16
17
|
let _classThis;
|
|
17
18
|
var NgDocCategoryEntity = _classThis = class extends navigation_entity_1.NgDocNavigationEntity {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.compilable = true;
|
|
21
|
-
}
|
|
22
19
|
get route() {
|
|
23
20
|
var _a, _b;
|
|
24
21
|
const folderName = path.basename(path.dirname(this.sourceFile.getFilePath()));
|
|
@@ -34,9 +31,10 @@ exports.NgDocCategoryEntity = (() => {
|
|
|
34
31
|
}
|
|
35
32
|
get canBeBuilt() {
|
|
36
33
|
var _a, _b;
|
|
37
|
-
return (
|
|
38
|
-
|
|
39
|
-
(0, core_1.asArray)(this.target.onlyForTags).includes((_b = (_a = this.context.context.target) === null || _a === void 0 ? void 0 : _a.configuration) !== null && _b !== void 0 ? _b : '')
|
|
34
|
+
return (0, core_1.isPresent)(this.target)
|
|
35
|
+
? !this.target.onlyForTags ||
|
|
36
|
+
(0, core_1.asArray)(this.target.onlyForTags).includes((_b = (_a = this.context.context.target) === null || _a === void 0 ? void 0 : _a.configuration) !== null && _b !== void 0 ? _b : '')
|
|
37
|
+
: true;
|
|
40
38
|
}
|
|
41
39
|
get isRoot() {
|
|
42
40
|
var _a;
|
|
@@ -70,30 +68,28 @@ exports.NgDocCategoryEntity = (() => {
|
|
|
70
68
|
var _a, _b;
|
|
71
69
|
return (_b = (_a = this.target) === null || _a === void 0 ? void 0 : _a.expanded) !== null && _b !== void 0 ? _b : false;
|
|
72
70
|
}
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
setParentDynamically() {
|
|
72
|
+
super.setParentDynamically();
|
|
73
|
+
this.parent = this.getParentFromCategory();
|
|
74
|
+
}
|
|
75
|
+
loadImpl() {
|
|
76
|
+
return super.loadImpl().pipe((0, operators_1.tap)(() => {
|
|
75
77
|
if (!this.title) {
|
|
76
|
-
throw new Error(`Failed to load
|
|
78
|
+
throw new Error(`Failed to load category. Make sure that you have a "title" property.`);
|
|
77
79
|
}
|
|
78
|
-
this.parent = this.getParentFromCategory();
|
|
79
|
-
}), (0, operators_1.catchError)((error) => {
|
|
80
|
-
this.readyToBuild = false;
|
|
81
|
-
this.context.context.logger.error(`\n${String(error)}`);
|
|
82
|
-
return (0, rxjs_1.of)(void 0);
|
|
83
80
|
}));
|
|
84
81
|
}
|
|
85
|
-
|
|
82
|
+
buildImpl() {
|
|
86
83
|
return this.isReadyForBuild ? (0, rxjs_1.forkJoin)([this.buildModule()]) : (0, rxjs_1.of)([]);
|
|
87
84
|
}
|
|
88
85
|
buildModule() {
|
|
89
86
|
if (this.target) {
|
|
90
|
-
|
|
91
|
-
.render('./category.module.ts.nunj', {
|
|
87
|
+
const content = (0, nunjucks_1.renderTemplate)('./category.module.ts.nunj', {
|
|
92
88
|
context: {
|
|
93
89
|
category: this,
|
|
94
90
|
},
|
|
95
|
-
})
|
|
96
|
-
|
|
91
|
+
});
|
|
92
|
+
return (0, rxjs_1.of)({ content, filePath: this.modulePath });
|
|
97
93
|
}
|
|
98
94
|
return (0, rxjs_1.of)();
|
|
99
95
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/category.entity.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"category.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/category.entity.ts"],"names":[],"mappings":";;;;AAAA,uCAA+D;AAC/D,mDAA6B;AAC7B,+BAA8C;AAC9C,8CAAmC;AAEnC,2CAA6D;AAE7D,0CAA2C;AAE3C,wEAAuE;AACvE,mDAAgD;AAInC,QAAA,mBAAmB;4BAD/B,IAAA,yBAAY,GAAE;;;;QACF,mBAAmB,qBAAC,SAAQ,yCAAoC;QAG5E,IAAa,KAAK;;YACjB,MAAM,UAAU,GAAW,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;YAEtF,OAAO,MAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,KAAK,mCAAI,UAAU,CAAC;QACzC,CAAC;QAED;;;;WAIG;QACH,IAAI,GAAG;YACN,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;QACnE,CAAC;QAED,IAAa,UAAU;;YACtB,OAAO,IAAA,gBAAS,EAAC,IAAI,CAAC,MAAM,CAAC;gBAC5B,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW;oBACxB,IAAA,cAAO,EAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,MAAA,MAAA,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,0CAAE,aAAa,mCAAI,EAAE,CAAC;gBAC7F,CAAC,CAAC,IAAI,CAAC;QACT,CAAC;QAED,IAAa,MAAM;;YAClB,OAAO,CAAC,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,QAAQ,CAAA,CAAC;QAC/B,CAAC;QAED,I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AAA,eAAQ,EAAC,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,SAAE,EAAC,EAAE,CAAC,CAAC;QACvE,CAAC;QAEO,WAAW;YAClB,IAAI,IAAI,CAAC,MAAM,EAAE;gBAChB,MAAM,OAAO,GAAW,IAAA,yBAAc,EAAC,2BAA2B,EAAE;oBACnE,OAAO,EAAE;wBACR,QAAQ,EAAE,IAAI;qBACd;iBACD,CAAC,CAAC;gBAEH,OAAO,IAAA,SAAE,EAAC,EAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,UAAU,EAAC,CAAC,CAAC;aAChD;YACD,OAAO,IAAA,SAAE,GAAE,CAAC;QACb,CAAC;;;;QA5FF,gKA6FC;QA7FY,mBAAmB;QAAnB,+DAAmB;;WAAnB,mBAAmB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import {
|
|
2
|
+
import { NgDocBuildOutput } from '../../interfaces';
|
|
3
3
|
import { NgDocEntity } from './abstractions/entity';
|
|
4
4
|
export declare class NgDocIndexesEntity extends NgDocEntity {
|
|
5
5
|
readonly id: string;
|
|
@@ -7,7 +7,6 @@ export declare class NgDocIndexesEntity extends NgDocEntity {
|
|
|
7
7
|
readonly rootFiles: string[];
|
|
8
8
|
readonly parent: undefined;
|
|
9
9
|
readonly buildCandidates: NgDocEntity[];
|
|
10
|
-
|
|
11
|
-
protected build(): Observable<NgDocBuiltOutput[]>;
|
|
10
|
+
protected buildImpl(): Observable<NgDocBuildOutput[]>;
|
|
12
11
|
private buildIndexes;
|
|
13
12
|
}
|
|
@@ -15,14 +15,11 @@ class NgDocIndexesEntity extends entity_1.NgDocEntity {
|
|
|
15
15
|
this.parent = undefined;
|
|
16
16
|
this.buildCandidates = [];
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
return (0, rxjs_1.of)(void 0);
|
|
20
|
-
}
|
|
21
|
-
build() {
|
|
18
|
+
buildImpl() {
|
|
22
19
|
return this.buildIndexes();
|
|
23
20
|
}
|
|
24
21
|
buildIndexes() {
|
|
25
|
-
const allIndexes = this.
|
|
22
|
+
const allIndexes = this.store
|
|
26
23
|
.asArray()
|
|
27
24
|
.map((entity) => entity.indexes)
|
|
28
25
|
.flat();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexes.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/indexes.entity.ts"],"names":[],"mappings":";;;;AACA,wDAAwB;AACxB,+BAAoC;AACpC,8CAAmC;AAGnC,kDAAkD;AAElD,MAAa,kBAAmB,SAAQ,oBAAW;IAAnD;;QACU,OAAE,GAAW,oBAAoB,CAAC;QAClC,WAAM,GAAY,IAAI,CAAC;QACvB,cAAS,GAAa,EAAE,CAAC;QACzB,WAAM,GAAc,SAAS,CAAC;QAC9B,oBAAe,GAAkB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"indexes.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/indexes.entity.ts"],"names":[],"mappings":";;;;AACA,wDAAwB;AACxB,+BAAoC;AACpC,8CAAmC;AAGnC,kDAAkD;AAElD,MAAa,kBAAmB,SAAQ,oBAAW;IAAnD;;QACU,OAAE,GAAW,oBAAoB,CAAC;QAClC,WAAM,GAAY,IAAI,CAAC;QACvB,cAAS,GAAa,EAAE,CAAC;QACzB,WAAM,GAAc,SAAS,CAAC;QAC9B,oBAAe,GAAkB,EAAE,CAAC;IAqB9C,CAAC;IAnBU,SAAS;QAClB,OAAO,IAAI,CAAC,YAAY,EAAE,CAAC;IAC5B,CAAC;IAEO,YAAY;QACnB,MAAM,UAAU,GAAqB,IAAI,CAAC,KAAK;aAC7C,OAAO,EAAE;aACT,GAAG,CAAC,CAAC,MAAmB,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC;aAC5C,IAAI,EAAE,CAAC;QAET,OAAO,IAAA,SAAE,EAAC,UAAU,CAAC,CAAC,IAAI,CACzB,IAAA,eAAG,EAAC,CAAC,WAA6B,EAAE,EAAE,CAAC;YACtC;gBACC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;gBAC7C,QAAQ,EAAE,cAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,cAAc,CAAC;aAC5D;SACD,CAAC,CACF,CAAC;IACH,CAAC;CACD;AA1BD,gDA0BC"}
|
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
import { NgDocPage } from '@ng-doc/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { ClassDeclaration, ObjectLiteralExpression } from 'ts-morph';
|
|
4
|
-
import { NgDocAsset,
|
|
4
|
+
import { NgDocAsset, NgDocBuildOutput, NgDocEntityKeyword, NgDocPlaygroundMetadata } from '../../interfaces';
|
|
5
5
|
import { NgDocEntity } from './abstractions/entity';
|
|
6
6
|
import { NgDocNavigationEntity } from './abstractions/navigation.entity';
|
|
7
7
|
import { NgDocCategoryEntity } from './category.entity';
|
|
8
8
|
export declare class NgDocPageEntity extends NgDocNavigationEntity<NgDocPage> {
|
|
9
9
|
playgroundsExpression: ObjectLiteralExpression | undefined;
|
|
10
10
|
demoClassDeclarations: ClassDeclaration[];
|
|
11
|
-
|
|
12
|
-
standalonePlaygroundKeys: string[];
|
|
11
|
+
playgroundMetadata: Record<string, NgDocPlaygroundMetadata>;
|
|
13
12
|
parent?: NgDocCategoryEntity;
|
|
14
|
-
compilable: boolean;
|
|
15
13
|
private componentAssets;
|
|
16
14
|
get route(): string;
|
|
17
15
|
get isRoot(): boolean;
|
|
18
16
|
get title(): string;
|
|
19
17
|
get buildCandidates(): NgDocEntity[];
|
|
20
18
|
get editSourceFileUrl(): string | undefined;
|
|
21
|
-
get canBeBuilt(): boolean;
|
|
19
|
+
protected get canBeBuilt(): boolean;
|
|
22
20
|
get order(): number | undefined;
|
|
23
|
-
get keywords():
|
|
21
|
+
get keywords(): NgDocEntityKeyword[];
|
|
24
22
|
/**
|
|
25
23
|
* Returns full url from the root
|
|
26
24
|
*
|
|
@@ -37,10 +35,12 @@ export declare class NgDocPageEntity extends NgDocNavigationEntity<NgDocPage> {
|
|
|
37
35
|
get playgroundsPath(): string;
|
|
38
36
|
get playgroundIds(): string[];
|
|
39
37
|
get hasImports(): boolean;
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
setParentDynamically(): void;
|
|
39
|
+
dependenciesChanged(): void;
|
|
40
|
+
protected loadImpl(): Observable<void>;
|
|
41
|
+
protected buildImpl(): Observable<NgDocBuildOutput[]>;
|
|
42
|
+
private updatePlaygroundMetadata;
|
|
42
43
|
private buildModule;
|
|
43
|
-
private buildDemoAssets;
|
|
44
44
|
private buildPlaygrounds;
|
|
45
|
-
private
|
|
45
|
+
private buildDemoAssets;
|
|
46
46
|
}
|
|
@@ -9,9 +9,9 @@ const rxjs_1 = require("rxjs");
|
|
|
9
9
|
const operators_1 = require("rxjs/operators");
|
|
10
10
|
const helpers_1 = require("../../helpers");
|
|
11
11
|
const build_indexes_1 = require("../../helpers/build-indexes");
|
|
12
|
-
const get_playgrounds_expression_1 = require("../../helpers/get-playgrounds-expression");
|
|
13
12
|
const operators_2 = require("../../operators");
|
|
14
13
|
const actions_1 = require("../actions");
|
|
14
|
+
const nunjucks_1 = require("../nunjucks");
|
|
15
15
|
const navigation_entity_1 = require("./abstractions/navigation.entity");
|
|
16
16
|
const decorators_1 = require("./cache/decorators");
|
|
17
17
|
exports.NgDocPageEntity = (() => {
|
|
@@ -23,9 +23,7 @@ exports.NgDocPageEntity = (() => {
|
|
|
23
23
|
constructor() {
|
|
24
24
|
super(...arguments);
|
|
25
25
|
this.demoClassDeclarations = [];
|
|
26
|
-
this.
|
|
27
|
-
this.standalonePlaygroundKeys = [];
|
|
28
|
-
this.compilable = true;
|
|
26
|
+
this.playgroundMetadata = {};
|
|
29
27
|
this.componentAssets = {};
|
|
30
28
|
}
|
|
31
29
|
get route() {
|
|
@@ -52,9 +50,10 @@ exports.NgDocPageEntity = (() => {
|
|
|
52
50
|
}
|
|
53
51
|
get canBeBuilt() {
|
|
54
52
|
var _a, _b;
|
|
55
|
-
return (
|
|
56
|
-
|
|
57
|
-
(0, core_1.asArray)(this.target.onlyForTags).includes((_b = (_a = this.context.context.target) === null || _a === void 0 ? void 0 : _a.configuration) !== null && _b !== void 0 ? _b : '')
|
|
53
|
+
return (0, core_1.isPresent)(this.target)
|
|
54
|
+
? !this.target.onlyForTags ||
|
|
55
|
+
(0, core_1.asArray)(this.target.onlyForTags).includes((_b = (_a = this.context.context.target) === null || _a === void 0 ? void 0 : _a.configuration) !== null && _b !== void 0 ? _b : '')
|
|
56
|
+
: true;
|
|
58
57
|
}
|
|
59
58
|
get order() {
|
|
60
59
|
var _a;
|
|
@@ -62,7 +61,17 @@ exports.NgDocPageEntity = (() => {
|
|
|
62
61
|
}
|
|
63
62
|
get keywords() {
|
|
64
63
|
var _a;
|
|
65
|
-
|
|
64
|
+
const rootKeywords = [...(0, core_1.asArray)((_a = this.target) === null || _a === void 0 ? void 0 : _a.keyword)].map((key) => ({
|
|
65
|
+
key: `*${key}`,
|
|
66
|
+
title: this.title,
|
|
67
|
+
path: this.fullRoute,
|
|
68
|
+
}));
|
|
69
|
+
return [
|
|
70
|
+
...rootKeywords,
|
|
71
|
+
...rootKeywords
|
|
72
|
+
.map((keyword) => this.anchors.map((anchor) => (0, helpers_1.buildEntityKeyword)(keyword.key, keyword.title, keyword.path, anchor)))
|
|
73
|
+
.flat(),
|
|
74
|
+
];
|
|
66
75
|
}
|
|
67
76
|
/**
|
|
68
77
|
* Returns full url from the root
|
|
@@ -106,104 +115,105 @@ exports.NgDocPageEntity = (() => {
|
|
|
106
115
|
var _a;
|
|
107
116
|
return !!((_a = this.objectExpression) === null || _a === void 0 ? void 0 : _a.getProperty('imports'));
|
|
108
117
|
}
|
|
109
|
-
|
|
110
|
-
|
|
118
|
+
setParentDynamically() {
|
|
119
|
+
super.setParentDynamically();
|
|
120
|
+
this.parent = this.getParentFromCategory();
|
|
121
|
+
}
|
|
122
|
+
dependenciesChanged() {
|
|
123
|
+
super.dependenciesChanged();
|
|
124
|
+
// Refresh source file from file system to make sure that it is up-to-date
|
|
125
|
+
Object.keys(this.playgroundMetadata).forEach((id) => this.playgroundMetadata[id].class.getSourceFile().refreshFromFileSystemSync());
|
|
126
|
+
this.updatePlaygroundMetadata();
|
|
127
|
+
}
|
|
128
|
+
loadImpl() {
|
|
129
|
+
return super.loadImpl().pipe((0, operators_1.map)(() => {
|
|
111
130
|
var _a;
|
|
112
131
|
if (!(0, core_1.isPresent)((_a = this.target) === null || _a === void 0 ? void 0 : _a.mdFile) || !fs.existsSync(this.mdPath)) {
|
|
113
|
-
throw new Error(`Failed to load
|
|
132
|
+
throw new Error(`Failed to load page. Make sure that you define "mdFile" property correctly and .md file exists.`);
|
|
114
133
|
}
|
|
115
134
|
if (!this.title) {
|
|
116
|
-
throw new Error(`Failed to load
|
|
135
|
+
throw new Error(`Failed to load page. Make sure that you have a "title" property.`);
|
|
117
136
|
}
|
|
118
|
-
this.parent = this.getParentFromCategory();
|
|
119
137
|
if (this.objectExpression) {
|
|
120
|
-
this.playgroundsExpression = (0,
|
|
138
|
+
this.playgroundsExpression = (0, helpers_1.getPlaygroundsExpression)(this.objectExpression);
|
|
121
139
|
this.demoClassDeclarations = (0, helpers_1.getDemoClassDeclarations)(this.objectExpression);
|
|
122
|
-
this.
|
|
123
|
-
this.standalonePlaygroundKeys = (0, core_1.asArray)(this.playgroundIds
|
|
124
|
-
.reduce((keys, id) => {
|
|
125
|
-
if (this.playgroundsExpression) {
|
|
126
|
-
const target = (0, helpers_1.getTargetForPlayground)(this.playgroundsExpression, id);
|
|
127
|
-
if (target && (0, helpers_1.isStandalone)(target)) {
|
|
128
|
-
keys.set(target, id);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
return keys;
|
|
132
|
-
}, new Map)
|
|
133
|
-
.values());
|
|
140
|
+
this.updatePlaygroundMetadata();
|
|
134
141
|
}
|
|
135
|
-
}), (0, operators_1.
|
|
136
|
-
this.
|
|
137
|
-
this.context.context.logger.error(`\n\n${String(error)}`);
|
|
138
|
-
return (0, rxjs_1.of)(void 0);
|
|
142
|
+
}), (0, operators_1.tap)({
|
|
143
|
+
error: (e) => this.errors.push(e),
|
|
139
144
|
}));
|
|
140
145
|
}
|
|
141
|
-
|
|
146
|
+
buildImpl() {
|
|
142
147
|
return this.isReadyForBuild
|
|
143
|
-
?
|
|
148
|
+
? (0, rxjs_1.forkJoin)([this.buildModule(), this.buildPlaygrounds(), this.buildDemoAssets()])
|
|
144
149
|
: (0, rxjs_1.of)([]);
|
|
145
150
|
}
|
|
151
|
+
updatePlaygroundMetadata() {
|
|
152
|
+
this.playgroundMetadata = this.playgroundIds.reduce((metadata, id) => {
|
|
153
|
+
if (this.playgroundsExpression) {
|
|
154
|
+
const playground = (0, helpers_1.getPlaygroundById)(this.playgroundsExpression, id);
|
|
155
|
+
if (playground) {
|
|
156
|
+
metadata[id] = (0, helpers_1.buildPlaygroundMetadata)(id, playground);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
return metadata;
|
|
160
|
+
}, {});
|
|
161
|
+
}
|
|
146
162
|
buildModule() {
|
|
147
|
-
if (this.target) {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
163
|
+
if (!this.target) {
|
|
164
|
+
throw new Error(`Failed to build page. Make sure that you define page configuration property correctly.`);
|
|
165
|
+
}
|
|
166
|
+
const template = (0, nunjucks_1.renderTemplate)(this.target.mdFile, {
|
|
167
|
+
scope: this.sourceFileFolder,
|
|
168
|
+
context: {
|
|
169
|
+
NgDocPage: this.target,
|
|
170
|
+
NgDocActions: new actions_1.NgDocActions(this),
|
|
171
|
+
},
|
|
172
|
+
dependenciesStore: this.dependencies,
|
|
173
|
+
filters: false,
|
|
174
|
+
});
|
|
175
|
+
return (0, rxjs_1.of)(template).pipe((0, operators_1.map)((output) => (0, helpers_1.marked)(output, this)), (0, operators_1.switchMap)((html) => (0, helpers_1.processHtml)(this, html)), (0, operators_1.map)((content) => ({
|
|
176
|
+
content,
|
|
177
|
+
filePath: this.modulePath,
|
|
178
|
+
postProcessFn: (content) => (0, rxjs_1.from)((0, helpers_1.postProcessHtml)(this, content)).pipe((0, operators_1.switchMap)((content) => (0, rxjs_1.from)((0, build_indexes_1.buildIndexes)({
|
|
160
179
|
title: this.title,
|
|
161
180
|
content,
|
|
162
181
|
pageType: (0, helpers_1.getPageType)(this),
|
|
163
182
|
breadcrumbs: this.breadcrumbs,
|
|
164
183
|
route: this.fullRoute,
|
|
165
|
-
})).pipe((0, operators_1.tap)((indexes) => this.indexes.push(...indexes)), (0, operators_1.
|
|
166
|
-
return page.pipe((0, operators_1.switchMap)((pageContent) => this.builder.renderer
|
|
167
|
-
.render('./page.module.ts.nunj', {
|
|
184
|
+
})).pipe((0, operators_1.tap)((indexes) => this.indexes.push(...indexes)), (0, operators_1.map)(() => (0, nunjucks_1.renderTemplate)('./page.module.ts.nunj', {
|
|
168
185
|
context: {
|
|
169
186
|
page: this,
|
|
170
|
-
pageContent,
|
|
187
|
+
pageContent: content,
|
|
171
188
|
},
|
|
172
|
-
})
|
|
173
|
-
|
|
174
|
-
}
|
|
175
|
-
return (0, rxjs_1.of)();
|
|
176
|
-
}
|
|
177
|
-
buildDemoAssets() {
|
|
178
|
-
return this.builder.renderer
|
|
179
|
-
.render('./demo-assets.ts.nunj', {
|
|
180
|
-
context: {
|
|
181
|
-
demoAssets: this.componentAssets,
|
|
182
|
-
},
|
|
183
|
-
})
|
|
184
|
-
.pipe((0, operators_1.map)((output) => ({ content: output, filePath: this.demoAssetsPath })));
|
|
189
|
+
}))))),
|
|
190
|
+
})));
|
|
185
191
|
}
|
|
186
192
|
buildPlaygrounds() {
|
|
187
|
-
|
|
188
|
-
.render('./playgrounds.ts.nunj', {
|
|
193
|
+
const content = (0, nunjucks_1.renderTemplate)('./playgrounds.ts.nunj', {
|
|
189
194
|
context: {
|
|
190
195
|
page: this,
|
|
191
196
|
},
|
|
192
|
-
})
|
|
193
|
-
|
|
194
|
-
content: (0, helpers_1.formatCode)(output, 'TypeScript'),
|
|
195
|
-
filePath: this.playgroundsPath,
|
|
196
|
-
})));
|
|
197
|
+
});
|
|
198
|
+
return (0, rxjs_1.of)({ content: (0, helpers_1.formatCode)(content, 'TypeScript'), filePath: this.playgroundsPath });
|
|
197
199
|
}
|
|
198
|
-
|
|
200
|
+
buildDemoAssets() {
|
|
199
201
|
if (this.objectExpression) {
|
|
200
202
|
this.componentAssets = this.demoClassDeclarations
|
|
201
203
|
.map((classDeclarations) => (0, helpers_1.getComponentAsset)(classDeclarations, this.context.inlineStyleLanguage, this.assetsFolder))
|
|
202
|
-
.reduce((acc, curr) => ({
|
|
204
|
+
.reduce((acc, curr) => (Object.assign(Object.assign({}, acc), curr)), {});
|
|
203
205
|
this.dependencies.add(...this.assets.map((asset) => asset.originalPath));
|
|
204
|
-
return (0, operators_2.forkJoinOrEmpty)(Object.keys(this.componentAssets).map((key) => (0, operators_2.forkJoinOrEmpty)(this.componentAssets[key].map((asset) => (0, rxjs_1.from)((0, helpers_1.processHtml)(this, asset.output)).pipe((0, operators_1.tap)((output) => (asset.output = output))))))).pipe((0, operators_1.
|
|
206
|
+
return (0, operators_2.forkJoinOrEmpty)(Object.keys(this.componentAssets).map((key) => (0, operators_2.forkJoinOrEmpty)(this.componentAssets[key].map((asset) => (0, rxjs_1.from)((0, helpers_1.processHtml)(this, asset.output)).pipe((0, operators_1.tap)((output) => (asset.output = output))))))).pipe((0, operators_1.map)(() => ({
|
|
207
|
+
content: '',
|
|
208
|
+
filePath: this.demoAssetsPath,
|
|
209
|
+
postProcessFn: (content) => (0, rxjs_1.of)(content).pipe((0, operators_1.switchMap)(() => (0, operators_2.forkJoinOrEmpty)(Object.keys(this.componentAssets).map((key) => (0, operators_2.forkJoinOrEmpty)(this.componentAssets[key].map((asset) => (0, rxjs_1.from)((0, helpers_1.postProcessHtml)(this, asset.output)).pipe((0, operators_1.tap)((output) => (asset.output = output)))))))), (0, operators_1.map)(() => (0, nunjucks_1.renderTemplate)('./demo-assets.ts.nunj', {
|
|
210
|
+
context: {
|
|
211
|
+
demoAssets: this.componentAssets,
|
|
212
|
+
},
|
|
213
|
+
}))),
|
|
214
|
+
})));
|
|
205
215
|
}
|
|
206
|
-
return (0, rxjs_1.of)(
|
|
216
|
+
return (0, rxjs_1.of)({ content: '', filePath: this.demoAssetsPath });
|
|
207
217
|
}
|
|
208
218
|
};
|
|
209
219
|
tslib_1.__setFunctionName(_classThis, "NgDocPageEntity");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/page.entity.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"page.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/page.entity.ts"],"names":[],"mappings":";;;;AAAA,uCAA8F;AAC9F,+CAAyB;AACzB,mDAA6B;AAC7B,+BAAoD;AACpD,8CAAmD;AAGnD,2CAeuB;AACvB,+DAAyD;AAEzD,+CAAgD;AAEhD,wCAAwC;AACxC,0CAA2C;AAE3C,wEAAuE;AACvE,mDAAgD;AAInC,QAAA,eAAe;4BAD3B,IAAA,yBAAY,GAAE;;;;QACF,eAAe,qBAAC,SAAQ,yCAAgC;;;YAEpE,0BAAqB,GAAuB,EAAE,CAAC;YAC/C,uBAAkB,GAA4C,EAAE,CAAC;YAGzD,oBAAe,GAAwB,EAAE,CAAC;QA2RnD,CAAC;QAzRA,IAAa,KAAK;;YACjB,MAAM,UAAU,GAAW,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CA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,CAAC,GAAG,CAAC,CAAC,GAAW,EAAE,EAAE,CACrD,IAAA,2BAAe,EACd,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,KAAiB,EAAE,EAAE,CACnD,IAAA,WAAI,EAAC,IAAA,yBAAe,EAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAC7C,IAAA,eAAG,EAAC,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAChD,CACD,CACD,CACD,CACD,CACD,EACD,IAAA,eAAG,EAAC,GAAG,EAAE,CACR,IAAA,yBAAc,EAAC,uBAAuB,EAAE;wBACvC,OAAO,EAAE;4BACR,UAAU,EAAE,IAAI,CAAC,eAAe;yBAChC;qBACD,CAAC,CACF,CACD;iBACF,CAAC,CAAC,CACH,CAAC;aACF;YAED,OAAO,IAAA,SAAE,EAAC,EAAC,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,cAAc,EAAC,CAAC,CAAC;QACzD,CAAC;;;;QAhSF,gKAiSC;QAjSY,eAAe;QAAf,+DAAe;;WAAf,eAAe"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import {
|
|
2
|
+
import { NgDocBuildOutput } from '../../interfaces';
|
|
3
3
|
import { NgDocEntity } from './abstractions/entity';
|
|
4
4
|
export declare class NgDocSkeletonEntity extends NgDocEntity {
|
|
5
5
|
readonly id: string;
|
|
@@ -7,12 +7,10 @@ export declare class NgDocSkeletonEntity extends NgDocEntity {
|
|
|
7
7
|
readonly rootFiles: string[];
|
|
8
8
|
readonly parent: undefined;
|
|
9
9
|
readonly buildCandidates: NgDocEntity[];
|
|
10
|
-
|
|
11
|
-
protected build(): Observable<NgDocBuiltOutput[]>;
|
|
10
|
+
protected buildImpl(): Observable<NgDocBuildOutput[]>;
|
|
12
11
|
private buildRoutes;
|
|
13
12
|
private buildContext;
|
|
14
13
|
private buildIndexFile;
|
|
15
14
|
private buildGeneratedModule;
|
|
16
15
|
private get rootEntitiesForBuild();
|
|
17
|
-
private isReady;
|
|
18
16
|
}
|
|
@@ -4,7 +4,7 @@ exports.NgDocSkeletonEntity = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
6
6
|
const rxjs_1 = require("rxjs");
|
|
7
|
-
const
|
|
7
|
+
const nunjucks_1 = require("../nunjucks");
|
|
8
8
|
const entity_1 = require("./abstractions/entity");
|
|
9
9
|
class NgDocSkeletonEntity extends entity_1.NgDocEntity {
|
|
10
10
|
constructor() {
|
|
@@ -15,43 +15,29 @@ class NgDocSkeletonEntity extends entity_1.NgDocEntity {
|
|
|
15
15
|
this.parent = undefined;
|
|
16
16
|
this.buildCandidates = [];
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
return (0, rxjs_1.of)(void 0);
|
|
20
|
-
}
|
|
21
|
-
build() {
|
|
18
|
+
buildImpl() {
|
|
22
19
|
return (0, rxjs_1.forkJoin)([this.buildIndexFile(), this.buildGeneratedModule(), this.buildRoutes(), this.buildContext()]);
|
|
23
20
|
}
|
|
24
21
|
buildRoutes() {
|
|
25
22
|
const entities = this.rootEntitiesForBuild;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
filePath: path_1.default.join(this.context.buildPath, 'ng-doc.routing.ts'),
|
|
29
|
-
})));
|
|
23
|
+
const content = (0, nunjucks_1.renderTemplate)('./routing.ts.nunj', { context: { entities } });
|
|
24
|
+
return (0, rxjs_1.of)({ content, filePath: path_1.default.join(this.context.buildPath, 'ng-doc.routing.ts') });
|
|
30
25
|
}
|
|
31
26
|
buildContext() {
|
|
32
27
|
const entities = this.rootEntitiesForBuild;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
filePath: path_1.default.join(this.context.buildPath, 'ng-doc.context.ts'),
|
|
36
|
-
})));
|
|
28
|
+
const content = (0, nunjucks_1.renderTemplate)('./context.ts.nunj', { context: { entities } });
|
|
29
|
+
return (0, rxjs_1.of)({ content, filePath: path_1.default.join(this.context.buildPath, 'ng-doc.context.ts') });
|
|
37
30
|
}
|
|
38
31
|
buildIndexFile() {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
filePath: path_1.default.join(this.context.buildPath, 'index.ts'),
|
|
42
|
-
})));
|
|
32
|
+
const content = (0, nunjucks_1.renderTemplate)('./index.ts.nunj');
|
|
33
|
+
return (0, rxjs_1.of)({ content, filePath: path_1.default.join(this.context.buildPath, 'index.ts') });
|
|
43
34
|
}
|
|
44
35
|
buildGeneratedModule() {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
filePath: path_1.default.join(this.context.buildPath, 'ng-doc.generated.module.ts'),
|
|
48
|
-
})));
|
|
36
|
+
const content = (0, nunjucks_1.renderTemplate)('./ng-doc.generated.module.ts.nunj');
|
|
37
|
+
return (0, rxjs_1.of)({ content, filePath: path_1.default.join(this.context.buildPath, 'ng-doc.generated.module.ts') });
|
|
49
38
|
}
|
|
50
39
|
get rootEntitiesForBuild() {
|
|
51
|
-
return this.
|
|
52
|
-
}
|
|
53
|
-
isReady(entity) {
|
|
54
|
-
return entity.isReadyForBuild;
|
|
40
|
+
return this.store.asArray().filter((e) => e.isRoot && e.isReadyForBuild);
|
|
55
41
|
}
|
|
56
42
|
}
|
|
57
43
|
exports.NgDocSkeletonEntity = NgDocSkeletonEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/skeleton.entity.ts"],"names":[],"mappings":";;;;AAAA,wDAAwB;AACxB,+BAA8C;
|
|
1
|
+
{"version":3,"file":"skeleton.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/skeleton.entity.ts"],"names":[],"mappings":";;;;AAAA,wDAAwB;AACxB,+BAA8C;AAG9C,0CAA2C;AAC3C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AAE,QAAQ,EAAE,cAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,UAAU,CAAC,EAAC,CAAC,CAAC;IAC/E,CAAC;IAEO,oBAAoB;QAC3B,MAAM,OAAO,GAAW,IAAA,yBAAc,EAAC,mCAAmC,CAAC,CAAC;QAE5E,OAAO,IAAA,SAAE,EAAC,EAAC,OAAO,EAAE,QAAQ,EAAE,cAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,4BAA4B,CAAC,EAAC,CAAC,CAAC;IACjG,CAAC;IAED,IAAY,oBAAoB;QAC/B,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,eAAe,CAAC,CAAC;IACvF,CAAC;CACD;AA1CD,kDA0CC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NgDocBuilderContext } from '@ng-doc/builder';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Project } from 'ts-morph';
|
|
4
|
+
import { NgDocEntity } from './entities/abstractions/entity';
|
|
5
|
+
import { NgDocCache } from './entities/cache';
|
|
6
|
+
import { NgDocEntityStore } from './entity-store';
|
|
7
|
+
import { NgDocWatcher } from './watcher';
|
|
8
|
+
/**
|
|
9
|
+
* Emits new entities if they are added or changed. Also emits destroyed entities if their root files are unlinked.
|
|
10
|
+
* This function not only creates the entities based on the file path, but also creates the child entities recursively
|
|
11
|
+
* if it's can be done.
|
|
12
|
+
*
|
|
13
|
+
* @param store - The entity store.
|
|
14
|
+
* @param cache - The cache instance.
|
|
15
|
+
* @param context - The builder context.
|
|
16
|
+
* @param project - The project instance.
|
|
17
|
+
* @param watcher - The watcher instance.
|
|
18
|
+
*/
|
|
19
|
+
export declare function entityEmitter(store: NgDocEntityStore, cache: NgDocCache, context: NgDocBuilderContext, project: Project, watcher: NgDocWatcher): Observable<NgDocEntity[]>;
|