Packaging for Developer Distribution
To get your App Builder app listed for Adobe Developer Distribution, you will need to package it.
The aio app pack
command will verify and bundle your app. In the root of your app folder, run this command:
Copied to your clipboardaio app pack
After this command completes running, you can find the app package in your app folder as: dist/app.zip
.
App Validation
app.config.yaml
- will be checked if it is in a valid format, and will show specific config errors for you to fix, if necessary
package.json
version- application version format must be
X.Y.Z
, where X, Y, and Z are non-negative integers
- application version format must be
- files to be packaged. All the files in your app folder will be packaged EXCEPT:
- files specified in
.gitignore
- files specified in
.npmignore
- any
dist
folders - any dot files (.env, .gitignore, etc)
- any OS junk files (.DS_Store, thumbs.db, etc)
- files specified in
- event registrations will be validated (if any)
Hooks
Two new hooks have been added for this command, and will run before and after the command is run (respectively):
- pre-pack
- post-pack
Your hook handler function will be passed two items:
appConfig
(object) - this contains the config of the current applicationartifactsFolder
(string) - this will be the location of the folder containing all the packaging artifacts that will be bundled