Zoovu manifest
zoovu.manifest.js, in the root of your project, tells Experience Designer what your theme is called and how to list it. yarn build reads it, and yarn start reads previewLink from it.
export default {
name: 'SolsticeTheme',
type: 'APPLICATION',
icon: '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32">...</svg>',
label: 'Solstice theme',
previewLink: '',
};
Fields
| Field | What it does |
|---|---|
name | Identifies the theme and names the zip. The build needs it. |
type | Leave it as 'APPLICATION': that is the type of an application theme. |
label | The name Experience Designer lists the theme by. Without it, the build uses the name. |
icon | The icon next to the label, as an inline SVG string. Without it, the build uses an empty icon. |
previewLink | The preview link of the advisor that yarn start shows your theme on. |
name
Write the name in PascalCase, such as SolsticeTheme: letters and digits only, starting with a letter. It must be a JavaScript identifier, so yarn build stops on a name with a dash or a space:
Error: Given name "solstice-theme" is not a legal JS identifier. If you need this, you can try "output.extend: true".
Ignore the hint about output.extend and fix the name.
The zip takes its file name from the name, in lowercase with dashes: SolsticeTheme gives solstice-theme.remote-component.v0.0.1.zip.
previewLink
The link is for development only. yarn build doesn't need it and never puts it in the zip. See Get your preview link.
Where the version lives
The version is not in the manifest. It is the version field of package.json, and yarn bump-version raises it. See Upload & versioning.
Older projects
Projects created with @zoovu/create-remote-component 3.x and earlier use other values of type, and a subType. See Manifest types.