-
Notifications
You must be signed in to change notification settings - Fork 5
Packaging and Deploying Zimlets
To deploy in development:
- Run
zimlet watch
to start azimlet-cli
development server, and observe the URL printed by thewatch
command (e.g.https://localhost:8081/index.js
). - Navigate to the route of
/sdk/zimlets
on yourzm-x-web
development server (e.g.https://localhost:8080/sdk/zimlets
)*. - Enter a unique name into the "name" input box, and then the URL printed by the
zimlet-cli
development server from Step 1. - Press "Load Zimlet".
- NOTE: The server will need the zm-x-zimlet-sideloader enabled for this route to appear.
The Zimlet should now be running, and if the persist
checkbox is checked it will be reloaded when the page reloads.
If loading fails, navigate to your Zimlet URL and make sure the Certificate has been accepted.
After completing a Zimlet, it can be packaged into a zip
file and then deployed to the Zimbra server using the Zimbra Administration Console. Run the following in the Zimlet's working directory:
zimlet build
zimlet package
When building, you can add a '--publicpath' option. This allows to you specify the path from which your zimlet downloads its assets (which could include font files, images etc.). This option is not mandatory. If not specified 'publicpath' defaults to '/'.
zimlet build --publicpath "custom/path/here"
When packaging, read through the options, and determine what you must enter for --name
, --pkg-version
, --description
, and --zimbraXVersion
. For example:
zimlet package --name "com_example_my-zimlet" --description "My First Zimlet" --pkg-version 1.0.0 --zimbraXVersion ">=0.0.1"
- The
package
command will output azip
file that can be deployed as follows:
- From the Administration Console: Managing Zimlets from the Administration Console.
- From the command line: zmzimletctl
When packaging a Zimlet, the Zimlet MUST specify a value for --zimbraXVersion
. This version will tell the Zimbra X client which version of the client it is compatible with. That makes it possible for the Zimbra X to maintain semantic versioning for Zimlets; and a breaking change to Zimbra X will cause a Zimlet to not load itself.
To be compatible with ANY version, set zimbraXVersion
to >=0.0.1
- Home
- Client Tool
- Getting Started
- Creating Your Zimlet
- Zimlet Design Patterns
- Advanced