-
Notifications
You must be signed in to change notification settings - Fork 6.8k
build: examples not working in dev app #17166
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
Conversation
af3b7ea
to
46d32b8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason the cdk-experimental
and material-experimental
examples were under the the non-experimental package was that we don't need to handle more rollup globals in the examples. Though I agree that it is more clean to move them under {cdk,material}-experimental
.
Also on a note: I don't think that any examples will be used by accident. We still need to explicitly wire them up in the docs.
Anyway, the change in general looks good, but it looks like you forgot the rollup globals for the examples in the packages.bzl
. Can you add the ones for the experimental packages? otherwise the docs-content will be broken. Validation for these is planned in #17108.
Fixes a couple of issues related to examples in the dev app: 1. The path mappings for all the new example entry points (e.g. `@angular/material-examples/material/button`) weren't being configured in the System config which meant that any page that consumes any of the examples would break. These changes make it so that whenever we configure a new entry point we automatically configure its examples. 2. The `popover-edit` examples were placed under the stable `cdk` and `material` example packages which is incorrect, because `popover-edit` itself is still experimental. These changes add new `cdk-experimental` and `material-experimental` packages under `material-examples` for consistency with the rest of the repo and so that we don't end up accidentally publishing these examples.
46d32b8
to
e316c34
Compare
Updated the Rollup globals to include the experimental packages. Also FWIW, what I meant with exposing something by accident is that if we decided in the future to just render out all available examples rather than maintaining the list manually. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
srcRunfilePath + '/' + pkgName + '/' + entryPoint; | ||
packagesConfig[srcRunfilePath + '/' + pkgName + '/' + entryPoint] = {main: 'index.js'}; | ||
} | ||
var name = entryPoint ? pkgName + '/' + entryPoint : pkgName; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This certainly helps simplify things 👍
Fixes a couple of issues related to examples in the dev app: 1. The path mappings for all the new example entry points (e.g. `@angular/material-examples/material/button`) weren't being configured in the System config which meant that any page that consumes any of the examples would break. These changes make it so that whenever we configure a new entry point we automatically configure its examples. 2. The `popover-edit` examples were placed under the stable `cdk` and `material` example packages which is incorrect, because `popover-edit` itself is still experimental. These changes add new `cdk-experimental` and `material-experimental` packages under `material-examples` for consistency with the rest of the repo and so that we don't end up accidentally publishing these examples. (cherry picked from commit 0b72461)
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Fixes a couple of issues related to examples in the dev app:
@angular/material-examples/material/button
) weren't being configured in the System config which meant that any page that consumes any of the examples would break. These changes make it so that whenever we configure a new entry point we automatically configure its examples.popover-edit
examples were placed under the stablecdk
andmaterial
example packages which is incorrect, becausepopover-edit
itself is still experimental. These changes add newcdk-experimental
andmaterial-experimental
packages undermaterial-examples
for consistency with the rest of the repo and so that we don't end up accidentally publishing these examples.