style: enforce buildifier lint on CI (#28186)

PR Close #28186
This commit is contained in:
Wassim Chegham
2019-02-26 13:30:44 +01:00
committed by Ben Lesh
parent ce68b4d839
commit dad5a258b8
33 changed files with 60 additions and 111 deletions

View File

@ -23,13 +23,16 @@ load("@build_bazel_rules_nodejs//:defs.bzl", "check_bazel_version", "node_reposi
# Bazel version must be at least v0.21.0 because:
# - 0.21.0 Using --incompatible_strict_action_env flag fixes cache when running `yarn bazel`
# (see https://github.com/angular/angular/issues/27514#issuecomment-451438271)
check_bazel_version("0.21.0", """
check_bazel_version(
message = """
You no longer need to install Bazel on your machine.
Angular has a dependency on the @bazel/bazel package which supplies it.
Try running `yarn bazel` instead.
(If you did run that, check that you've got a fresh `yarn install`)
""")
""",
minimum_bazel_version = "0.21.0",
)
# Setup the Node.js toolchain
node_repositories(

View File

@ -1,12 +1,10 @@
package(default_visibility = ["//visibility:public"])
load("@npm_angular_bazel//:index.bzl", "ng_module")
load("@build_bazel_rules_nodejs//:defs.bzl", "http_server", "nodejs_binary", "rollup_bundle")
load("@build_bazel_rules_nodejs//:defs.bzl", "http_server", "rollup_bundle")
load("@build_bazel_rules_nodejs//internal/web_package:web_package.bzl", "web_package")
load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
package(default_visibility = ["//visibility:public"])
# Allow targets under sub-packages to reference the tsconfig.json file
exports_files(["tsconfig.json"])

View File

@ -5,8 +5,6 @@ load("@npm_bazel_typescript//:defs.bzl", "ts_library")
load("@io_bazel_rules_sass//sass:sass.bzl", "sass_binary")
load("@npm_angular_bazel//:index.bzl", "ng_module", "ng_package")
package(default_visibility = ["//visibility:public"])
sass_binary(
name = "hello-world-styles",
src = "hello-world.component.scss",