commit | 5d90422ac494ef9d264c2a27b5b79b91dff1ecbb | [log] [tgz] |
---|---|---|
author | Josip Sokcevic <sokcevic@google.com> | Wed Nov 24 18:11:32 2021 |
committer | Josip Sokcevic <sokcevic@google.com> | Wed Nov 24 18:11:32 2021 |
tree | 70b285c8c6289388f8f0f557737c9f9ce90c7b27 | |
parent | 497e15190467f5411c229493f515eff60b5cdef7 [diff] |
Fix reland redirect url R=gavinmak@google.com Fixed: 1273377 Change-Id: Ie363bc8b5a46e8f24fb72896e6eda27cb2b211df
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
.