Skip to content

Commit

Permalink
chore: add buildifier target, run buildifier
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard committed Mar 22, 2024
1 parent a962156 commit 120e1ef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 8 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ gazelle(
gazelle = "gazelle_bin",
)

buildifier(
name = "buildifier",
exclude_patterns = ["./.git/*"],
lint_mode = "fix",
mode = "fix",
tags = ["manual"], # tag as manual so windows ci does not build it by default
)

buildifier(
name = "buildifier.check",
exclude_patterns = [
Expand Down
8 changes: 6 additions & 2 deletions e2e/smoke/src/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ webpack_bundle(

# Validates that args are properly expanded when
# a format string is passed
entryPointFile = 'entry-point.js'
entryPointFile = "entry-point.js"

webpack_bundle(
name = "bundle-entry-args-v5",
args = ['--entry', '$(rootpath {})'.format(entryPointFile)],
srcs = ["entry-point.js"],
args = [
"--entry",
"$(rootpath {})".format(entryPointFile),
],
node_modules = "//v5:node_modules",
)

Expand Down

0 comments on commit 120e1ef

Please sign in to comment.