Sitecore XM Cloud Extensions is a browser extension that improves Sitecore XM Cloud user experience.
It is a work in progress with only one feature for the moment.
- Connecting XM Cloud Pages to your local XM Cloud instance
Download the extension on the marketplaces:
- Chrome: https://chromewebstore.google.com/detail/sitecore-xm-cloud-extensi/pkonhbljhhbhbdjkacgmafheaebijmjh
Support for other browsers will be added in the future.
Questions, suggestions and contributions are welcome in the form of GitHub issues and pull requests. Please sync with the author before starting any feature in case they already started a similar feature.
The NPM scripts are adapted to work on Windows.
Install dependencies via:
npm install
then start a browser with the web extension installed:
# run Chrome
npm run start:chrome
or
# run Firefox
npm run start:firefox
This will build the extension and start a browser with it being loaded in it. After making changes, Vite automatically will re-compile the files and you can reload the extension to apply them in the browser.
Bundle the extension by running:
npm run build
This script will bundle the extension as web-extension-chrome-vX.X.X.crx
and web-extension-firefox-vX.X.X.zip
. The generated files are in dist/
. You can also grab a version from the latest test run on the main
branch.
To load the extension in Firefox go to about:debugging#/runtime/this-firefox
or Firefox > Preferences > Extensions & Themes > Debug Add-ons > Load Temporary Add-on...
. Here locate the dist/
directory and open manifestv2.json
To load the extensions in Google Chrome go to chrome://extensions/
and click Load unpacked
. Locate the dist directory and select manifest.json
.
This project tests the extension files using component tests and the extension integration via e2e test with WebdriverIO.
Run unit/component tests:
npm run test:component
Run e2e tests:
npm run test:e2e
- background\background.ts - Background script/Service worker
- popup\index.html - popup UI