Building and packaging an app is necessary for two main things:
When you first build your app, you'll need to install an app package so you can use developer mode
When you're ready to release a version of your app
Building an app is generally done in two steps, bundling and then compressing as a zip archive.
Building
Assuming that you've used the skeleton app template, you can use the following command to build your app:
pnpm build copy
This will bundle your code, copy assets/entrypoints and provide the app manifest, icon and readme files.
Packaging
After building you'll have a new directory in your app project called /dist
. This will contain your app package - and this is what you must zip to create the app package archive:
pnpm package copy
This will then provide you with an app package in ./build
.
You can also build
and package
in one command:
pnpm build:package copy
Installing
You can install your new app package by first uploading it to Deskpro via Admin > Apps & Integrations > Apps > Available (tab) anc clicking on "Upload App".
Select the app zip archive from your local computer and it will be added to your list of available apps.
Pred objavo komentarja se moraš prijaviti.