commit | 303fc7c8eb4f26f99fec543cd85079ecca2c2390 | [log] [tgz] |
---|---|---|
author | Ben Rohlfs <brohlfs@google.com> | Mon Sep 20 15:21:47 2021 +0200 |
committer | Ben Rohlfs <brohlfs@google.com> | Tue Sep 21 11:46:39 2021 +0200 |
tree | 36cc013215142a5d6686b4e7fa3b2462ddb65e6f | |
parent | 7dce6f70611cd8dbf1d38628698155258ee8ef82 [diff] |
Apply new web plugin code layout to delete-project And add basic karma testing capabilities. Change-Id: Ib9742c79da68cc9426afd3d2947b9f6ce8be9631
A plugin which allows projects to be deleted from Gerrit via an SSH command, REST API or the Project settings screen.
For running unit tests execute:
bazel test --test_output=all //plugins/delete-project/web:karma_test
For checking or fixing eslint formatter problems run:
bazel test //plugins/delete-project/web:lint_test bazel run //plugins/delete-project/web:lint_bin -- --fix "$(pwd)/plugins/delete-project/web"
For testing the plugin with Gerrit FE Dev Helper build the JavaScript bundle and copy it to the plugins/
folder:
bazel build //plugins/delete-project/web:gr-delete-repo cp -f bazel-bin/plugins/delete-project/web/gr-delete-repo.js plugins/
and let the Dev Helper redirect from .+/plugins/delete-project/static/gr-delete-repo.js
to http://localhost:8081/plugins_/gr-delete-repo.js
.