commit | 5e4c7d80d5ad7d2573f22b9190c174a4293e6cca | [log] [tgz] |
---|---|---|
author | Ben Rohlfs <brohlfs@google.com> | Mon Oct 04 11:16:27 2021 +0200 |
committer | Ben Rohlfs <brohlfs@google.com> | Mon Oct 04 11:16:27 2021 +0200 |
tree | b6de23a163a84c092e4452c105969a4e9882a64e | |
parent | ebc0948708945f78c989f8397ddd0b0032b7f488 [diff] |
Fix compiler and type safety issues Compiler was complaining about `branch` not being a known property of dataset. We are declaring the interface such that property renaming is prevented during js compilation. Change-Id: I52a032eb94f6c1315ab5d312c1d3fc91707e912f
See src/main/resources/documentation.
For running unit tests execute:
bazel test --test_output=all //plugins/automerger/web:karma_test
For checking or fixing eslint formatter problems run:
bazel test //plugins/automerger/web:lint_test bazel run //plugins/automerger/web:lint_bin -- --fix "$(pwd)/plugins/automerger/web"
For testing the plugin with Gerrit FE Dev Helper build the JavaScript bundle and copy it to the plugins/
folder:
bazel build //plugins/automerger/web:automerger cp -f bazel-bin/plugins/automerger/web/automerger.js plugins/
and let the Dev Helper redirect from .+/plugins/automerger/static/automerger.js
to http://localhost:8081/plugins_/automerger.js
.