Last Updated:
September 27, 2021
by
Muskan Purohit
| Version: 6
| 2,202 views
| 0 followers
members are following updates on this item.
@igloosoftware/ig-deploy is an npm module that automates the deployment of Widgets and Themes - @igloosoftware/ig-deploy on npm
After creating a local directory for your new project, run the following command inside the newly created directory:
#!/bin/sh
# This will install ig-deploy into your project directory
npm install --save @igloosoftware/ig-deploy
Next, create a file named credentials.json in the root of your project directory, with the following contents:
{
"account": "",
"key": "",
"url": "https://myigloorepo.blob.core.windows.net/",
"environment": "<friendlyName>",
"provider": "azure"
}
You must enter the credentials of your Igloo-provided Azure repository into this JSON file for the ig-deploy tool to work. The field mappings are as so:
That’s it! You’re all set up and ready to go.
Note: Follow this guide to build an Igloo widget: Hello World example for the Integrations Widget
When you are ready to deploy your custom widget, the dist sub-directory of your project directory should look like this:content.html
integration.json
thumbnail.png
thumbnailx2.png
(Fig. 4.1) Your custom widget assets.
Follow the article to create your own theme, hosted in Azure, available in your Igloo community via the Theme Library.