Skip to content

Commit 1481f85

Browse files
committed
fix: add schema to effect composer
1 parent 1a746ea commit 1481f85

File tree

11 files changed

+36
-93
lines changed

11 files changed

+36
-93
lines changed

README.md

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
# Postprocessing
1+
# AngularThree Postprocessing Workspace
22

3-
<a alt="Nx logo" href="https://nx.dev" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo.png" width="45"></a>
4-
5-
**This workspace has been generated by [Nx, a Smart, fast and extensible build system.](https://nx.dev)**
6-
7-
## Understand this workspace
8-
9-
Run `nx graph` to see a diagram of the dependencies of the projects.
10-
11-
## Remote caching
12-
13-
Run `npx nx connect-to-nx-cloud` to enable [remote caching](https://nx.app) and make CI faster.
14-
15-
## Further help
16-
17-
Visit the [Nx Documentation](https://nx.dev) to learn more.
3+
Here, you'll find all related projects to `angular-three-postprocessing`

apps/plugin-e2e/jest.config.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

apps/plugin-e2e/project.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

apps/plugin-e2e/tests/plugin.spec.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

apps/plugin-e2e/tsconfig.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

apps/plugin-e2e/tsconfig.spec.json

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
# angular-three-postprocessing
1+
# Postprocessing for Angular Three using postprocessing
22

3-
This library was generated with [Nx](https://nx.dev).
3+
## Installation
44

5-
## Running unit tests
5+
```shell
6+
ng add angular-three-postprocessing
7+
```
68

7-
Run `nx test angular-three-postprocessing` to execute the unit tests.
9+
## Documentations
10+
11+
Read more about Angular Three Postprocessing usages in [TBD: Documentations](#)
12+
13+
## Contributions
14+
15+
Contributions are welcomed

libs/angular-three-postprocessing/ng-package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"dest": "../../dist/libs/angular-three-postprocessing",
44
"lib": {
55
"entryFile": "src/index.ts"
6-
}
6+
},
7+
"allowedNonPeerDependencies": ["@nrwl/devkit"]
78
}

libs/angular-three-postprocessing/project.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@
2121
},
2222
"defaultConfiguration": "production"
2323
},
24+
"package": {
25+
"executor": "nx:run-commands",
26+
"options": {
27+
"commands": [
28+
"npx nx build angular-three-postprocessing",
29+
"npx nx build angular-three-postprocessing-plugin"
30+
],
31+
"parallel": false
32+
}
33+
},
2434
"test": {
2535
"executor": "@nrwl/jest:jest",
2636
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
@@ -46,6 +56,13 @@
4656
"libs/angular-three-postprocessing/effects/**/*.html"
4757
]
4858
}
59+
},
60+
"publish": {
61+
"executor": "nx:run-commands",
62+
"options": {
63+
"command": "npm publish",
64+
"cwd": "dist/libs/angular-three-postprocessing"
65+
}
4966
}
5067
},
5168
"tags": []

libs/angular-three-postprocessing/src/lib/effect-composer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, inject, InjectionToken, Input, OnInit } from '@angular/core';
1+
import { Component, CUSTOM_ELEMENTS_SCHEMA, inject, InjectionToken, Input, OnInit } from '@angular/core';
22
import { RxActionFactory } from '@rx-angular/state/actions';
33
import { extend, getLocalState, injectNgtRef, NgtRxStore, NgtStore, startWithUndefined } from 'angular-three';
44
import { DepthDownsamplingPass, EffectComposer, EffectPass, NormalPass, RenderPass } from 'postprocessing';
@@ -51,6 +51,7 @@ function effectComposerApiFactory(composer: NgtpEffectComposer) {
5151
{ provide: NGTP_EFFECT_COMPOSER_API, useFactory: effectComposerApiFactory, deps: [NgtpEffectComposer] },
5252
RxActionFactory,
5353
],
54+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
5455
})
5556
export class NgtpEffectComposer extends NgtRxStore implements OnInit {
5657
@Input() composerRef = injectNgtRef<Group>();

libs/plugin/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "plugin",
2+
"name": "angular-three-postprocessing-plugin",
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "libs/plugin/src",
55
"projectType": "library",

0 commit comments

Comments
 (0)