Skip to content

[feature request] CLI option to create nested e2e project #743

@chriswnewman

Description

@chriswnewman

I recently started trying to adopt nx and monorepo-style development. One thing that strikes me as being different for no apparent reason, is that e2e projects for newly generated apps are moved outside of the main app folder.

Nx Workspace

apps
    -nx-app
        -src
    -nx-app-e2e
dist
node_modules
libs

Standalone Angular app

angular-app
    -dist
    -e2e
    -node_modules
    -src

I can appreciate the reasoning for moving the node_modules and dist folders above the level of individual project. But I can't say the same for e2e.

Without knowing the reasoning behind this design decision, my opinion is that it would be nice to have a CLI option to preserve the nested e2e folder style of traditionally generated Angular apps. The default for this option could even be the current behavior.

There is an unanswered question on SO related to this.
https://stackoverflow.com/questions/51763075/why-does-nrwl-nx-create-a-separate-e2e-project-for-each-app

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions