Han-Wen Nienhuys
3dede1653a
bower2bazel: don't specify versions for non-seed packages.
...
The 'seed' packages are the ones whose versions are set by us in
WORKSPACE. We should not set the versions for the rest of the packages
in the bower input JSON, so bower can suggest the right versions to
use.
Change-Id: I9b75f16655d049e2064726862980a339c91dd534
2017-02-01 13:33:55 +01:00
David Ostrovsky
fa18907d7f
Bazel: Reformat build files
...
Reformat the Bazel build files with the buildifier tool [1].
The style is different for Bazel files. Most notably, indentation level
is 4 spaces instead of 2, and " is used instead of '.
[1] https://github.com/bazelbuild/buildifier
Change-Id: I95c0c6f11b6d76572797853b4ebb5cee5ebd3c98
2016-12-07 11:33:07 +00:00
Han-Wen Nienhuys
246f928887
bazel: update bower packages.
...
Change-Id: I1672018089db8df90f52416f532436b387c242cb
2016-11-03 13:01:39 +01:00
Han-Wen Nienhuys
29cced5e29
bazel: remove 'out' attribute from genrule2, and use throughout.
...
This centralizes the OSX mktemp solution.
Change-Id: Iaab18450146b649245b36865bedc5d7b50d1aa07
2016-11-02 13:54:10 +01:00
Han-Wen Nienhuys
3254ec7492
bazel: generate polygerrit_ui.zip.
...
Tested:
verified that polygerrit-ui/app:polygerrit_ui zip contain same files
for bazel and buck.
Change-Id: I5fb1abbc6e68a593d6af0b7b1811608eb11f7e4c
2016-10-24 11:19:20 +02:00
Han-Wen Nienhuys
36502628b7
bazel: add rules for vulcanize & crisper, and use them in //polygerrit-ui/app.
...
Change-Id: Icaa15889f9963464897742c5003bbf0b15c56ffd
2016-10-06 14:01:05 +02:00
Han-Wen Nienhuys
28e7a6d3fe
bazel: bower support
...
* npm_binary (download tarball packaged npm apps)
* bower_archive (download a zip file, to be put in WORKSPACE)
* bower_component (defining a bower library, with dependency )
* bower_component_bundle (zipping up libraries together)
* js_component (insert plain js file into bower component bundle)
* bower2bazel.py: run bower to find dependencies, generate a .bzl to
define archives and define components
Tested:
python tools/js/bower2bazel.py -w lib/js/bower_archives.bzl -b \
lib/js/bower_components.bzl
bazel build polygerrit-ui:components
unzip -v bazel-bin/polygerrit-ui/components.zip > /tmp/baz
buck build polygerrit-ui:polygerrit_components
unzip -v buck-out/gen/polygerrit-ui/polygerrit_components/polygerrit_components.bower_components.zip > /tmp/buck
diff /tmp/buck /tmp/baz
The diff corresponds to newer file versions pinned through bower2bazel.
Change-Id: I4f33914d4853bcf8afe78b4719d0e0e83b139031
2016-09-29 13:18:19 +02:00