Skip to content

Commit

Permalink
perf(Schematics): remove path filters in reducer schematics
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver authored and brandonroberts committed Jun 29, 2018
1 parent 6d3f5a1 commit 055f6ef
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions modules/schematics/src/reducer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,9 @@ export default function(options: ReducerOptions): Rule {
]);

return chain([
branchAndMerge(chain([addReducerToState(options)])),
branchAndMerge(
chain([
filter(path => !path.includes('node_modules')),
addReducerToState(options),
])
),
branchAndMerge(
chain([
filter(
path =>
path.endsWith('.module.ts') &&
!path.endsWith('-routing.module.ts')
),
addReducerImportToNgModule(options),
mergeWith(templateSource),
])
chain([addReducerImportToNgModule(options), mergeWith(templateSource)])
),
])(host, context);
};
Expand Down

0 comments on commit 055f6ef

Please sign in to comment.