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

@angular-devkit: Filter project names #739

Closed
wants to merge 4 commits into from
Closed

@angular-devkit: Filter project names #739

wants to merge 4 commits into from

Conversation

nweldev
Copy link
Contributor

@nweldev nweldev commented Apr 18, 2018

Permit to get only the required project names.

This should permit to add some new behaviours in angular-cli to complete the --project option, for example a new --libraries-only option for the build, lint and test commands.

@nweldev
Copy link
Contributor Author

nweldev commented Apr 19, 2018

Is there an issue with AppVeyor ? This PR doesn't impact NgPackagr Build, and test-large is ok on my computer.

@clydin
Copy link
Member

clydin commented Apr 19, 2018

The test timeouts were recently adjusted. Try rebasing against master to pick up the changes.

nweldev pushed a commit to nweldev/angular-cli that referenced this pull request Apr 19, 2018
This commit is just a first example for angular#10369, following the discussion started in
angular/devkit#730.
angular/devkit#739 would be needed.
This example would also require some evolutions on @angular-devkit/architect, but I'm
sure there is a way to do this.
@nweldev
Copy link
Contributor Author

nweldev commented Apr 23, 2018

@filipesilva So, as I said in #730 (comment), this PR is, in my opinion, still relevant even if it's not the solution for #730.

In fact, in any mono-repository mixing apps and libs, the CI could be tricky to manage, as we need two separated workflows : one for applications, and one for libraries. When using a unique versioning for a set of libraries, bumping version number, testing, building and releasing should be done for a set of libraries at once. It could be for all the libraries in the project, or for a specific subset (for example, all the libraries associated with a given scope (#646 should help a lot on this thanks to @Brocco ).

By adding a filtering solution, we could, instead of just running a bunch of ng commands, run the target on a specific subset of our choice, which should lead to better performances and readability.

Even for applications, we have some cases where we could have specific sets which should have their own CI process separated from the others (for example, a bunch of applications used for one domain).

For now, we have to write some scripts around angular-cli in order to do this kind of thing, what seems to me to be a cheap workaround.

angular/angular-cli#10397 is just a first usage example, which would need some more work.

@nweldev nweldev changed the title @angular-devkit/core: Filter project names @angular-devkit: Filter project names May 9, 2018
nlm-pro added 4 commits May 9, 2018 13:25
Permit to filter the list of projects names in a Workspace thanks to
a new, optionnal, filter method.
TargetSpecifier now permit to use a projectFilter as defined in angular-devkit/core in bb6638
As some of the tests introduced by a6767dc was based on the fact that the workspaceJson had only
one project, add the according updates to customWorkspaceJson in order to fix the tests.
nweldev pushed a commit to nweldev/angular-cli that referenced this pull request May 9, 2018
This commit is just a first example for angular#10369, following the discussion started in
angular/devkit#730.
angular/devkit#739 would be needed.
This example would also require some evolutions on @angular-devkit/architect, but I'm
sure there is a way to do this.
filipesilva pushed a commit that referenced this pull request May 10, 2018
…e.json

In a6767dc, a defaultProject was added to workspaceJson in workspace_spec, which hasn't been
synced with tests/@angular_devkit/workspace/angular-workspace.json as expected. This was breaking
the related tests with more than one project, like in #739.
hansl pushed a commit that referenced this pull request May 10, 2018
…e.json

In a6767dc, a defaultProject was added to workspaceJson in workspace_spec, which hasn't been
synced with tests/@angular_devkit/workspace/angular-workspace.json as expected. This was breaking
the related tests with more than one project, like in #739.
@alexeagle
Copy link
Contributor

Sorry @noelmace - this got lost when we moved back to the angular/angular-cli repo. If you still think this pull request is relevant, could you please re-base on that repo and open a new PR there? Thanks and sorry for the extra churn.

@alexeagle alexeagle closed this Sep 5, 2018
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.

5 participants