File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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+
27import { initLintingRules } from '../rules' ;
8+ import { NGRX_VERSION } from '../utils' ;
39
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+ ] ) ;
617}
Original file line number Diff line number Diff line change 33 */
44import { Rule } from '@angular-devkit/schematics' ;
55import { addDepsToPackageJson } from '@nrwl/workspace' ;
6+ import { NGRX_VERSION } from '../utils' ;
67
78/**
89 * addNgRxToPackageJson
910 * add the ngrx packages to the package.json and install them
1011 */
1112export function addNgRxToPackageJson ( ) : Rule {
12- const ngrxVersion = '10.0.0' ;
13-
1413 return addDepsToPackageJson (
1514 {
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 ,
2019 } ,
2120 { }
2221 ) ;
Original file line number Diff line number Diff line change 1- export * from './read-into-source-file' ;
21export * from './check-rule-exists' ;
2+ export * from './insert' ;
3+ export * from './ngrx-version' ;
4+ export * from './read-into-source-file' ;
35export * from './read-workspace-name' ;
4- export * from './validate-inputs' ;
56export * 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