bedrock
bedrock copied to clipboard
1.41pre
This is the PR to track 1.41, which removes core
from projects using Bedrock. This achieves a better separation of concerns as noted in @thusc 's comment here.
The first idea behind this was formulated in #320 . Through work in multiple branches we finally got to this result.
With a core-less Bedrock, bedrock
becomes an npm dependency of a project. Your project repo will look a lot simpler - example at https://github.com/thusc/bedrock/tree/bedrock-init/
As a user you can:
- Build a prototype, using the page tree, with a standard styleguide
- Build a design system website, with custom templates for styleguide type pages
You can still use the pagetree in scenario 2 but it will make less sense. It is advisable to disable the page tree in this scenario.
To enable scenario 2 (I.e. the strategy used for https://design.smart.coop/ ) you would set overrideStyleguideTemplates
to true
in bedrock.config.js
.
You would then supply your own templates in /content/templates/_styleguide/
that override Bedrock's default templates.
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/monocompany/bedrock/42XAy7Wx7MtHT9wLgXdA4271znQU
✅ Preview: https://bedrock-git-141pre-monocompany.vercel.app
[Deployment for eb4fb6a failed]