[chromium-style] Add Makefile.

Bug: 1319718
Change-Id: I8ae0f0b78faafea2c7afbf8e1ff3f22d4d23721a
2 files changed
tree: a2b4fb0479e6e981f34b4872e99ab9a6cccdd1fa
  1. web/
  2. codereview.settings
  3. LICENSE
  4. OWNERS
  5. README.md
README.md

Chrome/Chromium style theme for Gerrit

Setup

This plugin must be placed inside the Gerrit plugins directory:

git clone --recurse-submodules https://gerrit.googlesource.com/gerrit
cd gerrit/plugins
git clone https://chromium.googlesource.com/infra/gerrit-plugins/chromium-style

Web Plugin Development

Run the commands below in web/.

For checking or fixing eslint formatter problems run:

make lint_test
make lint_fix

For testing the plugin with Gerrit FE Dev Helper the following command builds the JavaScript bundle and copies it to the plugins/chromium-style folder:

make build

Start polygerit-ui server:

./polygerrit-ui/run-server.sh --plugins="plugins"

and let the Dev Helper redirect from .+/plugins/chromium-style/static/chromium-style.js to http://localhost:8081/plugins_/chromium-style/chromium-style.js,

.+/plugins/chromium-style/web/chromium_logo.png to http://localhost:8081/plugins_/chromium-style/web/chromium_logo.png, and

.+/plugins/chromium-style/web/chrome_logo.png to http://localhost:8081/plugins_/chromium-style/web/chrome_logo.png.

To use with the local testsite

ln -s /path/to/chromium-style.js plugins/