Overslaan naar hoofdinhoud

Building and packaging an app

in Apps
Lijst van auteurs
Gepubliceeerd: 1 feb 2022|Laatst Gewijzigd: 3 jan 2023

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.

BuildingCopy link to Building to clipboard

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.

PackagingCopy link to Packaging to clipboard

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

InstallingCopy link to Installing to clipboard

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.

image.png

BehulpzaamNiet nuttig

0 van 1 mensen vonden deze pagina nuttig

volgende paginaHow-to: Build a basic notes app
vorige paginaDocumentation

Log in of registreer om een reactie te plaatsen.