All Products
Search
Document Center

SuperApp:Package, build, and publish your miniapp

Last Updated:Oct 25, 2024

If the preview of your miniapp meets your expectations, you can use Visual Studio Code to package and build the miniapp and use Application Open Platform to publish the miniapp. This topic describes how to package, build, and publish your miniapp.

  1. Click Publish Miniapp. The extension automatically calls the server API, calculates the latest version number of the miniapp based on the return value of the API, and then updates it to package.json. The following figure shows how to publish a miniapp.Screen Shot 2022-11-30 at 7

  2. The system automatically runs the npm run build command to package the miniapp project. After the miniapp project is packaged, the build artifact is automatically compressed. Then, the compressed artifact package is uploaded and published. After the miniapp is published, the following message is displayed.

    image

    Note

    The default storage path for the build artifact is dist. The storage path can be configured in the extension.