Upload & versioning
Every upload of your theme is one version. This page explains what yarn build makes, how the version number works and how to upload a change.
What yarn build makes
yarn build
The build empties the build folder and fills it again:
build/
├── solstice-theme.remote-component.v0-0.config.json
├── solstice-theme.remote-component.v0-0.manifest.json
├── solstice-theme.remote-component.v0-0.min.css
├── solstice-theme.remote-component.v0-0.min.js
└── solstice-theme.remote-component.v0.0.1.zip
Upload the .zip. It holds the other four files.
The zip takes its name from name in zoovu.manifest.js and version in package.json: SolsticeTheme 0.0.1 gives solstice-theme.remote-component.v0.0.1.zip.
yarn build doesn't check your code. Run the gates first.
Versions
The version of your theme is the version field in package.json. A new project starts at 0.0.1.
Experience Designer accepts each version of a theme only once. To upload a change, raise the version and build again:
yarn bump-version
yarn build
yarn bump-version raises the last number and prints the change:
Version bumped: 0.0.1 → 0.0.2
To jump to a version such as 1.0.0, edit version in package.json yourself.
If you upload a version that was already uploaded, Experience Designer shows:
Unable to publish component. Component with this version already exists.
Run yarn bump-version, build again and upload the new zip.
Upload
- In Experience Designer, open the Config tab in the right panel and expand ADVANCED OPTIONS.
- Click Upload component. In the dialog, click browse or Upload file and pick the zip. The upload starts at once and the page reloads.
- In the bar under the preview, under Local, click your theme. After an upload the preview is empty until you do.
- Check that Config > Component shows the version you uploaded.
- Click Save and Apply. In "Add notes", click Save and apply.
Each theme has one tile under Local, and it holds the newest version. The first upload has two more steps: see Upload to Experience Designer.