Skip to content

build(bazel): add rule for cdk npm package #10509

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 3 commits into from
Mar 22, 2018

Conversation

jelbourn
Copy link
Member

Also:

  • Add missing rules for cdk-tree
  • Temporarily change cdk/keycodes and cdk/coersion to ng_module as a workaround

@jelbourn jelbourn requested review from alexeagle and mmalerba March 20, 2018 23:51
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Mar 20, 2018
# Base rollup globals for dependencies and the root entry-point.
CDK_ROLLUP_GLOBALS = {
'tslib': 'tslib',
'moment': 'moment',
Copy link
Contributor

Choose a reason for hiding this comment

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

Is moment needed for cdk? I think it should only be required for material-moment-adapter

"@angular/bazel": "6.0.0-beta.8",
"@angular/compiler-cli": "6.0.0-beta.8",
"@angular/bazel": "6.0.0-rc.0",
"@angular/compiler-cli": "6.0.0-rc.0",
"@angular/http": "6.0.0-beta.8",
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe you want to update all the @angular/* in lock-step?

Copy link
Member Author

Choose a reason for hiding this comment

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

Can't update the rest due to rxjs 6.0, which we don't have working yet

@@ -1,4 +1,22 @@
# List of all @angular/material components / subpackages.
CDK_PACKAGES = [
Copy link
Contributor

Choose a reason for hiding this comment

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

do you want to try a bit harder to glob these, so adding a new subdirectory will automatically do the right thing?

Copy link
Member Author

Choose a reason for hiding this comment

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

Suggestions? glob can only be used where a list of files is expected, and I don't want to repeat the glob in multiple places. AFAICT, there aren't any skylark APIs that deal with the file system.

# Note: this will need to ng_module if any Angular-specific stuff is added to coercion.
ts_library(

# TODO(jelbourn): change this back to a ts_library once ng_package supports
Copy link
Contributor

Choose a reason for hiding this comment

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

remove the TODO - you need ng_module because you want to produce flat metadata and bundle index which are done by ngc

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@@ -67,7 +67,7 @@ export class StepperSelectionEvent {
moduleId: module.id,
selector: 'cdk-step',
exportAs: 'cdkStep',
templateUrl: 'step.html',
template: '<ng-template><ng-content></ng-content></ng-template>',
Copy link
Contributor

Choose a reason for hiding this comment

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

this wasn't necessary, right? the resource inlining has landed

Copy link
Member Author

Choose a reason for hiding this comment

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

Wasn't necessary, just cleaned it up incidentally since the template was trivial.

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Mar 22, 2018
@andrewseguin andrewseguin merged commit 9091b21 into angular:master Mar 22, 2018
@jelbourn jelbourn deleted the bazel-package branch April 2, 2018 22:32
@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 8, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants