commit | 34a8148fc840db96997a9a0910a2f6911cc6d336 | [log] [tgz] |
---|---|---|
author | Joanna Wang <jojwang@google.com> | Wed Apr 27 01:22:18 2022 |
committer | Joanna Wang <jojwang@google.com> | Wed Apr 27 01:22:18 2022 |
tree | a2b4fb0479e6e981f34b4872e99ab9a6cccdd1fa | |
parent | b6d7be3818ee3d7e455999cb8b6208958c878402 [diff] |
[chromium-style] Add Makefile. Bug: 1319718 Change-Id: I8ae0f0b78faafea2c7afbf8e1ff3f22d4d23721a
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
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
.
ln -s /path/to/chromium-style.js plugins/