This extension has been created with create-contentful-extension.
The extension is hosted by GitHub Pages.
You just need to properly configure Contentful.
-
Download the
extension.json:wget https://raw.githubusercontent.com/GuccioGucci/contentful-extension-color-picker/main/extension.json
-
Deploy the extension to Contentful:
npx -p contentful-cli contentful login npx -p contentful-cli contentful space use npx -p contentful-cli contentful space environment use npx -p contentful-cli contentful extension update --descriptor ./extension.json --force
If you prefer you could install
contentful-cliglobally instead of usingnpx:npm install -g contentful-cli contentful login contentful space use contentful space environment use contentful extension update --descriptor ./extension.json --force
-
Now you can choose the
Color Pickerappearance from the Field configuration: -
You've done 🎉
Setup your local environment by running
# install dependencies
npm install
# login to Contentful
npm run login
# configure Contentful space and environment
npm run configureBe sure to choose a non-production environment. Choosing
masterorprodshould be avoided.
Just run npm start to deploy and run the extension in development mode.
When you have done with your configuration changes (extension.json), you can easily deploy on the selected space and environment by running
npm run deployIf you need to deploy the extension to a different environment you can use the option --environment-id.
npm run deploy -- --environment-id devThis extension is hosted by GitHub Pages. You just need to push to the main branch to make it live 🚀

