@ng-doc/builder 16.4.1 → 16.4.3
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/engine/build-ng-doc.js
CHANGED
|
@@ -55,7 +55,7 @@ function buildNgDoc(context) {
|
|
|
55
55
|
])
|
|
56
56
|
.flat());
|
|
57
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)());
|
|
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, rxjs_1.finalize)(() => watcher.close()), (0, operators_2.progress)());
|
|
59
59
|
}
|
|
60
60
|
exports.buildNgDoc = buildNgDoc;
|
|
61
61
|
//# sourceMappingURL=build-ng-doc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-ng-doc.js","sourceRoot":"","sources":["../../../../libs/builder/engine/build-ng-doc.ts"],"names":[],"mappings":";;;;AAAA,+CAAyB;AACzB,mDAA6B;AAC7B,+
|
|
1
|
+
{"version":3,"file":"build-ng-doc.js","sourceRoot":"","sources":["../../../../libs/builder/engine/build-ng-doc.ts"],"names":[],"mappings":";;;;AAAA,+CAAyB;AACzB,mDAA6B;AAC7B,+BAAwD;AACxD,8CAAmC;AAGnC,wCAAwD;AAExD,4CAAsC;AACtC,2DAA4G;AAC5G,+EAAyE;AACzE,mEAA6D;AAC7D,mEAA6D;AAC7D,mDAA2D;AAC3D,yCAA+C;AAE/C,4CAAqE;AACrE,8DAA6D;AAC7D,qDAA+C;AAC/C,iDAAgD;AAChD,2CAAiF;AACjF,uCAAuC;AAEvC;;;;;GAKG;AACH,SAAgB,UAAU,CAAC,OAA4B;;IACtD,IAAA,uBAAa,EAAC,iBAAiB,CAAC,CAAC;IAEjC,uBAAuB;IACvB,mBAAO,CAAC,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC;IAEtD,MAAM,KAAK,GAAqB,IAAI,+BAAgB,EAAE,CAAC;IACvD,MAAM,KAAK,GAAe,IAAI,kBAAU,CAAC,CAAC,CAAC,CAAA,MAAA,OAAO,CAAC,MAAM,0CAAE,KAAK,CAAA,CAAC,CAAC;IAClE,MAAM,OAAO,GAAY,IAAA,uBAAa,EAAC,EAAC,gBAAgB,EAAE,OAAO,CAAC,QAAQ,EAAC,CAAC,CAAC;IAE7E,8DAA8D;IAC9D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BAA8B,EAAE,IAAA,sCAAkB,EAAC,KAAK,CAAC,CAAC,EACtE,IAAA,WAAI,EAAC,cAAc,EAAE,IAAA,2BAAO,GAAE,CAAC,EAC/B,IAAA,WAAI,EAAC,YAAY,EAAE,IAAA,wBAAI,GAAE,CAAC,EAC1B,IAAA,sCAAiB,EAAC,OAAO,CAAC,EAC1B,IAAA,kBAAW,EAAC,aAAa,EAAE,IAAA,yBAAK,EAAC,KAAK,EAAE,OAAO,CAAC,MAAM,EAAE,cAAc,CAAC,EAAE,WAAW,CAAC,EACrF,IAAA,kBAAW,EAAC,oBAAoB,EAAE,IAAA,0BAAW,EAAC,KAAK,EAAE,OAAO,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,EACpF,IAAA,kBAAW,EAAC,aAAa,EAAE,IAAA,wBAAI,GAAE,CAAC,EAClC,IAAA,kCAAc,EAAC,KAAK,CAAC,CACrB,CACD,EACD,IAAA,0BAAW,EAAC,KAAK,CAAC,EAClB,IAAA,eAAG,EAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,EACjB,IAAA,eAAQ,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,EAC/B,IAAA,oBAAQ,GAAE,CACV,CAAC;AACH,CAAC;AAvDD,gCAuDC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-doc/builder",
|
|
3
|
-
"version": "16.4.
|
|
3
|
+
"version": "16.4.3",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"builders": "./builders.json",
|
|
6
6
|
"schematics": "./schematics/collection.json",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@ng-doc/core": "16.4.
|
|
9
|
-
"@ng-doc/utils": "16.4.
|
|
8
|
+
"@ng-doc/core": "16.4.3",
|
|
9
|
+
"@ng-doc/utils": "16.4.3",
|
|
10
10
|
"@angular-devkit/architect": ">=0.1600.0",
|
|
11
11
|
"chokidar": "3.5.3",
|
|
12
12
|
"minimatch": "9.0.1",
|
|
@@ -7,9 +7,6 @@ import {NgDocPage, NgDocPageType} from '@ng-doc/core';
|
|
|
7
7
|
import pageEntity from '{{ page.importPath }}';
|
|
8
8
|
import {PlaygroundsModule} from './playgrounds';
|
|
9
9
|
import demoAssets from '{{ page.demoAssetsImport }}';
|
|
10
|
-
{%- for standalone in page.standalone %}
|
|
11
|
-
{{ standalone | declarationImport }}
|
|
12
|
-
{%- endfor %}
|
|
13
10
|
|
|
14
11
|
const pageContent: string = `{{ pageContent | toTemplateString }}`
|
|
15
12
|
|
|
@@ -18,6 +15,14 @@ const pageContent: string = `{{ pageContent | toTemplateString }}`
|
|
|
18
15
|
selector: 'ng-doc-page-{{ page.fullRoute | kebabCase }}',
|
|
19
16
|
template: `<ng-doc-page></ng-doc-page>`,
|
|
20
17
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
|
+
standalone: true,
|
|
19
|
+
imports: [
|
|
20
|
+
NgDocPageComponent,
|
|
21
|
+
{%- if page.hasImports %}
|
|
22
|
+
...pageEntity.imports,
|
|
23
|
+
{%- endif %}
|
|
24
|
+
PlaygroundsModule,
|
|
25
|
+
],
|
|
21
26
|
providers: [{provide: NgDocRootPage, useExisting: DynamicComponent}],
|
|
22
27
|
})
|
|
23
28
|
export class DynamicComponent extends NgDocRootPage {
|
|
@@ -42,24 +47,13 @@ export class DynamicComponent extends NgDocRootPage {
|
|
|
42
47
|
}
|
|
43
48
|
|
|
44
49
|
@NgModule({
|
|
45
|
-
declarations: [
|
|
46
|
-
DynamicComponent,
|
|
47
|
-
],
|
|
48
50
|
imports: [
|
|
49
51
|
CommonModule,
|
|
50
|
-
{%- if page.hasImports %}
|
|
51
|
-
...pageEntity.imports,
|
|
52
|
-
{%- endif %}
|
|
53
|
-
NgDocPageComponent,
|
|
54
|
-
PlaygroundsModule,
|
|
55
52
|
RouterModule.forChild([{
|
|
56
53
|
path: '',
|
|
57
54
|
component: DynamicComponent,
|
|
58
55
|
title: '{{ page.title }}',
|
|
59
56
|
}]),
|
|
60
|
-
{%- for standalone in page.standalone %}
|
|
61
|
-
{{ standalone.getName() }},
|
|
62
|
-
{%- endfor %}
|
|
63
57
|
],
|
|
64
58
|
providers: pageEntity.providers,
|
|
65
59
|
exports: [RouterModule]
|
|
@@ -21,6 +21,16 @@ import {CommonModule} from '@angular/common';
|
|
|
21
21
|
template: `
|
|
22
22
|
{{ template }}
|
|
23
23
|
`,
|
|
24
|
+
standalone: true,
|
|
25
|
+
imports: [
|
|
26
|
+
CommonModule,
|
|
27
|
+
{%- if page.hasImports %}
|
|
28
|
+
...pageEntity.imports,
|
|
29
|
+
{%- endif %}
|
|
30
|
+
{%- if metadata.standalone %}
|
|
31
|
+
pageEntity.playgrounds['{{ id }}'].target,
|
|
32
|
+
{%- endif %}
|
|
33
|
+
],
|
|
24
34
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
25
35
|
})
|
|
26
36
|
export class {{ comp.name }} extends NgDocBasePlayground {
|
|
@@ -45,16 +55,6 @@ export class {{ comp.name }} extends NgDocBasePlayground {
|
|
|
45
55
|
@NgModule({
|
|
46
56
|
imports: [
|
|
47
57
|
CommonModule,
|
|
48
|
-
{%- if page.hasImports %}
|
|
49
|
-
...pageEntity.imports,
|
|
50
|
-
{%- endif %}
|
|
51
|
-
{%- for id, metadata in playgrounds -%}
|
|
52
|
-
{%- if metadata.standalone %}
|
|
53
|
-
pageEntity.playgrounds['{{ id }}'].target,
|
|
54
|
-
{%- endif %}
|
|
55
|
-
{%- endfor %}
|
|
56
|
-
],
|
|
57
|
-
declarations: [
|
|
58
58
|
{%- for comp in components %}
|
|
59
59
|
{{ comp.name }},
|
|
60
60
|
{%- endfor %}
|