0d4ea73587
In addition build bower_components.zip and fonts.zip: these are not implicitly generated by the bazel build, so they have to be built explicitly. Tested: 1) Ran rm -rf bazel-bin/polygerrit-ui/polygerrit_components.bower_components.zip && \ rm -f bazel-bin/polygerrit-ui/fonts.zip && \ bazel build polygerrit && \ $(bazel info output_base)/external/local_jdk/bin/java \ -jar bazel-bin/polygerrit.war daemon --polygerrit-dev \ -d ../gerrit_testsite --console-log --show-stack-trace verified that test site loaded. Change-Id: I3e220eed06bc956956095b946aafb20539ee4acd
43 lines
1.0 KiB
Python
43 lines
1.0 KiB
Python
package(
|
|
default_visibility=["//visibility:public"]
|
|
)
|
|
|
|
load("//tools/bzl:js.bzl", "bower_component_bundle")
|
|
load('//tools/bzl:genrule2.bzl', 'genrule2')
|
|
|
|
bower_component_bundle(
|
|
name = "polygerrit_components.bower_components",
|
|
deps = [
|
|
'//lib/js:es6-promise',
|
|
'//lib/js:fetch',
|
|
# TODO(hanwen): this is inserted separately in the UI zip. Do we need this here?
|
|
'//lib/js:highlightjs',
|
|
'//lib/js:iron-autogrow-textarea',
|
|
'//lib/js:iron-dropdown',
|
|
'//lib/js:iron-input',
|
|
'//lib/js:iron-overlay-behavior',
|
|
'//lib/js:iron-selector',
|
|
'//lib/js:moment',
|
|
'//lib/js:page',
|
|
'//lib/js:polymer',
|
|
'//lib/js:promise-polyfill',
|
|
])
|
|
|
|
|
|
genrule2(
|
|
name = 'fonts',
|
|
cmd = ' && '.join([
|
|
'mkdir -p $$TMP/fonts',
|
|
'cp $(SRCS) $$TMP/fonts/',
|
|
'cd $$TMP',
|
|
"find fonts/ -exec touch -t 198001010000 '{}' ';'",
|
|
'zip -qr $$ROOT/$@ fonts',
|
|
]),
|
|
srcs = [
|
|
'//lib/fonts:sourcecodepro',
|
|
],
|
|
outs = ['fonts.zip',],
|
|
visibility = ['//visibility:public'],
|
|
output_to_bindir = 1,
|
|
)
|