Lifecycle of a theme or plugin
Lifecycle concepts for Built.js themes and plugins.
Themes and plugins follow the same lifecycle:
Creation
The theme or plugin is created in two ways:
- using these commands:
newcommand (e.g.npx create-built-app new theme)definecommand to leverage AI to create a sitemapdesigncommand which uses AI to create the files for the theme, including the styled React components
- manually created:
- Defined through the Theme Designer in Built Studio
- Exported from the studio
- React components manually designed in the exported theme
Export (for manual theme/plugin creation only)
When you export the theme or plugin from Built Studio, it is exported as a zip file download. Included is a config folder and a README file with instructions on how to setup and run the theme/plugin as a Next.js project.
Development
You develop the React components and publish the theme or plugin to Built Studio by running npx create-built-app publish. If all is well with the theme/plugin configuration, it can then be used to make sites with.
Update
You can update a theme's plugins by running npx create-built-app update. After updating, you can republish to Built Studio.
Deletion
If you don't want the theme/plugin anymore, you can simply delete it in Built Studio.