-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[INTERNAL] ProjectGraph: Refactor API
Refactor some methods based on current usage. * Internal: Use Maps and Sets instead of objects and arrays * Rename several methods * Traversal callbacks: Provide array of dependency names instead of a getDependency() function. Most consumers only need the names. Corresponding projects can be easily retrieved via getProject() * Traversal callbacks: Callback can be synchronous. Before, we required a promise to be returned. Many consumers actually do not need to perform async tasks * Add a method for retrieving the names of all projects in the graph. This is a common requirement * Add a method for retrieving the number of projects in the graph. This is also a common requirement * join: Fix taking over optional dependencies and correspoinding flag * addProject: Remove option to ignore duplicates. This was never used
- Loading branch information
1 parent
510ccd7
commit 277d590
Showing
8 changed files
with
290 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.