Skip to content

build: group examples by package and entry-point name #16822

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 20, 2019

Conversation

devversion
Copy link
Member

@devversion devversion commented Aug 19, 2019

Groups the examples by package and entry-point name. This
allows us have a bazel build target for each group and also
allows us to separate MDC prototypes from standard implementations.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Aug 19, 2019
@devversion devversion force-pushed the build/restructure-examples branch 3 times, most recently from f2afdcd to 08cee99 Compare August 19, 2019 22:23
Groups the examples by package and entry-point name. This
allows us have a bazel build target for each group and also
allows us to separate MDC prototypes from standard implementations.
@devversion devversion force-pushed the build/restructure-examples branch from 08cee99 to 4cf8325 Compare August 20, 2019 08:24
@devversion devversion added pr: merge safe target: patch This PR is targeted for the next patch release and removed in progress labels Aug 20, 2019
@devversion devversion marked this pull request as ready for review August 20, 2019 08:50
@devversion devversion requested a review from jelbourn as a code owner August 20, 2019 08:51
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

EXAMPLE_PACKAGES = [
# TODO(devversion): try to have for each entry-point a bazel package so that
# we can automate this using the "package.bzl" variables.
"//src/material-examples/cdk/a11y",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For a follow-up, we should probably split this is into src/material-examples and src/cdk-examples

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that was one of the ideas when I made separate directories 😄 It just involves a bit more work for now since our docs only expect one examples package right now.

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Aug 20, 2019
@jelbourn jelbourn merged commit d3a9a20 into angular:master Aug 20, 2019
andrewseguin pushed a commit that referenced this pull request Aug 26, 2019
Groups the examples by package and entry-point name. This
allows us have a bazel build target for each group and also
allows us to separate MDC prototypes from standard implementations.

(cherry picked from commit d3a9a20)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants