@ng-doc/builder 15.0.0-beta.25 → 15.0.0-beta.26

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.
@@ -12,7 +12,10 @@ const operators_1 = require("rxjs/operators");
12
12
  * @param EntityConstructor
13
13
  */
14
14
  function entityLifeCycle(builder, project, watcher, path, EntityConstructor) {
15
- return watcher.onAdd(path).pipe((0, operators_1.map)((p) => new EntityConstructor(builder, project.addSourceFileAtPath(p), builder.context)), (0, operators_1.mergeMap)((entity) => childGenerator(entity).pipe((0, operators_1.concatMap)((entities) => (0, rxjs_1.merge)(...entities.map((entity) => (0, rxjs_1.merge)(watcher.onChange(...entity.rootFiles).pipe((0, operators_1.concatMap)(() => childGenerator(entity)), (0, operators_1.takeUntil)(entity.onDestroy())), watcher.onUnlink(...entity.rootFiles).pipe((0, operators_1.tap)(() => entity.destroy()), (0, operators_1.take)(1), (0, operators_1.map)(() => [entity]))))).pipe((0, operators_1.startWith)(entities))))));
15
+ return watcher.onAdd(path).pipe((0, operators_1.map)((p) => new EntityConstructor(builder, project.addSourceFileAtPath(p), builder.context)), (0, operators_1.mergeMap)((entity) => childGenerator(entity).pipe((0, operators_1.concatMap)((entities) => (0, rxjs_1.merge)(...entities.map((entity) => (0, rxjs_1.merge)(watcher
16
+ .watch(entity.rootFiles)
17
+ .onChange(...entity.rootFiles)
18
+ .pipe((0, operators_1.concatMap)(() => childGenerator(entity)), (0, operators_1.takeUntil)(entity.onDestroy())), watcher.onUnlink(...entity.rootFiles).pipe((0, operators_1.tap)(() => entity.destroy()), (0, operators_1.take)(1), (0, operators_1.map)(() => [entity]))))).pipe((0, operators_1.startWith)(entities))))));
16
19
  }
17
20
  exports.entityLifeCycle = entityLifeCycle;
18
21
  /**
@@ -12,7 +12,10 @@ const operators_1 = require("rxjs/operators");
12
12
  * @param EntityConstructor
13
13
  */
14
14
  function entityLifeCycle(builder, project, watcher, path, EntityConstructor) {
15
- return watcher.onAdd(path).pipe((0, operators_1.map)((p) => new EntityConstructor(builder, project.addSourceFileAtPath(p), builder.context)), (0, operators_1.mergeMap)((entity) => childGenerator(entity).pipe((0, operators_1.concatMap)((entities) => (0, rxjs_1.merge)(...entities.map((entity) => (0, rxjs_1.merge)(watcher.onChange(...entity.rootFiles).pipe((0, operators_1.concatMap)(() => childGenerator(entity)), (0, operators_1.takeUntil)(entity.onDestroy())), watcher.onUnlink(...entity.rootFiles).pipe((0, operators_1.tap)(() => entity.destroy()), (0, operators_1.take)(1), (0, operators_1.map)(() => [entity]))))).pipe((0, operators_1.startWith)(entities))))));
15
+ return watcher.onAdd(path).pipe((0, operators_1.map)((p) => new EntityConstructor(builder, project.addSourceFileAtPath(p), builder.context)), (0, operators_1.mergeMap)((entity) => childGenerator(entity).pipe((0, operators_1.concatMap)((entities) => (0, rxjs_1.merge)(...entities.map((entity) => (0, rxjs_1.merge)(watcher
16
+ .watch(entity.rootFiles)
17
+ .onChange(...entity.rootFiles)
18
+ .pipe((0, operators_1.concatMap)(() => childGenerator(entity)), (0, operators_1.takeUntil)(entity.onDestroy())), watcher.onUnlink(...entity.rootFiles).pipe((0, operators_1.tap)(() => entity.destroy()), (0, operators_1.take)(1), (0, operators_1.map)(() => [entity]))))).pipe((0, operators_1.startWith)(entities))))));
16
19
  }
17
20
  exports.entityLifeCycle = entityLifeCycle;
18
21
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"entity-life-cycle.js","sourceRoot":"","sources":["../../../../libs/builder/engine/entity-life-cycle.ts"],"names":[],"mappings":";;;AAAA,+BAAqD;AACrD,8CAAyF;AAQzF;;;;;;;GAOG;AACH,SAAgB,eAAe,CAC9B,OAAqB,EACrB,OAAgB,EAChB,OAAqB,EACrB,IAAY,EACZ,iBAA6C;IAE7C,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAC9B,IAAA,eAAG,EAAC,CAAC,CAAS,EAAE,EAAE,CAAC,IAAI,iBAAiB,CAAC,OAAO,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,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@ng-doc/builder",
3
- "version": "15.0.0-beta.25",
3
+ "version": "15.0.0-beta.26",
4
4
  "type": "commonjs",
5
5
  "builders": "./builders.json",
6
6
  "schematics": "./schematics/collection.json",
7
7
  "dependencies": {
8
- "@ng-doc/core": "15.0.0-beta.25",
8
+ "@ng-doc/core": "15.0.0-beta.26",
9
9
  "@angular-devkit/architect": ">=0.1500.0",
10
10
  "chokidar": "^3.5.3",
11
11
  "minimatch": "^5.1.0",
@@ -5,7 +5,5 @@ import {CommonModule} from '@angular/common';
5
5
  imports: [CommonModule],
6
6
  // Declare you demo components here
7
7
  declarations: [],
8
- // And export them
9
- exports: []
10
8
  })
11
9
  export class <%= pageName %>Module {}
@@ -7,7 +7,7 @@
7
7
  {% import "helpers/modifier.html.nunj" as modifierMacro %}
8
8
 
9
9
  {% block modifier %}
10
- {{ modifierMacro.render('Abstract') }}
10
+ {{ modifierMacro.render('Abstract') if declaration.isAbstract() }}
11
11
  {% endblock %}
12
12
 
13
13
  {% block details %}