@ng-doc/builder 16.17.0 → 16.18.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 → application}/index.d.ts +0 -1
- package/{browser → application}/index.js +4 -8
- package/application/index.js.map +1 -0
- package/{browser → application}/schema.json +107 -90
- package/builders.json +5 -5
- package/dev-server/index.d.ts +0 -1
- package/dev-server/index.js +8 -11
- package/dev-server/index.js.map +1 -1
- package/dev-server/schema.json +22 -2
- package/engine/actions/demo-pane.action.d.ts +0 -1
- package/engine/actions/demo-pane.action.js +0 -1
- package/engine/actions/demo-pane.action.js.map +1 -1
- package/engine/actions/demo.action.d.ts +0 -1
- package/engine/actions/demo.action.js +0 -1
- package/engine/actions/demo.action.js.map +1 -1
- package/engine/actions/playground.action.d.ts +0 -1
- package/engine/actions/playground.action.js +0 -1
- package/engine/actions/playground.action.js.map +1 -1
- package/engine/build-ng-doc.d.ts +0 -1
- package/engine/build-ng-doc.js +0 -1
- package/engine/build-ng-doc.js.map +1 -1
- package/engine/builder-operators/build.d.ts +0 -1
- package/engine/builder-operators/build.js +0 -1
- package/engine/builder-operators/build.js.map +1 -1
- package/engine/builder-operators/collect-garbage.d.ts +0 -1
- package/engine/builder-operators/collect-garbage.js +0 -1
- package/engine/builder-operators/collect-garbage.js.map +1 -1
- package/engine/builder-operators/dependency-changes.d.ts +0 -1
- package/engine/builder-operators/dependency-changes.js +0 -1
- package/engine/builder-operators/dependency-changes.js.map +1 -1
- package/engine/builder-operators/load.d.ts +0 -1
- package/engine/builder-operators/load.js +0 -1
- package/engine/builder-operators/load.js.map +1 -1
- package/engine/builder-operators/post-process.d.ts +0 -1
- package/engine/builder-operators/post-process.js +0 -1
- package/engine/builder-operators/post-process.js.map +1 -1
- package/engine/builder-operators/print-output.d.ts +0 -1
- package/engine/builder-operators/print-output.js +0 -2
- package/engine/builder-operators/print-output.js.map +1 -1
- package/engine/builder-operators/task.d.ts +0 -2
- package/engine/builder-operators/task.js +0 -2
- package/engine/builder-operators/task.js.map +1 -1
- package/engine/builder-operators/update-cache.d.ts +0 -1
- package/engine/builder-operators/update-cache.js +0 -1
- package/engine/builder-operators/update-cache.js.map +1 -1
- package/engine/entities/abstractions/entity.d.ts +0 -5
- package/engine/entities/abstractions/entity.js +11 -13
- package/engine/entities/abstractions/entity.js.map +1 -1
- package/engine/entities/abstractions/module.entity.d.ts +0 -2
- package/engine/entities/abstractions/module.entity.js +10 -7
- package/engine/entities/abstractions/module.entity.js.map +1 -1
- package/engine/entities/abstractions/navigation.entity.d.ts +0 -2
- package/engine/entities/abstractions/navigation.entity.js +0 -2
- package/engine/entities/abstractions/navigation.entity.js.map +1 -1
- package/engine/entities/abstractions/route.entity.js +13 -8
- package/engine/entities/abstractions/route.entity.js.map +1 -1
- package/engine/entities/abstractions/source-file.entity.d.ts +0 -1
- package/engine/entities/abstractions/source-file.entity.js +0 -1
- package/engine/entities/abstractions/source-file.entity.js.map +1 -1
- package/engine/entities/api-list.entity.js +9 -4
- package/engine/entities/api-list.entity.js.map +1 -1
- package/engine/entities/api-page.entity.js +8 -3
- package/engine/entities/api-page.entity.js.map +1 -1
- package/engine/entities/api-scope.entity.d.ts +0 -1
- package/engine/entities/api-scope.entity.js +8 -4
- package/engine/entities/api-scope.entity.js.map +1 -1
- package/engine/entities/api.entity.d.ts +0 -1
- package/engine/entities/api.entity.js +8 -4
- package/engine/entities/api.entity.js.map +1 -1
- package/engine/entities/cache/cached-files-initializer.d.ts +1 -2
- package/engine/entities/cache/cached-files-initializer.js.map +1 -1
- package/engine/entities/cache/decorators/cached-entity.js +1 -0
- package/engine/entities/cache/decorators/cached-entity.js.map +1 -1
- package/engine/entities/cache/decorators/cached-property.d.ts +0 -1
- package/engine/entities/cache/decorators/cached-property.js +0 -1
- package/engine/entities/cache/decorators/cached-property.js.map +1 -1
- package/engine/entities/cache/helpers/create-cache-for-file.d.ts +0 -1
- package/engine/entities/cache/helpers/create-cache-for-file.js +0 -1
- package/engine/entities/cache/helpers/create-cache-for-file.js.map +1 -1
- package/engine/entities/cache/helpers/create-cache.d.ts +0 -1
- package/engine/entities/cache/helpers/create-cache.js +0 -1
- package/engine/entities/cache/helpers/create-cache.js.map +1 -1
- package/engine/entities/cache/helpers/get-cache-file-path.d.ts +0 -1
- package/engine/entities/cache/helpers/get-cache-file-path.js +0 -1
- package/engine/entities/cache/helpers/get-cache-file-path.js.map +1 -1
- package/engine/entities/cache/helpers/invalidate-cache-if-needed.d.ts +0 -1
- package/engine/entities/cache/helpers/invalidate-cache-if-needed.js +0 -1
- package/engine/entities/cache/helpers/invalidate-cache-if-needed.js.map +1 -1
- package/engine/entities/cache/helpers/is-cache-valid.d.ts +0 -1
- package/engine/entities/cache/helpers/is-cache-valid.js +0 -1
- package/engine/entities/cache/helpers/is-cache-valid.js.map +1 -1
- package/engine/entities/cache/helpers/load-cache.d.ts +0 -1
- package/engine/entities/cache/helpers/load-cache.js +0 -1
- package/engine/entities/cache/helpers/load-cache.js.map +1 -1
- package/engine/entities/cache/helpers/update-cache.d.ts +0 -1
- package/engine/entities/cache/helpers/update-cache.js +0 -1
- package/engine/entities/cache/helpers/update-cache.js.map +1 -1
- package/engine/entities/category.entity.d.ts +0 -1
- package/engine/entities/category.entity.js +8 -4
- package/engine/entities/category.entity.js.map +1 -1
- package/engine/entities/index-file.entity.js +9 -4
- package/engine/entities/index-file.entity.js.map +1 -1
- package/engine/entities/page-demo.entity.js +11 -5
- package/engine/entities/page-demo.entity.js.map +1 -1
- package/engine/entities/page-playground.entity.js +14 -9
- package/engine/entities/page-playground.entity.js.map +1 -1
- package/engine/entities/page.entity.d.ts +0 -1
- package/engine/entities/page.entity.js +9 -5
- package/engine/entities/page.entity.js.map +1 -1
- package/engine/entity-emitter.d.ts +0 -1
- package/engine/entity-emitter.js +0 -2
- package/engine/entity-emitter.js.map +1 -1
- package/engine/functions/build-candidates.d.ts +0 -1
- package/engine/functions/build-candidates.js +0 -1
- package/engine/functions/build-candidates.js.map +1 -1
- package/engine/nunjucks/render-template.d.ts +0 -1
- package/engine/nunjucks/render-template.js +0 -1
- package/engine/nunjucks/render-template.js.map +1 -1
- package/helpers/angular/get-component-assets.d.ts +0 -1
- package/helpers/angular/get-component-assets.js +0 -1
- package/helpers/angular/get-component-assets.js.map +1 -1
- package/helpers/angular/get-component-decorator.d.ts +0 -1
- package/helpers/angular/get-component-decorator.js +0 -1
- package/helpers/angular/get-component-decorator.js.map +1 -1
- package/helpers/angular/get-component-inputs.d.ts +0 -1
- package/helpers/angular/get-component-inputs.js +0 -1
- package/helpers/angular/get-component-inputs.js.map +1 -1
- package/helpers/angular/get-component-source-files.d.ts +0 -1
- package/helpers/angular/get-component-source-files.js +0 -1
- package/helpers/angular/get-component-source-files.js.map +1 -1
- package/helpers/angular/get-directive-decorator.d.ts +0 -1
- package/helpers/angular/get-directive-decorator.js +0 -1
- package/helpers/angular/get-directive-decorator.js.map +1 -1
- package/helpers/angular/get-input-name.d.ts +0 -1
- package/helpers/angular/get-input-name.js +0 -1
- package/helpers/angular/get-input-name.js.map +1 -1
- package/helpers/angular/get-pipe-decorator.d.ts +0 -1
- package/helpers/angular/get-pipe-decorator.js +0 -1
- package/helpers/angular/get-pipe-decorator.js.map +1 -1
- package/helpers/build-file-assets.d.ts +0 -1
- package/helpers/build-file-assets.js +0 -1
- package/helpers/build-file-assets.js.map +1 -1
- package/helpers/build-file-entity.d.ts +0 -1
- package/helpers/build-file-entity.js +0 -1
- package/helpers/build-file-entity.js.map +1 -1
- package/helpers/build-indexes.d.ts +0 -1
- package/helpers/build-indexes.js +0 -1
- package/helpers/build-indexes.js.map +1 -1
- package/helpers/create-builder-context.d.ts +0 -1
- package/helpers/create-builder-context.js +2 -3
- package/helpers/create-builder-context.js.map +1 -1
- package/helpers/emit-built-output.d.ts +0 -1
- package/helpers/emit-built-output.js +0 -1
- package/helpers/emit-built-output.js.map +1 -1
- package/helpers/extract-path-anchor.d.ts +0 -1
- package/helpers/extract-path-anchor.js +0 -1
- package/helpers/extract-path-anchor.js.map +1 -1
- package/helpers/filter-useless-members.d.ts +0 -1
- package/helpers/filter-useless-members.js +0 -1
- package/helpers/filter-useless-members.js.map +1 -1
- package/helpers/format-code.d.ts +1 -4
- package/helpers/format-code.js +1 -4
- package/helpers/format-code.js.map +1 -1
- package/helpers/import-esm.d.ts +0 -1
- package/helpers/import-esm.js +0 -1
- package/helpers/import-esm.js.map +1 -1
- package/helpers/import-fresh-esm.d.ts +0 -1
- package/helpers/import-fresh-esm.js +0 -1
- package/helpers/import-fresh-esm.js.map +1 -1
- package/helpers/load-config.d.ts +0 -1
- package/helpers/load-config.js +0 -1
- package/helpers/load-config.js.map +1 -1
- package/helpers/mini-pattern.d.ts +0 -1
- package/helpers/mini-pattern.js +0 -1
- package/helpers/mini-pattern.js.map +1 -1
- package/helpers/playground/build-playground-metadata.d.ts +0 -1
- package/helpers/playground/build-playground-metadata.js +0 -1
- package/helpers/playground/build-playground-metadata.js.map +1 -1
- package/helpers/playground/get-playgrounds-expression.d.ts +0 -1
- package/helpers/playground/get-playgrounds-expression.js +0 -1
- package/helpers/playground/get-playgrounds-expression.js.map +1 -1
- package/helpers/posix.d.ts +0 -1
- package/helpers/posix.js +0 -1
- package/helpers/posix.js.map +1 -1
- package/helpers/print.d.ts +0 -4
- package/helpers/print.js +0 -4
- package/helpers/print.js.map +1 -1
- package/helpers/process-html.d.ts +0 -2
- package/helpers/process-html.js +0 -2
- package/helpers/process-html.js.map +1 -1
- package/helpers/process-legacy-snippets.d.ts +0 -1
- package/helpers/process-legacy-snippets.js +0 -3
- package/helpers/process-legacy-snippets.js.map +1 -1
- package/helpers/process-snippets.d.ts +0 -1
- package/helpers/process-snippets.js +0 -1
- package/helpers/process-snippets.js.map +1 -1
- package/helpers/remove-lines-from-code.d.ts +0 -1
- package/helpers/remove-lines-from-code.js +1 -2
- package/helpers/remove-lines-from-code.js.map +1 -1
- package/helpers/snippets-from-asset.d.ts +0 -1
- package/helpers/snippets-from-asset.js +0 -1
- package/helpers/snippets-from-asset.js.map +1 -1
- package/helpers/string-expression.d.ts +0 -1
- package/helpers/string-expression.js +0 -1
- package/helpers/string-expression.js.map +1 -1
- package/helpers/typescript/create-project.d.ts +0 -1
- package/helpers/typescript/create-project.js +0 -1
- package/helpers/typescript/create-project.js.map +1 -1
- package/helpers/typescript/first-node-with-comment.d.ts +0 -2
- package/helpers/typescript/first-node-with-comment.js +0 -2
- package/helpers/typescript/first-node-with-comment.js.map +1 -1
- package/helpers/typescript/get-object-expression-from-default.d.ts +0 -1
- package/helpers/typescript/get-object-expression-from-default.js +0 -1
- package/helpers/typescript/get-object-expression-from-default.js.map +1 -1
- package/helpers/typescript/member/get-implemented-member.d.ts +0 -1
- package/helpers/typescript/member/get-implemented-member.js +0 -1
- package/helpers/typescript/member/get-implemented-member.js.map +1 -1
- package/helpers/typescript/member/get-overridden-member.d.ts +0 -1
- package/helpers/typescript/member/get-overridden-member.js +0 -1
- package/helpers/typescript/member/get-overridden-member.js.map +1 -1
- package/helpers/typescript/property/get-property-assignment.d.ts +0 -1
- package/helpers/typescript/property/get-property-assignment.js +0 -1
- package/helpers/typescript/property/get-property-assignment.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/interfaces/configuration.d.ts +0 -5
- package/interfaces/schema.d.ts +1 -1
- package/operators/error-handler.d.ts +0 -1
- package/operators/error-handler.js +0 -1
- package/operators/error-handler.js.map +1 -1
- package/operators/progress.d.ts +0 -1
- package/operators/progress.js +0 -1
- package/operators/progress.js.map +1 -1
- package/package.json +16 -11
- package/parsers/parse-code-block-params.d.ts +0 -1
- package/parsers/parse-code-block-params.js +0 -1
- package/parsers/parse-code-block-params.js.map +1 -1
- package/schematics/api/index.d.ts +0 -1
- package/schematics/api/index.js +0 -1
- package/schematics/api/index.js.map +1 -1
- package/schematics/category/index.d.ts +0 -1
- package/schematics/category/index.js +0 -1
- package/schematics/category/index.js.map +1 -1
- package/schematics/migration.json +10 -0
- package/schematics/migrations/standalone-pages/index.d.ts +0 -1
- package/schematics/migrations/standalone-pages/index.js +0 -1
- package/schematics/migrations/standalone-pages/index.js.map +1 -1
- package/schematics/ng-update/index.d.ts +5 -0
- package/schematics/ng-update/index.js +15 -0
- package/schematics/ng-update/index.js.map +1 -0
- package/schematics/ng-update/steps/update-angular-json.d.ts +4 -0
- package/schematics/ng-update/steps/update-angular-json.js +74 -0
- package/schematics/ng-update/steps/update-angular-json.js.map +1 -0
- package/schematics/ng-update/steps/update-git-ignore.d.ts +5 -0
- package/schematics/ng-update/steps/update-git-ignore.js +22 -0
- package/schematics/ng-update/steps/update-git-ignore.js.map +1 -0
- package/schematics/ng-update/steps/update-ts-config.d.ts +5 -0
- package/schematics/ng-update/steps/update-ts-config.js +38 -0
- package/schematics/ng-update/steps/update-ts-config.js.map +1 -0
- package/schematics/page/index.d.ts +0 -1
- package/schematics/page/index.js +0 -1
- package/schematics/page/index.js.map +1 -1
- package/schematics/utils/extract-default-export-name.d.ts +0 -1
- package/schematics/utils/extract-default-export-name.js +0 -1
- package/schematics/utils/extract-default-export-name.js.map +1 -1
- package/schematics/utils/find-closest-file.d.ts +0 -1
- package/schematics/utils/find-closest-file.js +0 -1
- package/schematics/utils/find-closest-file.js.map +1 -1
- package/schematics/utils/get-project.d.ts +11 -0
- package/schematics/utils/get-project.js +23 -0
- package/schematics/utils/get-project.js.map +1 -0
- package/schematics/utils/get-title.d.ts +0 -1
- package/schematics/utils/get-title.js +0 -1
- package/schematics/utils/get-title.js.map +1 -1
- package/schematics/utils/index.d.ts +2 -0
- package/schematics/utils/index.js +2 -0
- package/schematics/utils/index.js.map +1 -1
- package/schematics/utils/modify-ts-configs.d.ts +9 -0
- package/schematics/utils/modify-ts-configs.js +22 -0
- package/schematics/utils/modify-ts-configs.js.map +1 -0
- package/browser/index.js.map +0 -1
|
@@ -2,7 +2,6 @@ import { BuilderContext } from '@angular-devkit/architect';
|
|
|
2
2
|
import { NgDocSchema } from '../interfaces';
|
|
3
3
|
/**
|
|
4
4
|
* Attach NgDocWebpackPlugin before Angular Plugins
|
|
5
|
-
*
|
|
6
5
|
* @param options Builder configuration
|
|
7
6
|
* @param context Builder context
|
|
8
7
|
* @returns Observable of BrowserBuilderOutput
|
|
@@ -3,15 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.runBrowser = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const architect_1 = require("@angular-devkit/architect");
|
|
6
|
-
const
|
|
7
|
-
const browser_esbuild_1 = require("@angular-devkit/build-angular/src/builders/browser-esbuild");
|
|
6
|
+
const build_angular_1 = require("@angular-devkit/build-angular");
|
|
8
7
|
const rxjs_1 = require("rxjs");
|
|
9
8
|
const operators_1 = require("rxjs/operators");
|
|
10
9
|
const build_ng_doc_1 = require("../engine/build-ng-doc");
|
|
11
10
|
const helpers_1 = require("../helpers");
|
|
12
11
|
/**
|
|
13
12
|
* Attach NgDocWebpackPlugin before Angular Plugins
|
|
14
|
-
*
|
|
15
13
|
* @param options Builder configuration
|
|
16
14
|
* @param context Builder context
|
|
17
15
|
* @returns Observable of BrowserBuilderOutput
|
|
@@ -19,8 +17,8 @@ const helpers_1 = require("../helpers");
|
|
|
19
17
|
function runBrowser(options, context) {
|
|
20
18
|
var _a;
|
|
21
19
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const browserTarget = options.
|
|
23
|
-
? (0, architect_1.targetFromTargetString)(options.
|
|
20
|
+
const browserTarget = options.buildTarget
|
|
21
|
+
? (0, architect_1.targetFromTargetString)(options.buildTarget)
|
|
24
22
|
: null;
|
|
25
23
|
const targetOptions = browserTarget
|
|
26
24
|
? yield context.getTargetOptions(browserTarget)
|
|
@@ -28,9 +26,7 @@ function runBrowser(options, context) {
|
|
|
28
26
|
const builderContext = (0, helpers_1.createBuilderContext)(targetOptions, context, (_a = options.ngDoc) === null || _a === void 0 ? void 0 : _a.config);
|
|
29
27
|
const runner = (0, build_ng_doc_1.buildNgDoc)(builderContext);
|
|
30
28
|
yield (0, rxjs_1.firstValueFrom)(runner.pipe((0, operators_1.first)()));
|
|
31
|
-
return
|
|
32
|
-
? (0, architect_1.fromAsyncIterable)((0, browser_esbuild_1.buildEsbuildBrowser)(options, context)).toPromise()
|
|
33
|
-
: yield (0, browser_1.buildWebpackBrowser)(options, context).toPromise();
|
|
29
|
+
return (0, rxjs_1.firstValueFrom)((0, architect_1.fromAsyncIterable)((0, build_angular_1.buildApplication)(options, context)));
|
|
34
30
|
});
|
|
35
31
|
}
|
|
36
32
|
exports.runBrowser = runBrowser;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/builder/application/index.ts"],"names":[],"mappings":";;;;AAAA,yDAMmC;AACnC,iEAAiE;AACjE,+BAAkD;AAClD,8CAAuC;AAEvC,yDAAoD;AACpD,wCAAkD;AAGlD;;;;;GAKG;AACH,SAAsB,UAAU,CAAC,OAAoB,EAAE,OAAuB;;;QAC7E,MAAM,aAAa,GAAkB,OAAO,CAAC,WAAW;YACvD,CAAC,CAAC,IAAA,kCAAsB,EAAC,OAAO,CAAC,WAAW,CAAC;YAC7C,CAAC,CAAC,IAAI,CAAC;QACR,MAAM,aAAa,GAAQ,aAAa;YACvC,CAAC,CAAC,MAAM,OAAO,CAAC,gBAAgB,CAAC,aAAa,CAAC;YAC/C,CAAC,CAAE,OAAe,CAAC;QACpB,MAAM,cAAc,GAAwB,IAAA,8BAAoB,EAC/D,aAAa,EACb,OAAO,EACP,MAAA,OAAO,CAAC,KAAK,0CAAE,MAAM,CACrB,CAAC;QACF,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,IAAA,qBAAc,EAAC,IAAA,6BAAiB,EAAC,IAAA,gCAAgB,EAAC,OAAc,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;;CACpF;AAjBD,gCAiBC;AAED,6DAA6D;AAC7D,aAAa;AACb,kBAAe,IAAA,yBAAa,EAAC,UAAU,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
3
|
"title": "NgDocBuilder",
|
|
4
|
-
"description": "NgDocBuilder
|
|
4
|
+
"description": "NgDocBuilder Application Schema",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"assets": {
|
|
@@ -12,27 +12,22 @@
|
|
|
12
12
|
"$ref": "#/definitions/assetPattern"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
|
-
"
|
|
15
|
+
"browser": {
|
|
16
16
|
"type": "string",
|
|
17
|
-
"description": "The full path for the
|
|
17
|
+
"description": "The full path for the browser entry point to the application, relative to the current workspace."
|
|
18
|
+
},
|
|
19
|
+
"server": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "The full path for the server entry point to the application, relative to the current workspace."
|
|
18
22
|
},
|
|
19
23
|
"polyfills": {
|
|
20
|
-
"description": "
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"uniqueItems": true
|
|
28
|
-
},
|
|
29
|
-
"default": []
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"type": "string",
|
|
33
|
-
"description": "The full path for the polyfills file, relative to the current workspace or a module specifier. Example: 'zone.js'."
|
|
34
|
-
}
|
|
35
|
-
]
|
|
24
|
+
"description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'.",
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"uniqueItems": true
|
|
29
|
+
},
|
|
30
|
+
"default": []
|
|
36
31
|
},
|
|
37
32
|
"tsConfig": {
|
|
38
33
|
"type": "string",
|
|
@@ -70,8 +65,7 @@
|
|
|
70
65
|
},
|
|
71
66
|
{
|
|
72
67
|
"type": "string",
|
|
73
|
-
"description": "The file to include."
|
|
74
|
-
"pattern": "\\.[cm]?jsx?$"
|
|
68
|
+
"description": "The JavaScript/TypeScript file or package containing the file to include."
|
|
75
69
|
}
|
|
76
70
|
]
|
|
77
71
|
}
|
|
@@ -140,6 +134,14 @@
|
|
|
140
134
|
},
|
|
141
135
|
"additionalProperties": false
|
|
142
136
|
},
|
|
137
|
+
"externalDependencies": {
|
|
138
|
+
"description": "Exclude the listed external dependencies from being bundled into the bundle. Instead, the created bundle relies on these dependencies to be available during runtime.",
|
|
139
|
+
"type": "array",
|
|
140
|
+
"items": {
|
|
141
|
+
"type": "string"
|
|
142
|
+
},
|
|
143
|
+
"default": []
|
|
144
|
+
},
|
|
143
145
|
"optimization": {
|
|
144
146
|
"description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For more information, see https://angular.io/guide/workspace-config#optimization-configuration.",
|
|
145
147
|
"default": true,
|
|
@@ -216,11 +218,7 @@
|
|
|
216
218
|
},
|
|
217
219
|
"outputPath": {
|
|
218
220
|
"type": "string",
|
|
219
|
-
"description": "The full path for the new output directory, relative to the current workspace
|
|
220
|
-
},
|
|
221
|
-
"resourcesOutputPath": {
|
|
222
|
-
"type": "string",
|
|
223
|
-
"description": "The path where style resources will be placed, relative to outputPath."
|
|
221
|
+
"description": "The full path for the new output directory, relative to the current workspace."
|
|
224
222
|
},
|
|
225
223
|
"aot": {
|
|
226
224
|
"type": "boolean",
|
|
@@ -263,25 +261,10 @@
|
|
|
263
261
|
}
|
|
264
262
|
]
|
|
265
263
|
},
|
|
266
|
-
"vendorChunk": {
|
|
267
|
-
"type": "boolean",
|
|
268
|
-
"description": "Generate a seperate bundle containing only vendor libraries. This option should only be used for development to reduce the incremental compilation time.",
|
|
269
|
-
"default": false
|
|
270
|
-
},
|
|
271
|
-
"commonChunk": {
|
|
272
|
-
"type": "boolean",
|
|
273
|
-
"description": "Generate a seperate bundle containing code used across multiple bundles.",
|
|
274
|
-
"default": true
|
|
275
|
-
},
|
|
276
264
|
"baseHref": {
|
|
277
265
|
"type": "string",
|
|
278
266
|
"description": "Base url for the application being built."
|
|
279
267
|
},
|
|
280
|
-
"deployUrl": {
|
|
281
|
-
"type": "string",
|
|
282
|
-
"description": "URL where files will be deployed.",
|
|
283
|
-
"x-deprecated": "Use \"baseHref\" option, \"APP_BASE_HREF\" DI token or a combination of both instead. For more information, see https://angular.io/guide/deployment#the-deploy-url."
|
|
284
|
-
},
|
|
285
268
|
"verbose": {
|
|
286
269
|
"type": "boolean",
|
|
287
270
|
"description": "Adds more details to output logging.",
|
|
@@ -364,11 +347,6 @@
|
|
|
364
347
|
"description": "Extract all licenses in a separate file.",
|
|
365
348
|
"default": true
|
|
366
349
|
},
|
|
367
|
-
"buildOptimizer": {
|
|
368
|
-
"type": "boolean",
|
|
369
|
-
"description": "Enables advanced build optimizations when using the 'aot' option.",
|
|
370
|
-
"default": true
|
|
371
|
-
},
|
|
372
350
|
"namedChunks": {
|
|
373
351
|
"type": "boolean",
|
|
374
352
|
"description": "Use file name for lazy loaded chunks.",
|
|
@@ -380,13 +358,19 @@
|
|
|
380
358
|
"default": false
|
|
381
359
|
},
|
|
382
360
|
"serviceWorker": {
|
|
383
|
-
"
|
|
384
|
-
"
|
|
385
|
-
"
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
361
|
+
"description": "Generates a service worker configuration.",
|
|
362
|
+
"default": false,
|
|
363
|
+
"oneOf": [
|
|
364
|
+
{
|
|
365
|
+
"type": "string",
|
|
366
|
+
"description": "Path to ngsw-config.json."
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"const": false,
|
|
370
|
+
"type": "boolean",
|
|
371
|
+
"description": "Does not generate a service worker configuration."
|
|
372
|
+
}
|
|
373
|
+
]
|
|
390
374
|
},
|
|
391
375
|
"index": {
|
|
392
376
|
"description": "Configures the generation of the application's HTML index.",
|
|
@@ -414,12 +398,17 @@
|
|
|
414
398
|
"required": [
|
|
415
399
|
"input"
|
|
416
400
|
]
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"const": false,
|
|
404
|
+
"type": "boolean",
|
|
405
|
+
"description": "Does not generate an `index.html` file."
|
|
417
406
|
}
|
|
418
407
|
]
|
|
419
408
|
},
|
|
420
409
|
"statsJson": {
|
|
421
410
|
"type": "boolean",
|
|
422
|
-
"description": "Generates a 'stats.json' file which can be analyzed
|
|
411
|
+
"description": "Generates a 'stats.json' file which can be analyzed with https://esbuild.github.io/analyze/.",
|
|
423
412
|
"default": false
|
|
424
413
|
},
|
|
425
414
|
"budgets": {
|
|
@@ -452,6 +441,56 @@
|
|
|
452
441
|
},
|
|
453
442
|
"default": []
|
|
454
443
|
},
|
|
444
|
+
"prerender": {
|
|
445
|
+
"description": "Prerender (SSG) pages of your application during build time.",
|
|
446
|
+
"default": false,
|
|
447
|
+
"oneOf": [
|
|
448
|
+
{
|
|
449
|
+
"type": "boolean",
|
|
450
|
+
"description": "Enable prerending of pages of your application during build time."
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"type": "object",
|
|
454
|
+
"properties": {
|
|
455
|
+
"routesFile": {
|
|
456
|
+
"type": "string",
|
|
457
|
+
"description": "The path to a file that contains a list of all routes to prerender, separated by newlines. This option is useful if you want to prerender routes with parameterized URLs."
|
|
458
|
+
},
|
|
459
|
+
"discoverRoutes": {
|
|
460
|
+
"type": "boolean",
|
|
461
|
+
"description": "Whether the builder should process the Angular Router configuration to find all unparameterized routes and prerender them.",
|
|
462
|
+
"default": true
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
"additionalProperties": false
|
|
466
|
+
}
|
|
467
|
+
]
|
|
468
|
+
},
|
|
469
|
+
"ssr": {
|
|
470
|
+
"description": "Server side render (SSR) pages of your application during runtime.",
|
|
471
|
+
"default": false,
|
|
472
|
+
"oneOf": [
|
|
473
|
+
{
|
|
474
|
+
"type": "boolean",
|
|
475
|
+
"description": "Enable the server bundles to be written to disk."
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"type": "object",
|
|
479
|
+
"properties": {
|
|
480
|
+
"entry": {
|
|
481
|
+
"type": "string",
|
|
482
|
+
"description": "The server entry-point that when executed will spawn the web server."
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
"additionalProperties": false
|
|
486
|
+
}
|
|
487
|
+
]
|
|
488
|
+
},
|
|
489
|
+
"appShell": {
|
|
490
|
+
"type": "boolean",
|
|
491
|
+
"description": "Generates an application shell during build time.",
|
|
492
|
+
"default": false
|
|
493
|
+
},
|
|
455
494
|
"ngDoc": {
|
|
456
495
|
"type": "object",
|
|
457
496
|
"properties": {
|
|
@@ -466,7 +505,7 @@
|
|
|
466
505
|
"required": [
|
|
467
506
|
"outputPath",
|
|
468
507
|
"index",
|
|
469
|
-
"
|
|
508
|
+
"browser",
|
|
470
509
|
"tsConfig"
|
|
471
510
|
],
|
|
472
511
|
"definitions": {
|
|
@@ -513,43 +552,21 @@
|
|
|
513
552
|
]
|
|
514
553
|
},
|
|
515
554
|
"fileReplacement": {
|
|
516
|
-
"
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
"
|
|
520
|
-
|
|
521
|
-
"type": "string",
|
|
522
|
-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
523
|
-
},
|
|
524
|
-
"replaceWith": {
|
|
525
|
-
"type": "string",
|
|
526
|
-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
527
|
-
}
|
|
528
|
-
},
|
|
529
|
-
"additionalProperties": false,
|
|
530
|
-
"required": [
|
|
531
|
-
"src",
|
|
532
|
-
"replaceWith"
|
|
533
|
-
]
|
|
555
|
+
"type": "object",
|
|
556
|
+
"properties": {
|
|
557
|
+
"replace": {
|
|
558
|
+
"type": "string",
|
|
559
|
+
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
534
560
|
},
|
|
535
|
-
{
|
|
536
|
-
"type": "
|
|
537
|
-
"
|
|
538
|
-
"replace": {
|
|
539
|
-
"type": "string",
|
|
540
|
-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
541
|
-
},
|
|
542
|
-
"with": {
|
|
543
|
-
"type": "string",
|
|
544
|
-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
545
|
-
}
|
|
546
|
-
},
|
|
547
|
-
"additionalProperties": false,
|
|
548
|
-
"required": [
|
|
549
|
-
"replace",
|
|
550
|
-
"with"
|
|
551
|
-
]
|
|
561
|
+
"with": {
|
|
562
|
+
"type": "string",
|
|
563
|
+
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
552
564
|
}
|
|
565
|
+
},
|
|
566
|
+
"additionalProperties": false,
|
|
567
|
+
"required": [
|
|
568
|
+
"replace",
|
|
569
|
+
"with"
|
|
553
570
|
]
|
|
554
571
|
},
|
|
555
572
|
"budget": {
|
package/builders.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "../../node_modules/@angular-devkit/architect/src/builders-schema.json",
|
|
3
3
|
"builders": {
|
|
4
|
-
"
|
|
5
|
-
"implementation": "./
|
|
6
|
-
"schema": "./
|
|
7
|
-
"description": "NgDoc
|
|
4
|
+
"application": {
|
|
5
|
+
"implementation": "./application/index.js",
|
|
6
|
+
"schema": "./application/schema.json",
|
|
7
|
+
"description": "NgDoc Application"
|
|
8
8
|
},
|
|
9
9
|
"dev-server": {
|
|
10
10
|
"implementation": "./dev-server/index.js",
|
|
11
11
|
"schema": "./dev-server/schema.json",
|
|
12
|
-
"description": "NgDoc
|
|
12
|
+
"description": "NgDoc Dev Server"
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
}
|
package/dev-server/index.d.ts
CHANGED
package/dev-server/index.js
CHANGED
|
@@ -10,26 +10,23 @@ const build_ng_doc_1 = require("../engine/build-ng-doc");
|
|
|
10
10
|
const helpers_1 = require("../helpers");
|
|
11
11
|
/**
|
|
12
12
|
* Attach NgDocBuilder and run DevServer
|
|
13
|
-
*
|
|
14
13
|
* @param options Builder configuration
|
|
15
14
|
* @param context Builder context
|
|
16
15
|
*/
|
|
17
16
|
function runDevServer(options, context) {
|
|
18
|
-
const browserTarget = options.
|
|
19
|
-
? (0, architect_1.targetFromTargetString)(options.
|
|
17
|
+
const browserTarget = options.buildTarget
|
|
18
|
+
? (0, architect_1.targetFromTargetString)(options.buildTarget)
|
|
20
19
|
: null;
|
|
21
20
|
return (browserTarget ? (0, rxjs_1.from)(context.getTargetOptions(browserTarget)) : (0, rxjs_1.of)(options)).pipe((0, operators_1.switchMap)((targetOptions) => {
|
|
22
21
|
var _a;
|
|
23
22
|
const builderContext = (0, helpers_1.createBuilderContext)(targetOptions, context, (_a = options.ngDoc) === null || _a === void 0 ? void 0 : _a.config);
|
|
24
23
|
const runner = (0, build_ng_doc_1.buildNgDoc)(builderContext).pipe((0, operators_1.shareReplay)(1));
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
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))));
|
|
24
|
+
// This is a hack to make sure that the dev server uses the esbuild builder
|
|
25
|
+
// instead of the webpack builder. This is necessary because Angular checks
|
|
26
|
+
// the builder name to determine which builder to use for the dev server.
|
|
27
|
+
// https://github.com/angular/angular-cli/blob/9d8f6289faefa7241212f9412e70717609ef47ad/packages/angular_devkit/build_angular/src/builders/dev-server/builder.ts#L48
|
|
28
|
+
context.getBuilderNameForTarget = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return '@angular-devkit/build-angular:application'; });
|
|
29
|
+
return runner.pipe((0, operators_1.first)(), (0, operators_1.switchMap)(() => (0, rxjs_1.combineLatest)([runner, (0, dev_server_1.executeDevServer)(options, context)]).pipe((0, operators_1.map)(([, devServerOutput]) => devServerOutput))));
|
|
33
30
|
}));
|
|
34
31
|
}
|
|
35
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":";;;;AAAA,yDAKmC;AAEnC,sFAG+D;AAC/D,+BAA2D;AAC3D,8CAAoE;AAEpE,yDAAoD;AACpD,wCAAkD;AAGlD
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/builder/dev-server/index.ts"],"names":[],"mappings":";;;;AAAA,yDAKmC;AAEnC,sFAG+D;AAC/D,+BAA2D;AAC3D,8CAAoE;AAEpE,yDAAoD;AACpD,wCAAkD;AAGlD;;;;GAIG;AACH,SAAgB,YAAY,CAC3B,OAAoB,EACpB,OAAuB;IAEvB,MAAM,aAAa,GAAkB,OAAO,CAAC,WAAW;QACvD,CAAC,CAAC,IAAA,kCAAsB,EAAC,OAAO,CAAC,WAAW,CAAC;QAC7C,CAAC,CAAC,IAAI,CAAC;IAER,OAAO,CACN,aAAa,CAAC,CAAC,CAAC,IAAA,WAAI,EAAC,OAAO,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,SAAE,EAAC,OAAyB,CAAC,CAC7F,CAAC,IAAI,CACL,IAAA,qBAAS,EAAC,CAAC,aAAkB,EAAE,EAAE;;QAChC,MAAM,cAAc,GAAwB,IAAA,8BAAoB,EAC/D,aAAa,EACb,OAAO,EACP,MAAA,OAAO,CAAC,KAAK,0CAAE,MAAM,CACrB,CAAC;QACF,MAAM,MAAM,GAAqB,IAAA,yBAAU,EAAC,cAAc,CAAC,CAAC,IAAI,CAAC,IAAA,uBAAW,EAAC,CAAC,CAAC,CAAC,CAAC;QAEjF,2EAA2E;QAC3E,2EAA2E;QAC3E,yEAAyE;QACzE,oKAAoK;QACpK,OAAO,CAAC,uBAAuB,GAAG,GAAS,EAAE,wDAAC,OAAA,2CAA2C,CAAA,GAAA,CAAC;QAE1F,OAAO,MAAM,CAAC,IAAI,CACjB,IAAA,iBAAK,GAAE,EACP,IAAA,qBAAS,EAAC,GAAG,EAAE,CACd,IAAA,oBAAa,EAAC,CAAC,MAAM,EAAE,IAAA,6BAAgB,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAC/D,IAAA,eAAG,EAAC,CAAC,CAAC,EAAE,eAAe,CAAiC,EAAE,EAAE,CAAC,eAAe,CAAC,CAC7E,CACD,CACD,CAAC;IACH,CAAC,CAAC,CACF,CAAC;AACH,CAAC;AAnCD,oCAmCC;AAED,6DAA6D;AAC7D,aAAa;AACb,kBAAe,IAAA,yBAAa,EAAC,YAAY,CAAC,CAAC"}
|
package/dev-server/schema.json
CHANGED
|
@@ -7,6 +7,12 @@
|
|
|
7
7
|
"browserTarget": {
|
|
8
8
|
"type": "string",
|
|
9
9
|
"description": "A browser builder target to serve in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
|
|
10
|
+
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$",
|
|
11
|
+
"x-deprecated": "Use 'buildTarget' instead."
|
|
12
|
+
},
|
|
13
|
+
"buildTarget": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "A build builder target to serve in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
|
|
10
16
|
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
|
|
11
17
|
},
|
|
12
18
|
"port": {
|
|
@@ -96,6 +102,11 @@
|
|
|
96
102
|
"type": "number",
|
|
97
103
|
"description": "Enable and define the file watching poll time period in milliseconds."
|
|
98
104
|
},
|
|
105
|
+
"forceEsbuild": {
|
|
106
|
+
"type": "boolean",
|
|
107
|
+
"description": "Force the development server to use the 'browser-esbuild' builder when building. This is a developer preview option for the esbuild-based build system.",
|
|
108
|
+
"default": false
|
|
109
|
+
},
|
|
99
110
|
"ngDoc": {
|
|
100
111
|
"type": "object",
|
|
101
112
|
"properties": {
|
|
@@ -107,7 +118,16 @@
|
|
|
107
118
|
}
|
|
108
119
|
},
|
|
109
120
|
"additionalProperties": true,
|
|
110
|
-
"
|
|
111
|
-
|
|
121
|
+
"anyOf": [
|
|
122
|
+
{
|
|
123
|
+
"required": [
|
|
124
|
+
"buildTarget"
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"required": [
|
|
129
|
+
"browserTarget"
|
|
130
|
+
]
|
|
131
|
+
}
|
|
112
132
|
]
|
|
113
133
|
}
|
|
@@ -2,7 +2,6 @@ import { NgDocDemoPaneActionOptions } from '@ng-doc/core';
|
|
|
2
2
|
import { NgDocAction } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Render demo pane point on the page, it will be rendered by the application
|
|
5
|
-
*
|
|
6
5
|
* @param componentName - The title of the component class to render
|
|
7
6
|
* @param options - Options for configuring the action
|
|
8
7
|
* @returns The action output
|
|
@@ -4,7 +4,6 @@ exports.demoPaneAction = void 0;
|
|
|
4
4
|
const core_1 = require("@ng-doc/core");
|
|
5
5
|
/**
|
|
6
6
|
* Render demo pane point on the page, it will be rendered by the application
|
|
7
|
-
*
|
|
8
7
|
* @param componentName - The title of the component class to render
|
|
9
8
|
* @param options - Options for configuring the action
|
|
10
9
|
* @returns The action output
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"demo-pane.action.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/actions/demo-pane.action.ts"],"names":[],"mappings":";;;AAAA,uCAAsE;AAKtE
|
|
1
|
+
{"version":3,"file":"demo-pane.action.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/actions/demo-pane.action.ts"],"names":[],"mappings":";;;AAAA,uCAAsE;AAKtE;;;;;GAKG;AACH,SAAgB,cAAc,CAC7B,aAAqB,EACrB,OAAoC;IAEpC,OAAO,GAAsB,EAAE;QAC9B,OAAO;YACN,MAAM,EAAE,oCAAoC,aAAa;0BAClC,IAAA,iBAAU,EAAC,IAAI,CAAC,SAAS,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC,CAAC;yBAC1C;SACtB,CAAC;IACH,CAAC,CAAC;AACH,CAAC;AAXD,wCAWC"}
|
|
@@ -2,7 +2,6 @@ import { NgDocDemoActionOptions } from '@ng-doc/core';
|
|
|
2
2
|
import { NgDocAction } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Render demo point on the page, it will be rendered by the application
|
|
5
|
-
*
|
|
6
5
|
* @param componentName - The title of the component class to render
|
|
7
6
|
* @param options - Options for configuring the action
|
|
8
7
|
* @returns The action output
|
|
@@ -4,7 +4,6 @@ exports.demoAction = void 0;
|
|
|
4
4
|
const core_1 = require("@ng-doc/core");
|
|
5
5
|
/**
|
|
6
6
|
* Render demo point on the page, it will be rendered by the application
|
|
7
|
-
*
|
|
8
7
|
* @param componentName - The title of the component class to render
|
|
9
8
|
* @param options - Options for configuring the action
|
|
10
9
|
* @returns The action output
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"demo.action.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/actions/demo.action.ts"],"names":[],"mappings":";;;AAAA,uCAAkE;AAKlE
|
|
1
|
+
{"version":3,"file":"demo.action.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/actions/demo.action.ts"],"names":[],"mappings":";;;AAAA,uCAAkE;AAKlE;;;;;GAKG;AACH,SAAgB,UAAU,CAAC,aAAqB,EAAE,OAAgC;IACjF,OAAO,GAAsB,EAAE;QAC9B,OAAO;YACN,MAAM,EAAE,+BAA+B,aAAa;0BAC7B,IAAA,iBAAU,EAAC,IAAI,CAAC,SAAS,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC,CAAC;oBAC/C;SACjB,CAAC;IACH,CAAC,CAAC;AACH,CAAC;AARD,gCAQC"}
|
|
@@ -2,7 +2,6 @@ import { NgDocPlaygroundOptions } from '@ng-doc/core';
|
|
|
2
2
|
import { NgDocAction } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Renders playground point on the page, it will be rendered by the application
|
|
5
|
-
*
|
|
6
5
|
* @param pId - Playground id in the config
|
|
7
6
|
* @param options - Options for configuring the action
|
|
8
7
|
*/
|
|
@@ -4,7 +4,6 @@ exports.playgroundAction = void 0;
|
|
|
4
4
|
const core_1 = require("@ng-doc/core");
|
|
5
5
|
/**
|
|
6
6
|
* Renders playground point on the page, it will be rendered by the application
|
|
7
|
-
*
|
|
8
7
|
* @param pId - Playground id in the config
|
|
9
8
|
* @param options - Options for configuring the action
|
|
10
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground.action.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/actions/playground.action.ts"],"names":[],"mappings":";;;AAAA,uCAAkE;AAOlE
|
|
1
|
+
{"version":3,"file":"playground.action.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/actions/playground.action.ts"],"names":[],"mappings":";;;AAAA,uCAAkE;AAOlE;;;;GAIG;AACH,SAAgB,gBAAgB,CAAC,GAAW,EAAE,OAAgC;IAC7E,OAAO,CAAC,OAAgB,EAAE,IAAqB,EAAqB,EAAE;;QACrE,MAAM,QAAQ,GAAwC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QAE1F,IAAI,QAAQ,EAAE;YACb,OAAO;gBACN,MAAM,EAAE,0BAA0B,GAAG;6BACZ,MAAA,QAAQ,CAAC,QAAQ,mCAAI,EAAE;4BACxB,MAAA,QAAQ,CAAC,IAAI,mCAAI,EAAE;wBACvB,IAAA,iBAAU,EAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;2BAC5C,IAAA,iBAAU,EAAC,IAAI,CAAC,SAAS,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC,CAAC;2BACzC;gBACvB,YAAY,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC,WAAW,EAAE,CAAC;aAC5D,CAAC;SACF;aAAM;YACN,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;SACtB;IACF,CAAC,CAAC;AACH,CAAC;AAlBD,4CAkBC"}
|
package/engine/build-ng-doc.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { NgDocBuilderContext } from '../interfaces';
|
|
|
3
3
|
/**
|
|
4
4
|
* Builds the documentation and emits files to the file system,
|
|
5
5
|
* based on the changes in the source files.
|
|
6
|
-
*
|
|
7
6
|
* @param context - The builder context.
|
|
8
7
|
*/
|
|
9
8
|
export declare function buildNgDoc(context: NgDocBuilderContext): Observable<void>;
|
package/engine/build-ng-doc.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-ng-doc.js","sourceRoot":"","sources":["../../../../libs/builder/engine/build-ng-doc.ts"],"names":[],"mappings":";;;;AAAA,+CAAyB;AACzB,mDAA6B;AAC7B,+BAAmF;AACnF,8CAA0C;AAG1C,wCAA0D;AAE1D,4CAAwC;AACxC,2DAS6B;AAC7B,+EAA2E;AAC3E,+DAA2D;AAC3D,mEAA+D;AAC/D,mEAA+D;AAC/D,mDAA6D;AAC7D,6EAAwE;AACxE,yCAKoB;AAEpB,4CAAuE;AACvE,8DAA+D;AAC/D,qDAAiD;AACjD,iDAAkD;AAClD,2CAAmD;AACnD,2CAAmF;AACnF,uCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"build-ng-doc.js","sourceRoot":"","sources":["../../../../libs/builder/engine/build-ng-doc.ts"],"names":[],"mappings":"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"}
|
|
@@ -5,7 +5,6 @@ import { NgDocEntityStore } from '../entity-store';
|
|
|
5
5
|
/**
|
|
6
6
|
* Operator that updates the keyword map, builds the artifacts for each entity based on the
|
|
7
7
|
* keyword relationships, and returns the built artifacts.
|
|
8
|
-
*
|
|
9
8
|
* @param store - The entity store.
|
|
10
9
|
* @param additionalEntities - Additional entities to build.
|
|
11
10
|
*/
|
|
@@ -7,7 +7,6 @@ const build_candidates_1 = require("../functions/build-candidates");
|
|
|
7
7
|
/**
|
|
8
8
|
* Operator that updates the keyword map, builds the artifacts for each entity based on the
|
|
9
9
|
* keyword relationships, and returns the built artifacts.
|
|
10
|
-
*
|
|
11
10
|
* @param store - The entity store.
|
|
12
11
|
* @param additionalEntities - Additional entities to build.
|
|
13
12
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/build.ts"],"names":[],"mappings":";;;AACA,8CAAgD;AAGhD,+CAAkD;AAGlD,oEAAgE;AAEhE
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/build.ts"],"names":[],"mappings":";;;AACA,8CAAgD;AAGhD,+CAAkD;AAGlD,oEAAgE;AAEhE;;;;;GAKG;AACH,SAAgB,KAAK,CACpB,KAAuB,EACvB,GAAG,kBAAiC;IAEpC,OAAO,CAAC,MAAiC,EAAE,EAAE,CAC5C,MAAM,CAAC,IAAI,CACV,IAAA,eAAG,EAAC,CAAC,QAAuB,EAAE,EAAE,CAC/B,IAAA,kCAAe,EAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC,CAC9E,EACD,IAAA,qBAAS,EAAC,CAAC,QAAuB,EAAE,EAAE,CACrC,IAAA,2BAAe,EACd,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAc,EAAE,EAAE;QAC/B,CAAC,CAAC,WAAW,EAAE,CAAC;QAEhB,OAAO,CAAC,CAAC,KAAK,EAAE,CAAC;IAClB,CAAC,CAAC,CACF,CACD,EACD,IAAA,qBAAS,EAAC,CAAC,MAA0B,EAAE,EAAE,CACxC,IAAA,2BAAe,EACd,IAAA,kCAAe,EAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAc,EAAE,EAAE;QACjE,CAAC,CAAC,WAAW,EAAE,CAAC;QAEhB,OAAO,CAAC,CAAC,KAAK,EAAE,CAAC;IAClB,CAAC,CAAC,CACF,CAAC,IAAI,CACL,IAAA,eAAG,EAAC,CAAC,gBAAoC,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,IAAI,EAAE,CAAC,CACrF,CACD,CACD,CAAC;AACJ,CAAC;AA9BD,sBA8BC"}
|
|
@@ -2,7 +2,6 @@ import { OperatorFunction } from 'rxjs';
|
|
|
2
2
|
import { NgDocEntityStore } from '../entity-store';
|
|
3
3
|
/**
|
|
4
4
|
* Operator that collects garbage from the entity store after each source emission.
|
|
5
|
-
*
|
|
6
5
|
* @param store - The entity store.
|
|
7
6
|
*/
|
|
8
7
|
export declare function collectGarbage<T>(store: NgDocEntityStore): OperatorFunction<T, T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collect-garbage.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/collect-garbage.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"collect-garbage.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/collect-garbage.ts"],"names":[],"mappings":";;;AACA,8CAAqC;AAKrC;;;GAGG;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"}
|
|
@@ -4,7 +4,6 @@ import { NgDocWatcher } from '../watcher';
|
|
|
4
4
|
/**
|
|
5
5
|
* Operator creates an additional observable that emits when the dependencies of the source observable change
|
|
6
6
|
* and returns them as an array.
|
|
7
|
-
*
|
|
8
7
|
* @param watcher - The watcher instance.
|
|
9
8
|
*/
|
|
10
9
|
export declare function dependencyChanges(watcher: NgDocWatcher): OperatorFunction<NgDocEntity[], NgDocEntity[]>;
|