An example setup for building a Grav CMS site based on a Pattern Lab design system.
- Run
composer install
to pull in Pattern Lab and compile it. - Run
./scripts/serve.sh
or rundocker-compose up
if you're a Docker fan. - View the site at localhost:8000.
- Update
composer.json
to point to your project-specific Pattern Lab repo. - Look at
scripts/compile.sh
and update as needed for your project-specific Pattern Lab setup. - Run
composer install
(which will automatically runscripts/compile.sh
to compile PL and symlink things into your Grav theme). - Adjust the theme templates to match your actual Pattern Lab components.
- Add some content and profit!