Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upfeat(ngcc): support passing a list of entry-points to process #37707
+967
−534
Conversation
a5b968e
to
d993600
The convention in ngcc is to use relative paths rather than `@angular/...` path-mapped paths. This commit changes those.
Similar to the targeted entry-point mode, where we can pass in a single entry-point path as the starting point for processing, this commit adds support for passing in a list of such target entry-points. This is achieved by pointing ngcc at a JSON file that holds the list of paths to the entry-points. These entry-points, and their dependencies, will then be processed by ngcc. The path to the file containing the entry-point paths is configured programmatically by setting the `entryPointListPath` property or via the command line by the `--entry-points-file` option.
This commit changes the simple `TracingEntryPointFinder` hierarchy so that the two relevant parts (`InitialEntryPoints` and `EntryPointsWithDeps`) are now composable. This allows implementation of a more flexible combination of `EntryPointFinder` strategies.
d993600
to
5aafca2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.


petebacondarwin commentedJun 24, 2020
Similar to the targeted entry-point mode, where we can pass in a
single entry-point path as the starting point for processing, this
commit adds support for passing in a list of such target entry-points.
This is achieved by pointing ngcc at a JSON file that holds the list
of paths to the entry-points. These entry-points, and their dependencies,
will then be processed by ngcc.
The path to the file containing the entry-point paths is configured
programmatically by setting the
entryPointListPathproperty or viathe command line by the
--entry-points-fileoption.