File tree 2 files changed +7
-6
lines changed
plugin/src/generators/add-soba
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ import { SOBA_PEER_DEPENDENCIES } from '../version';
6
6
const ENTRY_POINTS = {
7
7
abstractions : [ 'troika-three-text' ] ,
8
8
controls : [ 'camera-controls' , 'maath' ] ,
9
- materials : [ 'three-custom-shader-material' , 'three-mesh-bvh' ] ,
9
+ materials : [ 'three-custom-shader-material' ] ,
10
10
staging : [ 'troika-three-text' , '@monogrid/gainmap-js' ] ,
11
11
stats : [ 'stats-gl' ] ,
12
12
} ;
13
13
14
14
export async function addSobaGenerator ( tree : Tree ) {
15
- const packagesToAdd = [ 'three-stdlib' , '@pmndrs/vanilla' ] ;
15
+ const packagesToAdd = [ 'three-stdlib' , '@pmndrs/vanilla' , 'three-mesh-bvh' ] ;
16
16
17
17
const packageJson = readJson ( tree , 'package.json' ) ;
18
18
const ngtVersion = packageJson [ 'dependencies' ] [ 'angular-three' ] || packageJson [ 'devDependencies' ] [ 'angular-three' ] ;
@@ -72,7 +72,7 @@ export async function addSobaGenerator(tree: Tree) {
72
72
}
73
73
return acc ;
74
74
} ,
75
- { } as Record < string , string > ,
75
+ { 'angular-three-soba' : ngtVersion } as Record < string , string > ,
76
76
) ;
77
77
78
78
// add deps to package.json
Original file line number Diff line number Diff line change @@ -5,13 +5,14 @@ This module provides abstract components and patterns for building reusable and
5
5
| Package | Description |
6
6
| ------------------- | -------------------------------------------- |
7
7
| ` troika-three-text ` | Required for using the ` NgtsText ` component. |
8
+ | ` three-mesh-bvh ` | Required for ` angular-three-soba/shaders ` |
8
9
9
10
To install these dependencies, use one of the following commands:
10
11
11
12
``` bash
12
- npm install troika-three-text
13
- # yarn add troika-three-text
14
- # pnpm add troika-three-text
13
+ npm install troika-three-text three-mesh-bvh
14
+ # yarn add troika-three-text three-mesh-bvh
15
+ # pnpm add troika-three-text three-mesh-bvh
15
16
```
16
17
17
18
## TOC
You can’t perform that action at this time.
0 commit comments