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/