-
Notifications
You must be signed in to change notification settings - Fork 42
Building Plugins
1000TurquoisePogs edited this page Nov 25, 2019
·
11 revisions
Plugins can have any build process desired as long as it doesn't conflict with the packaging structure. That is to say, your source code can be anywhere as long as the /web folder contains static web content, and the /lib folder contains server files, etc.
However, many plugins do follow a similar build process, which is described here.
- Set the environment variable MVD_DESKTOP_DIR to /zlux-app-manager/virtual-desktop
Example:
export MVD_DESKTOP_DIR=/home/john/zowe/zlux-app-manager/virtual-desktop
- Go to the plugin's directory. If
webClient
exists, go into it. If not, skip this section. - Run
npm install
to install dependencies. Check for successful return code. - Run
npm run build
to build, which generates content within /web. Check for success.
- Go to the plugin's directory. If
nodeServer
exists, go into it. If not, skip this section. - Run
npm install
to install dependencies. Check for successful return code. - Run
npm run build
to build, which generates content within /lib. Check for success.