This project provides a command-line utility for packaging a Launch extension into a zip file. While using this utility is not necessary, it will validate your extension and make an effort to exclude anything from the zip file not necessary for the extension to run properly.
For more information regarding Launch, please visit our product website.
After you have installed Node.js on your machine, you will need to initialize your project. Create a folder for your project if you don't already have one. Inside the folder, run
You will need to provide the information requested on the screen. After this process is complete, you should have a file called
package.json inside your folder.
You will then need to install
@adobe/reactor-packager and save it in your project's
devDependencies by running
npm install @adobe/reactor-packager --save-dev
To build a
package.zip file for your extension, run
node_modules/.bin/reactor-packager from the command line within your project's directory. A zip file should appear in your project's directory.
Rather than type the path to the
reactor-packager script each time you would like the run the packager, you may wish to set up a script alias by adding a
scripts node to your
package.json as follows:
Once this is in place, you may then run the packager by executing the command
npm run package from the command line.