gerrit/polygerrit-ui/BUILD
Dmitrii Filippov d97c843ccf Cleanup unused bower components and rules
All unused bower components and rules are removed. Some rules
are not removed because they are used by plugins. We should keep them
until all core plugins get rid of bower components.

Change-Id: I6e6b5a3805fd68e7e438135c9b60e9d732cb8092
2020-02-12 15:42:46 +00:00

35 lines
839 B
Python

load("@io_bazel_rules_go//go:def.bzl", "go_binary")
load("//tools/bzl:genrule2.bzl", "genrule2")
package(default_visibility = ["//visibility:public"])
genrule2(
name = "fonts",
srcs = [
"//lib/fonts:robotofonts",
],
outs = ["fonts.zip"],
cmd = " && ".join([
"mkdir -p $$TMP/fonts",
"cp $(SRCS) $$TMP/fonts/",
"cd $$TMP",
"find fonts/ -exec touch -t 198001010000 '{}' ';'",
"zip -qr $$ROOT/$@ fonts",
]),
output_to_bindir = 1,
)
go_binary(
name = "devserver",
srcs = ["server.go"],
data = [
":fonts.zip",
"@ui_dev_npm//:node_modules",
"@ui_npm//:node_modules",
],
deps = [
"@org_golang_x_tools//godoc/vfs/httpfs:go_default_library",
"@org_golang_x_tools//godoc/vfs/zipfs:go_default_library",
],
)