commit | 6f54688402e663872a6c0719dc6e3bdc106bdbec | [log] [tgz] |
---|---|---|
author | Joanna Wang <jojwang@google.com> | Wed Apr 27 01:44:50 2022 |
committer | Joanna Wang <jojwang@google.com> | Wed Apr 27 01:44:50 2022 |
tree | 6c097b3e66057dfc384b69e4fd23e43974c36532 | |
parent | 3e06c6edf24b1f61c691d8cc7365017666bf0a8a [diff] |
[landingwidget] Add Makefile. Bug: 1319718 Change-Id: I5431a443fdc5b075adfeec508ce5f97aed7f1bfa
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/landingwidget
Run the commands below in web/.
For running 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 build the JavaScript bundle and copies it to the plugins/landingwidget
folder:
make build
and let the Dev Helper redirect from .+/plugins/landingwidget/static/landingwidget.js
to http://localhost:8081/plugins_/plugins/landingwidget.js
.
Note for local testing: this plugin fetches from an external site which may be blocked by CORS policy.