commit | f965d5564ff71c26d52886644fa1f574c95d9d2d | [log] [tgz] |
---|---|---|
author | Aravind Vasudevan <aravindvasudev@google.com> | Fri Feb 18 22:43:46 2022 |
committer | Aravind Vasudevan <aravindvasudev@google.com> | Fri Feb 18 22:43:46 2022 |
tree | 6ec78e090a79b8eac183f780ee6a74e91a9cb497 | |
parent | 5fbc3f5d34679fbb13e5a43e80c34fea98657400 [diff] |
Fix reload changeAction event Change-Id: I76977082f03dee962422f95522cbfb99066b3b1e
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-behavior
For running TypeScript unit tests execute:
bazel test --test_output=all //plugins/chromium-behavior/web:karma_test
For checking or fixing eslint formatter problems run:
bazel test //plugins/chromium-behavior/web:lint_test bazel run //plugins/chromium-behavior/web:lint_bin -- \ --fix "$(pwd)/plugins/chromium-behavior/web"
For testing the plugin with Gerrit FE Dev Helper build the JavaScript bundle and copy it to the plugins/chromium-behavior
folder:
bazel build //plugins/chromium-behavior/web:chromium-behavior cp -f bazel-bin/plugins/chromium-behavior/web/chromium-behavior.js plugins/
Start polygerit-ui server:
./polygerrit-ui/run-server.sh --plugins="plugins"
and let the Dev Helper redirect from .+/plugins/chromium-behavior/static/chromium-behavior.js
to http://localhost:8081/plugins/chromium-behavior.js
.