Skip to content

Commit

Permalink
fix(Schematics): Add group folder after feature name folder (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts authored and MikeRyanDev committed Jan 22, 2018
1 parent cb0d185 commit 317fb94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/schematics/src/effect/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ function addImportToNgModule(options: EffectOptions): Rule {

const effectsPath =
`/${options.sourceDir}/${options.path}/` +
(options.group ? 'effects/' : '') +
(options.flat ? '' : stringUtils.dasherize(options.name) + '/') +
(options.group ? 'effects/' : '') +
stringUtils.dasherize(options.name) +
'.effects';
const relativePath = buildRelativePath(modulePath, effectsPath);
Expand Down
4 changes: 2 additions & 2 deletions modules/schematics/src/utility/ngrx-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export function addReducerToState(options: ReducerOptions): Rule {

const reducerPath =
`/${options.sourceDir}/${options.path}/` +
(options.group ? 'reducers/' : '') +
(options.flat ? '' : stringUtils.dasherize(options.name) + '/') +
(options.group ? 'reducers/' : '') +
stringUtils.dasherize(options.name) +
'.reducer';

Expand Down Expand Up @@ -217,8 +217,8 @@ export function addReducerImportToNgModule(options: ReducerOptions): Rule {

const reducerPath =
`/${options.sourceDir}/${options.path}/` +
(options.group ? 'reducers/' : '') +
(options.flat ? '' : stringUtils.dasherize(options.name) + '/') +
(options.group ? 'reducers/' : '') +
stringUtils.dasherize(options.name) +
'.reducer';
const relativePath = buildRelativePath(modulePath, reducerPath);
Expand Down

0 comments on commit 317fb94

Please sign in to comment.