Skip to content

Commit e5cc37b

Browse files
committed
Migration to Lit/Typescript of Code Owners
Also show shortened directory names in code-owners Google-Bug-Id: b/237256547,b/241905566 Release-Notes: skip Change-Id: I4d4b3bac9247f34e8710888275a71f85cfb638e4
1 parent 9d6982c commit e5cc37b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+3531
-19149
lines changed

.eslintrc.json

Lines changed: 0 additions & 240 deletions
This file was deleted.

BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ gerrit_plugin(
1919
"Gerrit-HttpModule: com.google.gerrit.plugins.codeowners.module.HttpModule",
2020
"Gerrit-BatchModule: com.google.gerrit.plugins.codeowners.module.BatchModule",
2121
],
22-
resource_jars = ["//plugins/code-owners/ui:code-owners"],
22+
resource_jars = ["//plugins/code-owners/web:code-owners"],
2323
resource_strip_prefix = "plugins/code-owners/resources",
2424
resources = glob(["resources/**/*"]),
2525
deps = [

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,22 @@ rendered
2020

2121
## JavaScript Plugin
2222

23-
For testing the plugin with
23+
From the root of the gerrit repository.
24+
25+
```
26+
bazel test //plugins/code-owners/web:karma_test
27+
```
28+
29+
For testing the plugin with the
2430
[Gerrit FE Dev Helper](https://gerrit.googlesource.com/gerrit-fe-dev-helper/)
25-
build the JavaScript bundle and copy it to the `plugins/` folder:
31+
the command below builds
32+
33+
```
34+
bazel build //plugins/code-owners/web:code-owners
35+
ln -s bazel-bin/plugins/code-owners/web/code-owners.js polygerrit-ui/app/plugins/
36+
```
2637

27-
bazel build //plugins/code-owners/ui:code-owners
28-
cp -f bazel-bin/plugins/code-owners/ui/code-owners.js plugins/
2938

3039
and let the Dev Helper redirect from
3140
`.+/plugins/code-owners/static/code-owners.js` to
32-
`http://localhost:8081/plugins_/code-owners.js`.
41+
`http://localhost:8081/plugins/code-owners.js`.

bower.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)