bazel: generate polygerrit_ui.zip.

Tested:
  verified that polygerrit-ui/app:polygerrit_ui zip contain same files
  for bazel and buck.

Change-Id: I5fb1abbc6e68a593d6af0b7b1811608eb11f7e4c
This commit is contained in:
Han-Wen Nienhuys
2016-10-20 14:26:11 +02:00
parent b57bc7b36b
commit 3254ec7492
5 changed files with 74 additions and 46 deletions

View File

@@ -10,6 +10,7 @@ bower_component_bundle(
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',
@@ -21,17 +22,3 @@ bower_component_bundle(
'//lib/js:polymer',
'//lib/js:promise-polyfill',
])
genrule2(
name = 'fonts',
cmd = ' && '.join([
'cd $$TMP; for file in $(SRCS); do unzip -q $$ROOT/$$file; done',
'zip -q $$ROOT/$@ *',
]),
srcs = [
'//lib/fonts:sourcecodepro.zip',
],
out = 'fonts.zip',
visibility = ['//visibility:public'],
)