Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

feat(@angular-devkit/core): use the root project as default project by default #872

Closed
wants to merge 2 commits into from
Closed

feat(@angular-devkit/core): use the root project as default project by default #872

wants to merge 2 commits into from

Conversation

nweldev
Copy link
Contributor

@nweldev nweldev commented May 9, 2018

If there isn't any defaultProject set, permit to use the "root project" (ie the one which
isn't in the /projects/ folder) as the default project "by default" if it exists.

In my opinion, if Angular CLI permit to create a project at workspace's root even if their is other projects in the /projects/ folder (especially as it does this by default when creating a new workspace), this "root project" should be, logically, the default project, as this is the one developers will look at first.

…y default

If there isn't any defaultProject set, permit to use the "root project" (ie the one which
isn't in the `/projects/` folder) as the default project "by default" if it exists.
@nweldev nweldev requested review from clydin and hansl as code owners May 9, 2018 10:53
@filipesilva
Copy link
Contributor

Heya, I'm sorry but I don't think we should assume the default based on root. What you say does make sense, but I think that soft default trades some niche usage convenience (default when multiple projects are present) for some confusion (if things change folder they break).

If this change were to go in, then it would need to be supported for quite a while. I can see this causing problems in the future and don't think the tradeoff is worth it.

@nweldev
Copy link
Contributor Author

nweldev commented May 22, 2018

Thank you @filipesilva for this review. Didn't thought about this.

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

Successfully merging this pull request may close these issues.

4 participants