-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New setup #109
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say it's ok to remove all the files in old
since we are targeting this at a 4.x release, maybe with at least an alpha to test early on
README.md
Outdated
### Volto 18 and later | ||
|
||
Add `volto-form-block` to your add-on `package.json`: | ||
|
||
```json | ||
"dependencies": { | ||
"volto-form-block": "*" | ||
} | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to clarify: with volto 18 we still need to add the add-on name to the addons
array and to run pnpm add volto-form-block
or pnpm install
, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, the add-on needs to be declared too as usual, the recommended way is to do that in your policy package (inside packages
folder.
volto.config.js must have an entry point though, normally pointing to the inner package in packages
.
Makefile
Outdated
.PHONY: backend-docker-start | ||
backend-docker-start: ## Starts a Docker-based backend for development | ||
@echo "$(GREEN)==> Start Docker-based Plone Backend$(RESET)" | ||
docker run -it --rm --name=backend -p 8080:8080 -e SITE=Plone $(DOCKER_IMAGE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also needs the backend add-on. iirc with -e ADDONS="collective.volto.formsupport"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pnicolli let's move the addon in here too, so we have the complete add-on parts in the same repo.
Co-authored-by: Piero Nicolli <pnicolli@users.noreply.github.com>
I promise that once you try the new setup, it's no turning back, and everything else seems so wrong and outdated.
Give it a try!
@pnicolli maybe it's better to merge first the PRs that you told me you have ongoing. Up to you. However, I saw that we have no tests whatsoever, we can fix this too. There are a couple of concerning ESlint failures that I commented out for now, but it would be great to fix it.