File tree Expand file tree Collapse file tree 4 files changed +24
-12
lines changed Expand file tree Collapse file tree 4 files changed +24
-12
lines changed Original file line number Diff line number Diff line change 1
- import { chain , Rule } from '@angular-devkit/schematics' ;
1
+ import {
2
+ chain ,
3
+ Rule
4
+ } from '@angular-devkit/schematics' ;
5
+ import { addDepsToPackageJson } from '@nrwl/workspace' ;
6
+
2
7
import { initLintingRules } from '../rules' ;
8
+ import { NGRX_VERSION } from '../utils' ;
3
9
4
- export default function ( ) : Rule {
5
- return chain ( [ initLintingRules ( ) ] ) ;
10
+ export default function ( ) : Rule {
11
+ return chain ( [
12
+ initLintingRules ( ) ,
13
+ addDepsToPackageJson ( {
14
+ '@ngrx/schematics' : NGRX_VERSION
15
+ } )
16
+ ] ) ;
6
17
}
Original file line number Diff line number Diff line change 3
3
*/
4
4
import { Rule } from '@angular-devkit/schematics' ;
5
5
import { addDepsToPackageJson } from '@nrwl/workspace' ;
6
+ import { NGRX_VERSION } from '../utils' ;
6
7
7
8
/**
8
9
* addNgRxToPackageJson
9
10
* add the ngrx packages to the package.json and install them
10
11
*/
11
12
export function addNgRxToPackageJson ( ) : Rule {
12
- const ngrxVersion = '10.0.0' ;
13
-
14
13
return addDepsToPackageJson (
15
14
{
16
- '@ngrx/store' : ngrxVersion ,
17
- '@ngrx/effects' : ngrxVersion ,
18
- '@ngrx/entity' : ngrxVersion ,
19
- '@ngrx/store-devtools' : ngrxVersion ,
15
+ '@ngrx/store' : NGRX_VERSION ,
16
+ '@ngrx/effects' : NGRX_VERSION ,
17
+ '@ngrx/entity' : NGRX_VERSION ,
18
+ '@ngrx/store-devtools' : NGRX_VERSION ,
20
19
} ,
21
20
{ }
22
21
) ;
Original file line number Diff line number Diff line change 1
- export * from './read-into-source-file' ;
2
1
export * from './check-rule-exists' ;
2
+ export * from './insert' ;
3
+ export * from './ngrx-version' ;
4
+ export * from './read-into-source-file' ;
3
5
export * from './read-workspace-name' ;
4
- export * from './validate-inputs' ;
5
6
export * from './update-dep-const' ;
6
- export * from './insert ' ;
7
+ export * from './validate-inputs ' ;
Original file line number Diff line number Diff line change
1
+ export const NGRX_VERSION = '10.1.2' ;
You can’t perform that action at this time.
0 commit comments