gerrit/polygerrit-ui/Polymer3.md
Tao Zhou 6a0e5931a4 Update samples and docs as Gerrit is now in polymer 3
This also fixed a bug in `screen` as it should always
use current origin instead of plugin assets origin.

Change-Id: I6c7385b20dc5b772000d26e08d82bc76dd2d5691
2020-03-18 11:18:41 +01:00

1.2 KiB

Gerrit in Polymer 3

Gerrit has migrated to polymer 3 as of submitted of submitted of https://gerrit-review.googlesource.com/q/topic:%22bower+to+npm+packages+switch%22+(status:open%20OR%20status:merged).

Polymer 3 vs Polymer 2

The biggest difference between 2 and 3 is the changing of package management from bower to npm and also replaced the html imports with es6 imports so we no longer need templates in separate html files for polymer components.

How that impact plugins

As of now, we still support all syntax in Polymer 2 and most from Polymer 1 with the legacy layer. But we do plan to remove those in the future.

So we recommend all plugin owners to start migrating to Polymer 3 for your plugins. You can refer more about polymer 3 from the related resources section.

To get inspirations, check out our samples here.