Skip to content

Instantly share code, notes, and snippets.

@tiberiuichim
Created September 9, 2020 08:37
Show Gist options
  • Save tiberiuichim/165bdd167d320ab389904ab9148ec512 to your computer and use it in GitHub Desktop.
Save tiberiuichim/165bdd167d320ab389904ab9148ec512 to your computer and use it in GitHub Desktop.
How to develop Volto and test it in a project

This a description of the workflow I use to be able to test fresh Volto code in a local Volto project:

  • Basically I use yalc for this. https://github.com/whitecolor/yalc
  • Install it with npm i yalc -g
  • In your copy of Volto (git clone https://github.com/plone/volto if you don't have one) run: yalc publish
  • In your Volto project (created with create-volto-app), run: yalc add @plone/volto --no-pure

This will create a local copy of Volto in your project. If you need to "refresh" the copy, run yalc add @plone/volto --no-pure again.

The advantage of this method is that you can have a proper separate Volto, which you can use to push commits and Pull Requests to plone/volto, and you can test these changes in your local project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment