The bolt-uxp package is both the root folder of the monorepo and an npm package in itself to be used by the create-bolt-uxp package.
The create-bolt-uxp package is a CLI tool that is used to create a new project from the bolt-uxp template.
The vite-uxp-plugin package is a Vite plugin that brings all the features needed for building UXP Plugins with Bolt UXP.
If you'd like to develop the core templates of Bolt UXP in order to contribute by submitting a PR, you can do so by following these steps:
- Clone the repo
- Run
yarnto install dependencies - Run
yarn devto start the dev server
To test the different frameworks (React, Vue, Svelte), enable the corresponding <script /> tag in index.html and disable the others.
Root directory is in the main bolt-uxp folder.
package.framework.jsonc for the framework is copied and renamed to package.json in the root directory (e.g. package.react.json)
File includes and excludes for each template can be found in create-bolt-uxp/src/index.ts
All code sections:
- between:
// BOLT_VARIABLE_STARTand// BOLT_VARIABLE_ENDor<!-- BOLT_VARIABLE_START -->and<!-- BOLT_VARIABLE_END -->or{/* BOLT_VARIABLE_START */}and{/* BOLT_VARIABLE_END */} - before:
// BOLT_VARIABLE_ONLY
Are removed if the variable doesn't match the framework (e.g. React, Vue, Svelte), app (e.g. PhotoShop, InDesign, etc.), or feature (e.g. Hybrid) selected.
Note: Swap VARIABLE with the variable name (e.g. // BOLT_REACT_ONLY, // BOLT_PHXS_ONLY, etc.)
For more info on how templating works, refer to the Meta Bolt respository: meta-bolt
-
If
vite-uxp-pluginhas any changes, update and publish in npm -
If
bolt-uxphas any changes, update and publish in npm (include latestvite-uxp-pluginversion in thepackage.jsonfile) -
If
create-bolt-uxphas any changes, update and publish in npm (include latestbolt-uxpversion in thepackage.jsonfile)