commit | 810cf5cfe8037c5d59d7f86c9192e72fa7c29e73 | [log] [tgz] |
---|---|---|
author | Antoine Musso <hashar@free.fr> | Fri Jul 07 16:55:06 2023 +0200 |
committer | Antoine Musso <hashar@free.fr> | Fri Jul 07 17:08:40 2023 +0200 |
tree | a6c23866b52861de9bf66c85dbafc355e79b300a | |
parent | 49cc3330fea7355a840a3db89518c2f57af477f7 [diff] |
Improve README.md build instructions and more I got a little confused as to setup the symlink since that is the first time I encounter a polygerrit plugin. I went to remove some ambiguity and give the full command to symlink the plugin package.json into the Gerrit tree. Additionally: * stop refering to Resemble.JS version number in the README.md since it did not get bumped the last few times the library got upgraded. * Remove Jack Zheng Github URL since it nowadays yields a 404. Change-Id: Ifb18747a74308e5c69eafd46cecf7a1e52367b67
A plugin that provides a rich image diffing experience in PolyGerrit. Currently, the plugin features two modes: Highlight Mode and Onion Skin.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
The build requires to be done from an existing Gerrit tree. All commands below are relative to the root of a copy of Gerrit.
image-diff
repository into the plugins
folder of the gerrit
repo, or link the image-diff
plugin folder to gerrit/plugins
folder.plugins/package.json
with the plugin package.json:ln --symbolic --force image-diff/package.json plugins/package.json
You can remove all depDependencies
from plugins/package.json
as they are not needed for the build (they are only needed for running wct tests).
bazel build plugins/image-diff
This mode uses the Resemble.JS library.
The following features are included in this mode:
Onion Skin mode is a great way for users to notice changes in the images that might be overlooked when you look at them side by side. By overlaying the new image on top of the old image, the users can change the opacity to see the transition that were made.
The following features are included in this mode:
This plugin uses polymer-cli to test.
Inside your image-diff repo, run polymer serve
to start a local web server and open localhost:8080/test
to view your tests. See here for more info.
Or run npm run wct-test
to run all your tests.
Reference here on how to set up your Gerrit testsite and here for PolyGerrit plugin development.