Building and Publishing Your Visualization
Once your visualization is complete and ready for deployment to Galaxy, you can publish it to npm and submit a pull request to the Galaxy development repository.
Configure the Package Name and Files
- Open the
package.jsonfile in your project. - Update the
namefield to specify a unique package name. - Adjust the
versionfield if needed. - Ensure that the following section is in your
package.json:
json
"files": ["static"]Build the Package
To build your package to npm, run the following commands from your project’s root directory:
bash
npm run buildPublish to npm
Verify that the static directory includes your XML file, a logo.svg, bundled JavaScript and CSS files, and other assets as required. To publish your package to npm, run the following command from your project’s root directory:
bash
npm publish --access public