@ng-doc/builder 16.3.5 → 16.4.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 +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 +4 -4
- 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/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/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
package/browser/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.runBrowser = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
const architect_1 = require("@angular-devkit/architect");
|
|
5
6
|
const browser_1 = require("@angular-devkit/build-angular/src/builders/browser");
|
|
6
7
|
const browser_esbuild_1 = require("@angular-devkit/build-angular/src/builders/browser-esbuild");
|
|
8
|
+
const rxjs_1 = require("rxjs");
|
|
7
9
|
const operators_1 = require("rxjs/operators");
|
|
8
|
-
const
|
|
10
|
+
const build_ng_doc_1 = require("../engine/build-ng-doc");
|
|
9
11
|
const helpers_1 = require("../helpers");
|
|
10
12
|
/**
|
|
11
13
|
* Attach NgDocWebpackPlugin before Angular Plugins
|
|
@@ -14,16 +16,17 @@ const helpers_1 = require("../helpers");
|
|
|
14
16
|
* @param context Builder context
|
|
15
17
|
* @returns Observable of BrowserBuilderOutput
|
|
16
18
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
function runBrowser(options, context) {
|
|
20
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const browserTarget = options.browserTarget ? (0, architect_1.targetFromTargetString)(options.browserTarget) : null;
|
|
22
|
+
const targetOptions = browserTarget ? yield context.getTargetOptions(browserTarget) : options;
|
|
23
|
+
const builderContext = (0, helpers_1.createBuilderContext)(targetOptions, options, context);
|
|
24
|
+
const runner = (0, build_ng_doc_1.buildNgDoc)(builderContext);
|
|
25
|
+
yield (0, rxjs_1.firstValueFrom)(runner.pipe((0, operators_1.first)()));
|
|
26
|
+
return builderContext.config.angularBuilder === 'esbuild'
|
|
27
|
+
? (0, architect_1.fromAsyncIterable)((0, browser_esbuild_1.buildEsbuildBrowser)(options, context)).toPromise()
|
|
28
|
+
: yield (0, browser_1.buildWebpackBrowser)(options, context).toPromise();
|
|
29
|
+
});
|
|
27
30
|
}
|
|
28
31
|
exports.runBrowser = runBrowser;
|
|
29
32
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
package/browser/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/builder/browser/index.ts"],"names":[],"mappings":"
|
|
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,OAAO,CAAC,CAAC;QAClG,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;IACnE,CAAC;CAAA;AAXD,gCAWC;AAED,6DAA6D;AAC7D,aAAa;AACb,kBAAe,IAAA,yBAAa,EAAC,UAAU,CAAC,CAAC"}
|
package/dev-server/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.runDevServer = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
const architect_1 = require("@angular-devkit/architect");
|
|
5
6
|
const dev_server_1 = require("@angular-devkit/build-angular/src/builders/dev-server");
|
|
6
7
|
const rxjs_1 = require("rxjs");
|
|
7
8
|
const operators_1 = require("rxjs/operators");
|
|
8
|
-
const
|
|
9
|
+
const build_ng_doc_1 = require("../engine/build-ng-doc");
|
|
9
10
|
const helpers_1 = require("../helpers");
|
|
10
11
|
/**
|
|
11
12
|
* Attach NgDocBuilder and run DevServer
|
|
@@ -17,16 +18,15 @@ function runDevServer(options, context) {
|
|
|
17
18
|
const browserTarget = options.browserTarget ? (0, architect_1.targetFromTargetString)(options.browserTarget) : null;
|
|
18
19
|
return (browserTarget ? (0, rxjs_1.from)(context.getTargetOptions(browserTarget)) : (0, rxjs_1.of)(options)).pipe((0, operators_1.switchMap)((targetOptions) => {
|
|
19
20
|
const builderContext = (0, helpers_1.createBuilderContext)(targetOptions, options, context);
|
|
20
|
-
const
|
|
21
|
-
const runner = builder.run().pipe((0, operators_1.shareReplay)(1));
|
|
21
|
+
const runner = (0, build_ng_doc_1.buildNgDoc)(builderContext).pipe((0, operators_1.shareReplay)(1));
|
|
22
22
|
if (builderContext.config.angularBuilder === 'esbuild') {
|
|
23
23
|
// This is a hack to make sure that the dev server uses the esbuild builder
|
|
24
24
|
// instead of the webpack builder. This is necessary because Angular checks
|
|
25
25
|
// the builder name to determine which builder to use for the dev server.
|
|
26
26
|
// https://github.com/angular/angular-cli/blob/9d8f6289faefa7241212f9412e70717609ef47ad/packages/angular_devkit/build_angular/src/builders/dev-server/builder.ts#L48
|
|
27
|
-
context.getBuilderNameForTarget =
|
|
27
|
+
context.getBuilderNameForTarget = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return '@angular-devkit/build-angular:browser-esbuild'; });
|
|
28
28
|
}
|
|
29
|
-
return runner.pipe((0, operators_1.first)(), (0, operators_1.
|
|
29
|
+
return runner.pipe((0, operators_1.first)(), (0, operators_1.switchMap)(() => (0, rxjs_1.combineLatest)([runner, (0, dev_server_1.serveWebpackBrowser)(options, context)]).pipe((0, operators_1.map)(([_, devServerOutput]) => devServerOutput))));
|
|
30
30
|
}));
|
|
31
31
|
}
|
|
32
32
|
exports.runDevServer = runDevServer;
|
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":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/builder/dev-server/index.ts"],"names":[],"mappings":";;;;AAAA,yDAAwG;AAExG,sFAAkH;AAClH,+BAAyD;AACzD,8CAAkE;AAElE,yDAAkD;AAClD,wCAAgD;AAGhD;;;;;GAKG;AACH,SAAgB,YAAY,CAAC,OAAoB,EAAE,OAAuB;IACzE,MAAM,aAAa,GAAkB,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,IAAA,kCAAsB,EAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAElH,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,IAAA,WAAI,EAAC,OAAO,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,SAAE,EAAC,OAAyB,CAAC,CAAC,CAAC,IAAI,CAC1G,IAAA,qBAAS,EAAC,CAAC,aAAkB,EAAE,EAAE;QAChC,MAAM,cAAc,GAAwB,IAAA,8BAAoB,EAAC,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAClG,MAAM,MAAM,GAAqB,IAAA,yBAAU,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"}
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.playgroundAction = void 0;
|
|
4
4
|
const core_1 = require("@ng-doc/core");
|
|
5
|
-
const helpers_1 = require("../../helpers");
|
|
6
|
-
const component_decorator_1 = require("../../helpers/angular/component-decorator");
|
|
7
5
|
/**
|
|
8
6
|
* Render playground point on the page, it will be rendered by the application
|
|
9
7
|
*
|
|
@@ -13,30 +11,20 @@ const component_decorator_1 = require("../../helpers/angular/component-decorator
|
|
|
13
11
|
*/
|
|
14
12
|
function playgroundAction(pId) {
|
|
15
13
|
return (project, page) => {
|
|
16
|
-
var _a, _b
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (!playgroundsExpression) {
|
|
20
|
-
throw new Error(`Can't find the playground configuration for "${page.route}" page. Make sure that you configured the "${pId}" playground correctly.`);
|
|
21
|
-
}
|
|
22
|
-
const declaration = (0, helpers_1.getTargetForPlayground)(playgroundsExpression, pId);
|
|
23
|
-
if (!declaration) {
|
|
24
|
-
throw new Error(`Playground action didn't find the class declaration for the current target.`);
|
|
25
|
-
}
|
|
26
|
-
const decorator = (_a = (0, component_decorator_1.componentDecorator)(declaration)) !== null && _a !== void 0 ? _a : (0, helpers_1.directiveDecorator)(declaration);
|
|
27
|
-
const selectors = (_c = (_b = decorator === null || decorator === void 0 ? void 0 : decorator.selector) === null || _b === void 0 ? void 0 : _b.replace(/[\n\s]/gm, '')) !== null && _c !== void 0 ? _c : '';
|
|
28
|
-
const playgroundData = (0, helpers_1.getPlaygroundClassProperties)(declaration);
|
|
14
|
+
var _a, _b;
|
|
15
|
+
const metadata = page.playgroundMetadata[pId];
|
|
16
|
+
if (metadata) {
|
|
29
17
|
return {
|
|
30
18
|
output: `<ng-doc-playground id="${pId}" indexable="false">
|
|
31
|
-
<div id="selectors">${
|
|
32
|
-
<div id="
|
|
19
|
+
<div id="selectors">${(_a = metadata.selector) !== null && _a !== void 0 ? _a : ''}</div>
|
|
20
|
+
<div id="pipeName">${(_b = metadata.name) !== null && _b !== void 0 ? _b : ''}</div>
|
|
21
|
+
<div id="data">${(0, core_1.escapeHtml)(JSON.stringify(metadata.properties))}</div>
|
|
33
22
|
</ng-doc-playground>`,
|
|
34
|
-
dependencies: [
|
|
23
|
+
dependencies: [metadata.class.getSourceFile().getFilePath()],
|
|
35
24
|
};
|
|
36
25
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return { output: `` };
|
|
26
|
+
else {
|
|
27
|
+
throw new Error(`Metadata for playground "${pId}" not found. Make sure that you configured the playgrounds correctly.`);
|
|
40
28
|
}
|
|
41
29
|
};
|
|
42
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground.action.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/actions/playground.action.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"playground.action.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/actions/playground.action.ts"],"names":[],"mappings":";;;AAAA,uCAAwC;AAOxC;;;;;;GAMG;AACH,SAAgB,gBAAgB,CAAC,GAAW;IAC3C,OAAO,CAAC,OAAgB,EAAE,IAAqB,EAAqB,EAAE;;QACrE,MAAM,QAAQ,GAAwC,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC;QAEnF,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;gBACvB,YAAY,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC,WAAW,EAAE,CAAC;aAC5D,CAAC;SACF;aAAM;YACN,MAAM,IAAI,KAAK,CACd,4BAA4B,GAAG,uEAAuE,CACtG,CAAC;SACF;IACF,CAAC,CAAC;AACH,CAAC;AAnBD,4CAmBC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { NgDocBuilderContext } from '../interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Builds the documentation and emits files to the file system,
|
|
5
|
+
* based on the changes in the source files.
|
|
6
|
+
*
|
|
7
|
+
* @param context - The builder context.
|
|
8
|
+
*/
|
|
9
|
+
export declare function buildNgDoc(context: NgDocBuilderContext): Observable<void>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildNgDoc = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const fs = tslib_1.__importStar(require("fs"));
|
|
6
|
+
const path = tslib_1.__importStar(require("path"));
|
|
7
|
+
const rxjs_1 = require("rxjs");
|
|
8
|
+
const operators_1 = require("rxjs/operators");
|
|
9
|
+
const helpers_1 = require("../helpers");
|
|
10
|
+
const operators_2 = require("../operators");
|
|
11
|
+
const builder_operators_1 = require("./builder-operators");
|
|
12
|
+
const dependency_changes_1 = require("./builder-operators/dependency-changes");
|
|
13
|
+
const post_process_1 = require("./builder-operators/post-process");
|
|
14
|
+
const print_output_1 = require("./builder-operators/print-output");
|
|
15
|
+
const task_1 = require("./builder-operators/task");
|
|
16
|
+
const entities_1 = require("./entities");
|
|
17
|
+
const cache_1 = require("./entities/cache");
|
|
18
|
+
const indexes_entity_1 = require("./entities/indexes.entity");
|
|
19
|
+
const entity_emitter_1 = require("./entity-emitter");
|
|
20
|
+
const entity_store_1 = require("./entity-store");
|
|
21
|
+
const variables_1 = require("./variables");
|
|
22
|
+
const watcher_1 = require("./watcher");
|
|
23
|
+
/**
|
|
24
|
+
* Builds the documentation and emits files to the file system,
|
|
25
|
+
* based on the changes in the source files.
|
|
26
|
+
*
|
|
27
|
+
* @param context - The builder context.
|
|
28
|
+
*/
|
|
29
|
+
function buildNgDoc(context) {
|
|
30
|
+
var _a, _b;
|
|
31
|
+
(0, helpers_1.printProgress)('Initializing...');
|
|
32
|
+
// Set global variables
|
|
33
|
+
variables_1.GLOBALS.workspaceRoot = context.context.workspaceRoot;
|
|
34
|
+
const store = new entity_store_1.NgDocEntityStore();
|
|
35
|
+
const cache = new cache_1.NgDocCache(!!((_a = context.config) === null || _a === void 0 ? void 0 : _a.cache));
|
|
36
|
+
const project = (0, helpers_1.createProject)({ tsConfigFilePath: context.tsConfig });
|
|
37
|
+
// Global entities that should be built after each build cycle
|
|
38
|
+
const skeletonEntity = new entities_1.NgDocSkeletonEntity(store, cache, context);
|
|
39
|
+
const indexesEntity = new indexes_entity_1.NgDocIndexesEntity(store, cache, context);
|
|
40
|
+
// Filters for tasks
|
|
41
|
+
const ifNotCached = (entity) => !cache.isCacheValid(entity);
|
|
42
|
+
// Clean build path if cache is not enabled
|
|
43
|
+
if (!!((_b = context.config) === null || _b === void 0 ? void 0 : _b.cache) && (0, cache_1.invalidateCacheIfNeeded)(context.cachedFiles)) {
|
|
44
|
+
// do nothing
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
fs.rmSync(context.buildPath, { recursive: true, force: true });
|
|
48
|
+
}
|
|
49
|
+
// Watch for changes in pages
|
|
50
|
+
const watcher = new watcher_1.NgDocWatcher(context.pagesPaths
|
|
51
|
+
.map((pagesPath) => [
|
|
52
|
+
path.join(pagesPath, variables_1.PAGE_PATTERN),
|
|
53
|
+
path.join(pagesPath, variables_1.CATEGORY_PATTERN),
|
|
54
|
+
path.join(pagesPath, variables_1.API_PATTERN),
|
|
55
|
+
])
|
|
56
|
+
.flat());
|
|
57
|
+
// The main build cycle
|
|
58
|
+
return (0, entity_emitter_1.entityEmitter)(store, cache, context, project, watcher).pipe((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, task_1.taskForMany)('Building...', (0, builder_operators_1.build)(store, context.config, skeletonEntity), ifNotCached), (0, task_1.taskForMany)('Post-processing...', (0, post_process_1.postProcess)(store, context.config, indexesEntity)), (0, task_1.taskForMany)('Emitting...', (0, builder_operators_1.emit)()), (0, builder_operators_1.collectGarbage)(store))), (0, print_output_1.printOutput)(store), (0, operators_1.map)(() => void 0), (0, operators_2.progress)());
|
|
59
|
+
}
|
|
60
|
+
exports.buildNgDoc = buildNgDoc;
|
|
61
|
+
//# sourceMappingURL=build-ng-doc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-ng-doc.js","sourceRoot":"","sources":["../../../../libs/builder/engine/build-ng-doc.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OperatorFunction } from 'rxjs';
|
|
2
|
+
import { NgDocEntity } from '../entities/abstractions/entity';
|
|
3
|
+
import { NgDocEntityStore } from '../entity-store';
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param store
|
|
7
|
+
*/
|
|
8
|
+
export declare function addBuildCandidates(store: NgDocEntityStore): OperatorFunction<NgDocEntity[], NgDocEntity[]>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addBuildCandidates = void 0;
|
|
4
|
+
const core_1 = require("@ng-doc/core");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @param store
|
|
10
|
+
*/
|
|
11
|
+
function addBuildCandidates(store) {
|
|
12
|
+
return (source) => source.pipe((0, operators_1.tap)(() => {
|
|
13
|
+
store
|
|
14
|
+
.asArray()
|
|
15
|
+
.forEach((entity) => !entity.destroyed && (0, helpers_1.isFileEntity)(entity) && entity.setParentDynamically());
|
|
16
|
+
}), (0, operators_1.map)((entities) => (0, core_1.unique)(entities, entities.map((e) => e.buildCandidates).flat(),
|
|
17
|
+
/*
|
|
18
|
+
* We need to add the build candidates of the entities which has errors or warnings too,
|
|
19
|
+
* just to rebuild their parents too e.g. to remove a broken page from a category.
|
|
20
|
+
*/
|
|
21
|
+
store
|
|
22
|
+
.getAllWithErrorsOrWarnings()
|
|
23
|
+
.map((e) => e.buildCandidates)
|
|
24
|
+
.flat())));
|
|
25
|
+
}
|
|
26
|
+
exports.addBuildCandidates = addBuildCandidates;
|
|
27
|
+
//# sourceMappingURL=add-build-candidates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-build-candidates.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/add-build-candidates.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAEpC,8CAAwC;AAExC,2CAA2C;AAI3C;;;GAGG;AACH,SAAgB,kBAAkB,CAAC,KAAuB;IACzD,OAAO,CAAC,MAAiC,EAAE,EAAE,CAC5C,MAAM,CAAC,IAAI,CACV,IAAA,eAAG,EAAC,GAAG,EAAE;QACR,KAAK;aACH,OAAO,EAAE;aACT,OAAO,CAAC,CAAC,MAAmB,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,SAAS,IAAI,IAAA,sBAAY,EAAC,MAAM,CAAC,IAAI,MAAM,CAAC,oBAAoB,EAAE,CAAC,CAAC;IAChH,CAAC,CAAC,EACF,IAAA,eAAG,EAAC,CAAC,QAAuB,EAAE,EAAE,CAC/B,IAAA,aAAM,EACL,QAAQ,EACR,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,IAAI,EAAE;IAC1D;;;OAGG;IACH,KAAK;SACH,0BAA0B,EAAE;SAC5B,GAAG,CAAC,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC;SAC1C,IAAI,EAAE,CACR,CACD,CACD,CAAC;AACJ,CAAC;AAvBD,gDAuBC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OperatorFunction } from 'rxjs';
|
|
2
|
+
import { NgDocBuildOutput, NgDocConfiguration } from '../../interfaces';
|
|
3
|
+
import { NgDocEntity } from '../entities/abstractions/entity';
|
|
4
|
+
import { NgDocEntityStore } from '../entity-store';
|
|
5
|
+
/**
|
|
6
|
+
* Operator that updates the keyword map, builds the artifacts for each entity based on the
|
|
7
|
+
* keyword relationships, and returns the built artifacts.
|
|
8
|
+
*
|
|
9
|
+
* @param store - The entity store.
|
|
10
|
+
* @param config - The NgDoc configuration.
|
|
11
|
+
* @param additionalEntities - Additional entities to build.
|
|
12
|
+
*/
|
|
13
|
+
export declare function build(store: NgDocEntityStore, config: NgDocConfiguration, ...additionalEntities: NgDocEntity[]): OperatorFunction<NgDocEntity[], NgDocBuildOutput[]>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.build = void 0;
|
|
4
|
+
const operators_1 = require("rxjs/operators");
|
|
5
|
+
const operators_2 = require("../../operators");
|
|
6
|
+
const error_handler_1 = require("../../operators/error-handler");
|
|
7
|
+
const build_candidates_1 = require("../functions/build-candidates");
|
|
8
|
+
/**
|
|
9
|
+
* Operator that updates the keyword map, builds the artifacts for each entity based on the
|
|
10
|
+
* keyword relationships, and returns the built artifacts.
|
|
11
|
+
*
|
|
12
|
+
* @param store - The entity store.
|
|
13
|
+
* @param config - The NgDoc configuration.
|
|
14
|
+
* @param additionalEntities - Additional entities to build.
|
|
15
|
+
*/
|
|
16
|
+
function build(store, config, ...additionalEntities) {
|
|
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) => e.build().pipe((0, error_handler_1.errorHandler)([]))))), (0, operators_1.switchMap)((output) => (0, operators_2.forkJoinOrEmpty)(additionalEntities.map((e) => e.build())).pipe((0, operators_1.map)((additionalOutput) => [...output, ...additionalOutput].flat()))));
|
|
18
|
+
}
|
|
19
|
+
exports.build = build;
|
|
20
|
+
//# sourceMappingURL=build.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/build.ts"],"names":[],"mappings":";;;AACA,8CAA8C;AAG9C,+CAAgD;AAChD,iEAA2D;AAG3D,oEAA8D;AAE9D;;;;;;;GAOG;AACH,SAAgB,KAAK,CACpB,KAAuB,EACvB,MAA0B,EAC1B,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,EAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,IAAA,4BAAY,EAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CACnF,EACD,IAAA,qBAAS,EAAC,CAAC,MAA4B,EAAE,EAAE,CAC1C,IAAA,2BAAe,EAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAC1E,IAAA,eAAG,EAAC,CAAC,gBAAsC,EAAE,EAAE,CAAC,CAAC,GAAG,MAAM,EAAE,GAAG,gBAAgB,CAAC,CAAC,IAAI,EAAE,CAAC,CACxF,CACD,CACD,CAAC;AACJ,CAAC;AAjBD,sBAiBC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OperatorFunction } from 'rxjs';
|
|
2
|
+
import { NgDocEntityStore } from '../entity-store';
|
|
3
|
+
/**
|
|
4
|
+
* Operator that collects garbage from the entity store after each source emission.
|
|
5
|
+
*
|
|
6
|
+
* @param store - The entity store.
|
|
7
|
+
*/
|
|
8
|
+
export declare function collectGarbage<T>(store: NgDocEntityStore): OperatorFunction<T, T>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.collectGarbage = void 0;
|
|
4
|
+
const operators_1 = require("rxjs/operators");
|
|
5
|
+
/**
|
|
6
|
+
* Operator that collects garbage from the entity store after each source emission.
|
|
7
|
+
*
|
|
8
|
+
* @param store - The entity store.
|
|
9
|
+
*/
|
|
10
|
+
function collectGarbage(store) {
|
|
11
|
+
return (source) => source.pipe((0, operators_1.tap)(() => {
|
|
12
|
+
store.asArray().forEach((entity) => {
|
|
13
|
+
if (entity.destroyed) {
|
|
14
|
+
entity.removeArtifacts();
|
|
15
|
+
store.delete(entity.id);
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}));
|
|
19
|
+
}
|
|
20
|
+
exports.collectGarbage = collectGarbage;
|
|
21
|
+
//# sourceMappingURL=collect-garbage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collect-garbage.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/collect-garbage.ts"],"names":[],"mappings":";;;AACA,8CAAmC;AAKnC;;;;GAIG;AACH,SAAgB,cAAc,CAAI,KAAuB;IACxD,OAAO,CAAC,MAAqB,EAAE,EAAE,CAChC,MAAM,CAAC,IAAI,CACV,IAAA,eAAG,EAAC,GAAG,EAAE;QACR,KAAK,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,CAAC,MAAmB,EAAE,EAAE;YAC/C,IAAI,MAAM,CAAC,SAAS,EAAE;gBACrB,MAAM,CAAC,eAAe,EAAE,CAAC;gBACzB,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;aACxB;QACF,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CACF,CAAC;AACJ,CAAC;AAZD,wCAYC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { OperatorFunction } from 'rxjs';
|
|
2
|
+
import { NgDocEntity } from '../entities/abstractions/entity';
|
|
3
|
+
/**
|
|
4
|
+
* Operator that compiles the source file only if it is a `NgDocFileEntity`
|
|
5
|
+
*/
|
|
6
|
+
export declare function compile(): OperatorFunction<NgDocEntity, NgDocEntity>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.compile = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
const error_handler_1 = require("../../operators/error-handler");
|
|
8
|
+
/**
|
|
9
|
+
* Operator that compiles the source file only if it is a `NgDocFileEntity`
|
|
10
|
+
*/
|
|
11
|
+
function compile() {
|
|
12
|
+
return (source) => source.pipe((0, operators_1.switchMap)((e) => {
|
|
13
|
+
if ((0, helpers_1.isFileEntity)(e) && e.isReadyForBuild) {
|
|
14
|
+
return e.compile().pipe((0, operators_1.map)(() => e), (0, error_handler_1.errorHandler)(e));
|
|
15
|
+
}
|
|
16
|
+
return (0, rxjs_1.of)(e);
|
|
17
|
+
}));
|
|
18
|
+
}
|
|
19
|
+
exports.compile = compile;
|
|
20
|
+
//# sourceMappingURL=compile.js.map
|
|
@@ -0,0 +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,MAA+B,EAAE,EAAE,CAC1C,MAAM,CAAC,IAAI,CACV,IAAA,qBAAS,EAAC,CAAC,CAAc,EAAE,EAAE;QAC5B,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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OperatorFunction } from 'rxjs';
|
|
2
|
+
import { NgDocEntity } from '../entities/abstractions/entity';
|
|
3
|
+
import { NgDocWatcher } from '../watcher';
|
|
4
|
+
/**
|
|
5
|
+
* Operator creates an additional observable that emits when the dependencies of the source observable change
|
|
6
|
+
* and returns them as an array.
|
|
7
|
+
*
|
|
8
|
+
* @param watcher - The watcher instance.
|
|
9
|
+
*/
|
|
10
|
+
export declare function dependencyChanges(watcher: NgDocWatcher): OperatorFunction<NgDocEntity[], NgDocEntity[]>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dependencyChanges = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const operators_2 = require("../../operators");
|
|
7
|
+
/**
|
|
8
|
+
* Operator creates an additional observable that emits when the dependencies of the source observable change
|
|
9
|
+
* and returns them as an array.
|
|
10
|
+
*
|
|
11
|
+
* @param watcher - The watcher instance.
|
|
12
|
+
*/
|
|
13
|
+
function dependencyChanges(watcher) {
|
|
14
|
+
return (source) => source.pipe((0, rxjs_1.mergeMap)((entities) => {
|
|
15
|
+
const filtered = entities.filter((e) => !e.destroyed);
|
|
16
|
+
return filtered.length
|
|
17
|
+
? (0, rxjs_1.merge)(...entities.map((e) => e.dependencies.changes().pipe((0, rxjs_1.switchMap)((dependencies) => watcher
|
|
18
|
+
.watch(dependencies)
|
|
19
|
+
.onChange(...dependencies)
|
|
20
|
+
.pipe((0, operators_1.tap)(() => e.dependenciesChanged()), (0, rxjs_1.takeUntil)(e.onDestroy()), (0, operators_1.map)(() => e)))))).pipe((0, operators_2.bufferDebounce)(0), (0, operators_1.startWith)(entities))
|
|
21
|
+
: (0, rxjs_1.of)(entities);
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
24
|
+
exports.dependencyChanges = dependencyChanges;
|
|
25
|
+
//# sourceMappingURL=dependency-changes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dependency-changes.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/dependency-changes.ts"],"names":[],"mappings":";;;AAAA,+BAA6F;AAC7F,8CAAmD;AAEnD,+CAA+C;AAI/C;;;;;GAKG;AACH,SAAgB,iBAAiB,CAAC,OAAqB;IACtD,OAAO,CAAC,MAAiC,EAAE,EAAE,CAC5C,MAAM,CAAC,IAAI,CACV,IAAA,eAAQ,EAAC,CAAC,QAAuB,EAAE,EAAE;QACpC,MAAM,QAAQ,GAAkB,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QAElF,OAAO,QAAQ,CAAC,MAAM;YACrB,CAAC,CAAC,IAAA,YAAK,EACL,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAc,EAAE,EAAE,CAClC,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC,IAAI,CAC5B,IAAA,gBAAS,EAAC,CAAC,YAAsB,EAAE,EAAE,CACpC,OAAO;iBACL,KAAK,CAAC,YAAY,CAAC;iBACnB,QAAQ,CAAC,GAAG,YAAY,CAAC;iBACzB,IAAI,CACJ,IAAA,eAAG,EAAC,GAAG,EAAE,CAAC,CAAC,CAAC,mBAAmB,EAAE,CAAC,EAClC,IAAA,gBAAS,EAAC,CAAC,CAAC,SAAS,EAAE,CAAC,EACxB,IAAA,eAAG,EAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CACZ,CACF,CACD,CACD,CACA,CAAC,IAAI,CAAC,IAAA,0BAAc,EAAC,CAAC,CAAC,EAAE,IAAA,qBAAS,EAAC,QAAQ,CAAC,CAAC;YAChD,CAAC,CAAC,IAAA,SAAE,EAAC,QAAQ,CAAC,CAAC;IACjB,CAAC,CAAC,CACF,CAAC;AACJ,CAAC;AA1BD,8CA0BC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.emit = void 0;
|
|
4
|
+
const operators_1 = require("rxjs/operators");
|
|
5
|
+
const helpers_1 = require("../../helpers");
|
|
6
|
+
const error_handler_1 = require("../../operators/error-handler");
|
|
7
|
+
/**
|
|
8
|
+
* Operator that emits the built output after each source emission.
|
|
9
|
+
*/
|
|
10
|
+
function emit() {
|
|
11
|
+
return (source) => source.pipe((0, operators_1.tap)((e) => (0, helpers_1.emitBuiltOutput)(e)), (0, error_handler_1.errorHandler)([]));
|
|
12
|
+
}
|
|
13
|
+
exports.emit = emit;
|
|
14
|
+
//# sourceMappingURL=emit.js.map
|
|
@@ -0,0 +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,MAAsC,EAAE,EAAE,CACjD,MAAM,CAAC,IAAI,CACV,IAAA,eAAG,EAAC,CAAC,CAAqB,EAAE,EAAE,CAAC,IAAA,yBAAe,EAAC,CAAC,CAAC,CAAC,EAClD,IAAA,4BAAY,EAAC,EAAE,CAAC,CAChB,CAAC;AACJ,CAAC;AAND,oBAMC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./add-build-candidates"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./build"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./collect-garbage"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./compile"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./emit"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./load"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./refresh"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./task"), exports);
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/index.ts"],"names":[],"mappings":";;;AAAA,iEAAuC;AACvC,kDAAwB;AACxB,4DAAkC;AAClC,oDAA0B;AAC1B,iDAAuB;AACvB,iDAAuB;AACvB,oDAA0B;AAC1B,iDAAuB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.load = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
const error_handler_1 = require("../../operators/error-handler");
|
|
8
|
+
/**
|
|
9
|
+
* Operator that runs the `update` method of the entity.
|
|
10
|
+
*/
|
|
11
|
+
function load() {
|
|
12
|
+
return (source) => source.pipe((0, operators_1.switchMap)((e) => {
|
|
13
|
+
if ((0, helpers_1.isFileEntity)(e) && e.isReadyForBuild) {
|
|
14
|
+
return e.load().pipe((0, operators_1.map)(() => e), (0, error_handler_1.errorHandler)(e));
|
|
15
|
+
}
|
|
16
|
+
return (0, rxjs_1.of)(e);
|
|
17
|
+
}));
|
|
18
|
+
}
|
|
19
|
+
exports.load = load;
|
|
20
|
+
//# sourceMappingURL=load.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/load.ts"],"names":[],"mappings":";;;AAAA,+BAAsD;AACtD,8CAA8C;AAE9C,2CAA2C;AAC3C,iEAA2D;AAG3D;;GAEG;AACH,SAAgB,IAAI;IACnB,OAAO,CAAC,MAA+B,EAAE,EAAE,CAC1C,MAAM,CAAC,IAAI,CACV,IAAA,qBAAS,EAAC,CAAC,CAAc,EAAE,EAAE;QAC5B,IAAI,IAAA,sBAAY,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE;YACzC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CACnB,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,oBAcC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OperatorFunction } from 'rxjs';
|
|
2
|
+
import { NgDocBuildOutput, NgDocConfiguration } from '../../interfaces';
|
|
3
|
+
import { NgDocEntity } from '../entities/abstractions/entity';
|
|
4
|
+
import { NgDocEntityStore } from '../entity-store';
|
|
5
|
+
/**
|
|
6
|
+
* Post-processes the build output.
|
|
7
|
+
* It is used to update the keyword map and to run the post-process function of each entity.
|
|
8
|
+
*
|
|
9
|
+
* @param store - The entity store.
|
|
10
|
+
* @param config - The configuration.
|
|
11
|
+
* @param additionalEntities - Additional entities to be build and post-processed.
|
|
12
|
+
*/
|
|
13
|
+
export declare function postProcess(store: NgDocEntityStore, config: NgDocConfiguration, ...additionalEntities: NgDocEntity[]): OperatorFunction<NgDocBuildOutput[], NgDocBuildOutput[]>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.postProcess = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const operators_2 = require("../../operators");
|
|
7
|
+
const error_handler_1 = require("../../operators/error-handler");
|
|
8
|
+
/**
|
|
9
|
+
* Post-processes the build output.
|
|
10
|
+
* It is used to update the keyword map and to run the post-process function of each entity.
|
|
11
|
+
*
|
|
12
|
+
* @param store - The entity store.
|
|
13
|
+
* @param config - The configuration.
|
|
14
|
+
* @param additionalEntities - Additional entities to be build and post-processed.
|
|
15
|
+
*/
|
|
16
|
+
function postProcess(store, config, ...additionalEntities) {
|
|
17
|
+
return (source) => source.pipe((0, operators_1.tap)(() => store.updateKeywordMap(config.keywords)), (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, error_handler_1.errorHandler)([])))).pipe((0, operators_1.map)((additionalOutputs) => additionalOutputs.flat()), (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
|
+
...postProcessedOutputs,
|
|
19
|
+
...additionalPostProcessedOutputs,
|
|
20
|
+
]))))));
|
|
21
|
+
}
|
|
22
|
+
exports.postProcess = postProcess;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @param output
|
|
26
|
+
*/
|
|
27
|
+
function handlePostProcess(output) {
|
|
28
|
+
return output.postProcessFn
|
|
29
|
+
? output.postProcessFn(output.content).pipe((0, operators_1.map)((content) => (Object.assign(Object.assign({}, output), { content }))))
|
|
30
|
+
: (0, rxjs_1.of)(output);
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=post-process.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-process.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/post-process.ts"],"names":[],"mappings":";;;AAAA,+BAAsD;AACtD,8CAAmD;AAGnD,+CAAgD;AAChD,iEAA2D;AAI3D;;;;;;;GAOG;AACH,SAAgB,WAAW,CAC1B,KAAuB,EACvB,MAA0B,EAC1B,GAAG,kBAAiC;IAEpC,OAAO,CAAC,MAAsC,EAAE,EAAE,CACjD,MAAM,CAAC,IAAI,CACV,IAAA,eAAG,EAAC,GAAG,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,EAClD,IAAA,qBAAS,EAAC,CAAC,OAA2B,EAAE,EAAE,CACzC,IAAA,2BAAe,EACd,OAAO,CAAC,GAAG,CAAC,CAAC,MAAwB,EAAE,EAAE,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAA,4BAAY,EAAC,MAAM,CAAC,CAAC,CAAC,CAC/F,CAAC,IAAI,CACL,IAAA,qBAAS,EAAC,CAAC,oBAAwC,EAAE,EAAE,CACtD,IAAA,2BAAe,EAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,IAAA,4BAAY,EAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CACjG,IAAA,eAAG,EAAC,CAAC,iBAAuC,EAAE,EAAE,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC,EAC1E,IAAA,qBAAS,EAAC,CAAC,iBAAqC,EAAE,EAAE,CACnD,IAAA,2BAAe,EACd,iBAAiB,CAAC,GAAG,CAAC,CAAC,MAAwB,EAAE,EAAE,CAClD,iBAAiB,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAA,4BAAY,EAAC,MAAM,CAAC,CAAC,CACpD,CACD,CACD,EACD,IAAA,eAAG,EAAC,CAAC,8BAAkD,EAAE,EAAE,CAAC;QAC3D,GAAG,oBAAoB;QACvB,GAAG,8BAA8B;KACjC,CAAC,CACF,CACD,CACD,CACD,CACD,CAAC;AACJ,CAAC;AA/BD,kCA+BC;AAED;;;GAGG;AACH,SAAS,iBAAiB,CAAC,MAAwB;IAClD,OAAO,MAAM,CAAC,aAAa;QAC1B,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAA,eAAG,EAAC,CAAC,OAAe,EAAE,EAAE,CAAC,iCAAK,MAAM,KAAE,OAAO,IAAE,CAAC,CAAC;QAC7F,CAAC,CAAC,IAAA,SAAE,EAAC,MAAM,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OperatorFunction } from 'rxjs';
|
|
2
|
+
import { NgDocEntityStore } from '../entity-store';
|
|
3
|
+
/**
|
|
4
|
+
* Prints all errors and warnings existing in the store
|
|
5
|
+
*
|
|
6
|
+
* @param store - The store to print warnings and errors from
|
|
7
|
+
*/
|
|
8
|
+
export declare function printOutput<T>(store: NgDocEntityStore): OperatorFunction<T, T>;
|