Convert to TypeScript

Bug: 1262256
Change-Id: Ibd2234d843ca047aa7364ccf4d9b4b7034e6d4fb
5 files changed
tree: 39ce8289fe6ff4727e6b89d4ad1bab7b64b93c5f
  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

For checking or fixing eslint formatter problems run:

bazel test //plugins/chromium-style/web:lint_test
bazel run //plugins/chromium-style/web:lint_bin -- --fix "$(pwd)/plugins/chromium-style/web"

For testing the plugin with Gerrit FE Dev Helper build the JavaScript bundle and copy it to the plugins/chromium-style folder:

bazel build //plugins/chromium-style/web:chromium-style
cp -f bazel-bin/plugins/chromium-style/web/chromium-style.js plugins/chromium-style

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/