This template helps you quickly start building Zoho Desk extensions using the Deskblocks library.
- Deskblocks is a Svelte library that provides ready-to-use components and styles for Zoho Desk extensions.
- Recommended tools: Use VS Code with the Svelte extension.
-
Clone the git repository and install the necessary packages:
git clone https://github.com/imohanvadivel/desk-ext-template.git cd desk-ext-template npm i
The template includes Deskblocks, TypeScript definitions, and other utilities, which are automatically installed.
-
Enable developer mode in Zoho Desk to test the extension directly in Desk.
-
Start the development server:
# Runs the server on port 5000 npm run dev # Bundles the files and creates a zip in the dist folder npm run build
Note: On first run, you may need to grant sudo permission to generate a TSL certificate since the development server uses
https
protocol. -
After running the build command, the bundled zip file (
ext.zip
) will be located in thedist
folder. You can upload it directly to Sigma.
-
The
plugin-manifest
,resources.json
, and localization files are in thepublic
directory. You may need to modify them based on your needs. -
Static files (e.g., images) go in the
assets
folder insidepublic
. Use them in your code like this:<img src="assets/img.png" />
-
This template uses Vite under the hood, so you can enjoy all of its benefits like hot module replacement, fast compilation, lazy loading and so on.