File tree Expand file tree Collapse file tree 13 files changed +4872
-5720
lines changed
json-rpc/nestjs-json-rpc-sdk Expand file tree Collapse file tree 13 files changed +4872
-5720
lines changed Original file line number Diff line number Diff line change 1
- DB_HOST = localhost
1
+ DB_HOST = 192.168.2.243
2
2
DB_LOGGING = 1
3
3
4
4
DB_USERNAME = " postgres"
Original file line number Diff line number Diff line change 33
33
"jest" : true
34
34
},
35
35
"rules" : {}
36
+ },
37
+ {
38
+ "files" : [" *.ts" ],
39
+ "rules" : {
40
+ "@angular-eslint/prefer-standalone" : " off"
41
+ }
36
42
}
37
43
],
38
44
"extends" : [" ./.eslintrc.base.json" ]
Original file line number Diff line number Diff line change 24
24
"prefix" : " nestjs-json-api" ,
25
25
"style" : " kebab-case"
26
26
}
27
- ]
27
+ ],
28
+ "@angular-eslint/prefer-standalone" : " off"
28
29
}
29
30
},
30
31
{
Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ type RpcMap = {
16
16
} ;
17
17
18
18
@Component ( {
19
- standalone : true ,
20
19
imports : [ NxWelcomeComponent ] ,
21
20
selector : 'nestjs-json-api-root' ,
22
21
templateUrl : './app.component.html' ,
23
22
styleUrl : './app.component.css' ,
23
+ standalone : true ,
24
24
} )
25
25
export class AppComponent implements OnInit {
26
26
private JsonApiSdkService = inject ( JsonApiSdkService ) ;
Original file line number Diff line number Diff line change
1
+ import { ApplicationConfig , InjectionToken } from '@angular/core' ;
2
+ import { provideJsonApi } from 'json-api-nestjs-sdk/ngModule' ;
1
3
import {
2
- ApplicationConfig ,
3
- importProvidersFrom ,
4
- InjectionToken ,
5
- } from '@angular/core' ;
6
- import { JsonApiAngular , provideJsonApi } from 'json-api-nestjs-sdk/ngModule' ;
7
- import {
8
- JsonRpcAngular ,
9
4
JsonRpcAngularConfig ,
10
5
TransportType ,
11
6
provideJsonRpc ,
12
7
} from '@klerick/nestjs-json-rpc-sdk/ngModule' ;
13
8
import { Subject } from 'rxjs' ;
14
9
import { webSocket } from 'rxjs/webSocket' ;
15
10
import { io } from 'socket.io-client' ;
16
- import { provideHttpClient , withInterceptors } from '@angular/common/http' ;
11
+ import { provideHttpClient , withFetch } from '@angular/common/http' ;
17
12
18
13
const destroySubject = new Subject < boolean > ( ) ;
19
14
setTimeout ( ( ) => {
@@ -60,21 +55,18 @@ const ioConfig: JsonRpcAngularConfig = {
60
55
61
56
export const appConfig : ApplicationConfig = {
62
57
providers : [
63
- importProvidersFrom (
64
- JsonApiAngular . forRoot ( {
65
- apiHost : 'http://localhost:4200' ,
66
- idKey : 'id' ,
67
- apiPrefix : 'api' ,
68
- operationUrl : 'operation' ,
69
- } )
70
- ) ,
71
- importProvidersFrom (
72
- JsonRpcAngular . forRoot (
73
- // httpConfig
74
- // wsConfig
75
- // wsConfigWithToken,
76
- ioConfig
77
- )
58
+ provideHttpClient ( withFetch ( ) ) ,
59
+ provideJsonApi ( {
60
+ apiHost : 'http://localhost:4200' ,
61
+ idKey : 'id' ,
62
+ apiPrefix : 'api' ,
63
+ operationUrl : 'operation' ,
64
+ } ) ,
65
+ provideJsonRpc (
66
+ // httpConfig
67
+ // wsConfig
68
+ // wsConfigWithToken,
69
+ ioConfig
78
70
) ,
79
71
] ,
80
72
} ;
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import { CommonModule } from '@angular/common';
3
3
4
4
@Component ( {
5
5
selector : 'nestjs-json-api-nx-welcome' ,
6
- standalone : true ,
7
6
imports : [ CommonModule ] ,
7
+ standalone : true ,
8
8
template : `
9
9
<!--
10
10
* * * * * * * * * * * * * * * * * * * * * * * * * * * *
Original file line number Diff line number Diff line change 1
- import { getJestProjects } from '@nx/jest' ;
1
+ import { getJestProjectsAsync } from '@nx/jest' ;
2
2
3
- export default {
4
- projects : getJestProjects ( )
5
- } ;
3
+ export default async ( ) => ( {
4
+ projects : await getJestProjectsAsync ( )
5
+ } ) ;
Original file line number Diff line number Diff line change 20
20
"rules" : {
21
21
"@nx/dependency-checks" : " error"
22
22
}
23
+ },
24
+ {
25
+ "files" : [" *.ts" ],
26
+ "rules" : {
27
+ "@angular-eslint/prefer-standalone" : " off"
28
+ }
23
29
}
24
30
]
25
31
}
Original file line number Diff line number Diff line change 4
4
"sourceRoot" : " libs/json-api/json-api-nestjs/src" ,
5
5
"projectType" : " library" ,
6
6
"targets" : {
7
- "build" : {
7
+ "build-ts " : {
8
8
"executor" : " @nx/js:tsc" ,
9
9
"outputs" : [" {options.outputPath}" ],
10
10
"options" : {
18
18
"generateExportsField" : true
19
19
}
20
20
},
21
+ "build" : {
22
+ "executor" : " nx:run-commands" ,
23
+ "dependsOn" : [
24
+ " build-ts"
25
+ ],
26
+ "options" : {
27
+ "commands" : [" rm -rf dist/libs/json-api/json-api-nestjs/libs" ],
28
+ "cwd" : " ./" ,
29
+ "parallel" : false
30
+ }
31
+ },
21
32
"publish" : {
22
33
"command" : " node tools/scripts/publish.mjs json-api-nestjs {args.ver} {args.tag}" ,
23
34
"dependsOn" : [" build" ]
Original file line number Diff line number Diff line change 20
20
"rules" : {
21
21
"@nx/dependency-checks" : " error"
22
22
}
23
+ },
24
+ {
25
+ "files" : [" *.ts" ],
26
+ "rules" : {
27
+ "@angular-eslint/prefer-standalone" : " off"
28
+ }
23
29
}
24
30
]
25
31
}
You can’t perform that action at this time.
0 commit comments