Skip to content
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

build: use Bazel from npm #14170

Merged
merged 5 commits into from
Apr 22, 2019
Merged

build: use Bazel from npm #14170

merged 5 commits into from
Apr 22, 2019

Conversation

alexeagle
Copy link
Contributor

Also hook up bazel format/lint

@@ -20,6 +20,10 @@
],
"scripts": {
"admin": "node ./bin/devkit-admin",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: would be nice to have "bazel": "bazel",

Copy link
Member

Choose a reason for hiding this comment

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

npx bazel?

Copy link
Contributor

Choose a reason for hiding this comment

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

Having the script proper is better I feel. It makes it pretty obvious that it's the right way of using bazel, whether via yarn or npm, and it's more ergonomic for scripts too. I don't know if all the docker images we use have npx either, but I guess they would.

Copy link
Member

Choose a reason for hiding this comment

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

It comes with npm. If you’re only using yarn you should be able to just do ‘yarn bazel’

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah you can yarn bazel if you want to pick your targets.

@alexeagle alexeagle force-pushed the update_bazel branch 3 times, most recently from 1a3d1e9 to 2a7dbd3 Compare April 15, 2019 19:00
@alexeagle alexeagle force-pushed the update_bazel branch 3 times, most recently from 19df2c2 to 84a57fe Compare April 15, 2019 23:21
@alexeagle alexeagle added the target: major This PR is targeted for the next major release label Apr 16, 2019
Copy link
Contributor

@filipesilva filipesilva left a comment

Choose a reason for hiding this comment

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

Mostly LGTM, a few requests.

.circleci/config.yml Show resolved Hide resolved
@@ -73,6 +73,14 @@ const ignoredPackages = [
'[email protected]', // Apache-2.0 but broken license in package.json
'[email protected]', // zlib license

// * Need to publish these with LICENSE files
// see https://github.com/bazelbuild/rules_nodejs/pull/696
Copy link
Contributor

Choose a reason for hiding this comment

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

bazel-contrib/rules_nodejs#696 is now merged, can we get a release that removes this TODO?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

well, the npm version numbers for the bazel packages are identical to the upstream version numbers. If I publish @bazel/[email protected] it will be confusing since the latest is https://github.com/bazelbuild/bazel/releases/tag/0.24.1

var_1: &docker_image circleci/node:10.12
var_2: &cache_key angular_devkit-0.10.0-{{ checksum "yarn.lock" }}
var_1: &default_docker_image circleci/node:10.12
var_2: &browsers_docker_image circleci/node:10.12-browsers
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this needed? We use puppeteer for our e2e tests so I didn't expect it to be necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sadly headless chrome still requires dynamic linked dependency on libx11 which is pretty lame. We should raise with the Chrome team.

@alexeagle alexeagle merged commit a197615 into angular:master Apr 22, 2019
@alexeagle alexeagle deleted the update_bazel branch April 22, 2019 15:38
@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 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants