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
..
2016-09-28 04:57:42 +08:00
2016-06-14 21:12:02 +02:00
2016-09-20 13:47:12 +02:00
2016-06-14 21:12:02 +02:00
2016-09-19 16:57:16 +02:00
2016-09-29 13:18:19 +02:00
2016-06-14 21:12:02 +02:00
2016-09-28 04:57:42 +08:00
2016-09-28 04:57:42 +08:00
2016-09-26 16:42:38 +08:00
2016-09-23 14:20:15 +02:00
2016-09-23 14:20:13 +02:00
2016-09-21 19:52:53 +00:00
2016-09-28 04:57:42 +08:00
2016-09-23 15:26:03 +02:00