To install the linter:
npm install -g polylint
To run the linter:
bazel test //polygerrit-ui/app:polylint_test
Change-Id: I552f6eedce0e4e90d394acfc516940a8c26e948f
java should be invoked from $(bazel info output) root. There is no
guarantee that $(which java) is compatible with the JDK that bazel
uses.
Change-Id: I339e4011fd2c84d2e8dd3d4e66730159ca625bbb
Build and extract bower_components to the local directory from
buck-out. This is easier than modifying server.go to serve from a zip
file.
Running `bower install` before server.go was the last remaining usage
of bower.json, so we can just remove it.
Change-Id: Ic4717a3a1652ad08e1cef871c0a207c2c382aa35
Since Buck has no native support for web tests, wrap the tests in a
Python shim that calls wct. As in other Polymer cases, we need to
prepare a set of inputs and create a directory containing exactly what
wct expects to be there. Buck exposes resources to python_tests using
the pkg_resources API, which is cumbersome to use, and easier just to
ship around zip files as we do elsewhere.
Unlike other npm binaries we've encountered, the web-component-tester
module has numerous native dependencies, up to and including Selenium.
Rather than get in the game of distributing platform-specific
binaries, punt and require `wct` to be on the user's $PATH for now.
Tests are currently excluded in .buckconfig but can be run directly
with either:
buck test //polygerrit-ui/app:polygerrit_tests
buck test --include web
Change-Id: Ia314213925ac27ff271374a96ed539fb2acf0187
This is the beginnings of an experimental new non-GWT web UI developed
using a modern JS web framework, http://www.polymer-project.org/. It
will coexist alongside the GWT UI until it is feature-complete.
The functionality of this change is light years from complete, with
a full laundry list of things that don't work. This change is simply
meant to get the starting work in and continue iteration afterward.
The contents of the polygerrit-ui directory started as the full tree of
https://github.com/andybons/polygerrit at 219f531, plus a few more
local changes since review started. In the future this directory will
be pruned, rearranged, and integrated with the Buck build.
Change-Id: Ifb6f5429e8031ee049225cdafa244ad1c21bf5b5