| title | Generating Pattern Lab | |
|---|---|---|
| tags |
|
Pattern Lab consists of an empty shell when you first install it. To populate the public-facing side of Pattern Lab with your content and patterns do the following:
- In a terminal window navigate to the root of your project
- Type
php core/console --generate
Your Pattern Lab install should now be populated and available for viewing. As you make changes to your patterns you'll need re-generate your site using step 2 above.
Manually re-generating your site after each change or collection of changes can be cumbersome. Pattern Lab can watch files in the ./source/ directory for changes and re-generate the site automatically. The Pattern Lab website can also be automatically reloaded.