commit | 13d50de1d5ccb09e3d76337eb777180308187482 | [log] [tgz] |
---|---|---|
author | Tao Zhou <taoalpha@google.com> | Wed Feb 12 15:06:35 2020 +0100 |
committer | Tao Zhou <taoalpha@google.com> | Wed Feb 12 15:13:28 2020 +0100 |
tree | d1d7bc7bbc9cbdcace311235c40d37df239b8793 | |
parent | ef5d3c00f5fc780ea77f9f99294629d25c1ba276 [diff] |
Update the way of checking if gerrit is ready As of M80, native support of htmlImports is removed, replaced with polyfill from webcomponentsjs. One of the biggest change is switching from sync to async which will affect quite a lot on how we load plugins. As Gerrit should be ready once header shows up, here replaced the old checking on # of imports to the readiness of #mainHeader Change-Id: I351c4ddb4abf8fb5fb5d5f57bd5986c593357283
Gerrit FE Dev helper is a chrome extension that will focus on helping frontend developers on Gerrit development.
As mentioned in readme from polygerrit-ui, we already support to start your local host for developing / debugging / testing, but it has quite a few restrictions:
To solve these pain points, I created this chrome extension that basically just proxy all assets requests or any requests to local server, and you will have the ability to inject any plugins from local as well.
See in release notes.
npm run build
Then you should have gerrit_fe_dev_helper.zip
that you can test with, or download from chrome web store here: https://chrome.google.com/webstore/detail/gerrit-fe-dev-helper/jimgomcnodkialnpmienbomamgomglkd.
After you installed and enabled the extension, you should see something similar to demo.png.
./polygerrit-ui/run-server.sh
Gerrit dev helper is enabled
), and now your gerrit assets should be loaded from local serverThe extension comes with a set of default rules, but you can change the rules by just clicking the extension icon again.
The extension supports six different type of rules:
The two options of injecting any plugins meant to help you develop your plugins for your gerrit sites.
Please don't hesitate to contact taoalpha@google.com for support on this extension.