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
yarn
to install dependencies - Run
yarn dev
to 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.json
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/data.ts
All code sections:
- between:
// BOLT-UXP_VARIABLE_START
and// BOLT-UXP_VARIABLE_END
or<!-- BOLT-UXP_VARIABLE_START -->
and<!-- BOLT-UXP_VARIABLE_END -->
or{/* BOLT-UXP_VARIABLE_START */}
and{/* BOLT-UXP_VARIABLE_END */}
- before:
// BOLT-UXP_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-UXP_REACT_ONLY
, // BOLT-UXP_PHOTOSHOP_ONLY
, etc.)
-
If
vite-uxp-plugin
has any changes, update and publish in npm -
If
bolt-uxp
has any changes, update and publish in npm (include latestvite-uxp-plugin
version in thepackage.json
file) -
If
create-bolt-uxp
has any changes, update and publish in npm (include latestbolt-uxp
version in thepackage.json
file)