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(schematics): add an option to nest e2e projects inside of newly generated apps #770

Closed

Conversation

chriswnewman
Copy link

ng generate application my-app --nestE2e creates my-app-e2e project in apps/my-app/e2e

see #743

…generated apps

`ng generate application my-app --nestE2e` creates my-app-e2e project in apps/my-app/e2e

see nrwl#743
@chriswnewman
Copy link
Author

screen shot 2018-09-16 at 11 50 08 am

screen shot 2018-09-16 at 11 51 02 am

@vsavkin
Copy link
Member

vsavkin commented Sep 20, 2018

Thank you for your PR!

This is a well-written PR, but unfortunately, I don't think I'll be able to merge it.

If you create more than one application in a non-Nx CLI6 project, the CLI will create e2e tests as siblings to the applications they are testing. E2E tests placed inside the application is a special case in the CLI6 setup--it's only the case when there is a single top level application.

The application schematic provided by Nx extends the application schematic provided by the CLI. That is why you get the current layout in an Nx workspace. We also have decided to stay as close to the standard CLI schematics as possible.

Does it make sense?

@chriswnewman
Copy link
Author

chriswnewman commented Sep 20, 2018

Thank you for taking the time to look into this PR!

And thanks for the explanation; it does make sense. When I read para1 of the nx README.md:

[nx] provides an opinionated approach to application project structure and patterns.

I assumed that the layout change was an opinionated decision made by nx. I didn't realize that CLI6 was the reason behind the current layout. I can respect the decision to stick closely to angular schematics. I'll try to open a feature request in the angular cli repo.

@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 23, 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.

3 participants