plone / volto

React-based frontend for the Plone Content Management System
https://demo.plone.org/
MIT License
456 stars 613 forks source link

Publish @plone/blocks #6172

Closed JeffersonBledsoe closed 2 months ago

JeffersonBledsoe commented 3 months ago

The @plone/blocks package is currently not published on npm:

https://www.npmjs.com/search?q=%40plone%2Fblocks

While it is a pretty minimal package currently, being able to base new projects off the upcoming 'best practise' would be ideal

sneridagh commented 2 months ago

@JeffersonBledsoe I can do a release, but FYI this package falls into a special category that we haven't yet fully explored.

While exploring and advancing in the implementation of the PoC (Next.js, Remix, etc). I've realised of something: One can't shadow a component that it's transpiled and released. So I can't only see this solution: there will be some @plone/* packages that have to be released in the same way as Volto add-ons. Then in the build, they have to be "whitelisted" from the node_modules and the build should build them along with your code. In the future we can do this via @plone/registry, but right now you should do it via parameterizing your current build system.

@plone/slots will be in that list too.

sneridagh commented 2 months ago

https://github.com/plone/volto/releases/tag/plone-blocks-1.0.0-alpha.1 https://www.npmjs.com/package/@plone/blocks