commit | b5d95f37ea1f37697b76a5d663ff195c35056bf7 | [log] [tgz] |
---|---|---|
author | Joanna Wang <jojwang@google.com> | Wed Apr 27 01:34:31 2022 |
committer | Joanna Wang <jojwang@google.com> | Wed Apr 27 01:34:31 2022 |
tree | d791591609cc22da0ee20a787d73732eefce1f52 | |
parent | c5f513fd5dca18719dd78ad5e370c70fb1b49ec7 [diff] |
[chromium-behavior] Add Makefile. Bug: 1319718 Change-Id: I067a2999963ed47e70d8a512884ab991a8603f6c
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
Run the commands below in web/.
For running TypeScript unit tests execute:
make test
For checking or fixing eslint formatter problems run:
make lint_test make lint_fix
For testing the plugin with Gerrit FE Dev Helper the command below builds the JavaScript bundle and copies it to the plugins/chromium-behavior
folder:
make build
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
.