Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(angular): add parent flag to ngrx generator #14105

Merged

Conversation

Coly010
Copy link
Contributor

@Coly010 Coly010 commented Jan 3, 2023

Current Behavior

We currently only have the flag --module for the NgRx generator, however, this does not make sense with Standalone Components.

Expected Behavior

Deprecate the --module flag in favour of the new --parent flag.

--parent flag behaviour will mimic --module for now, but will eventually be expanded to include support for Standalone Components

@Coly010 Coly010 self-assigned this Jan 3, 2023
@vercel
Copy link

vercel bot commented Jan 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
nx-dev ✅ Ready (Inspect) Visit Preview Jan 3, 2023 at 0:24AM (UTC)

@Coly010 Coly010 marked this pull request as ready for review January 3, 2023 13:32
@Coly010 Coly010 merged commit 16a0891 into nrwl:master Jan 3, 2023
@Coly010 Coly010 deleted the angular/deprecate-module-for-parent-ngrx branch January 3, 2023 13:35
): void {
const modulePath = options.module;
const sourceText = tree.read(modulePath, 'utf-8');
const parentPath = options.module ?? options.parent;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: since both module and parent are optional now but I think we have to have at least either one. parent will be made required as we remove module in the future but can/should we put a check for them here, and log an actionable error message for now?

@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants