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

@ngrx/schmatics should offer an entities flag when generating a feature? #779

Closed
matthewharwood opened this issue Feb 3, 2018 · 1 comment

Comments

@matthewharwood
Copy link

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[x] Feature request
[ ] Documentation issue or request

What is the current behavior?

Pretty common that you will want entities with a generate feature --group. Currently, This isn't possible

Expected behavior:

The goal is to get a directory structure that looks like the example-app Which currently isn't possible solely from schematics (you'll have to move some files around). Generating a feature with the --group flag but it doesn't offer an --entity flag which would be ideal.

Minimal reproduction of the problem with instructions:

npx ng g module User --flat false
npx ng g feature user/User -m user.module.ts --group --collection=@ngrx/schematics
npx ng g container user/containers/Master --collection=@ngrx/schematics
npx ng g entity user/User --collection=@ngrx/schematics -m app.module.ts -r ../reducers/index.ts
Then I have to move the files created by entity to the feature directories made with --group.

@rijine
Copy link

rijine commented Feb 18, 2018

@brandonroberts @MikeRyanDev how to generate entity without creating model file ?
--model false kind of experience?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants