This project is based off the PHP Twig version of Pattern Lab.
-
cd pattern-lab
-
composer install
Answer the prompts as follows:
- The path ./public/ already exists. Merge or replace with the contents of pattern-lab/styleguidekit-assets-default package?
M
- Update the config option styleguideKitPath?
n
- The path ./public/ already exists. Merge or replace with the contents of pattern-lab/styleguidekit-assets-default package?
-
cd ../
-
php pattern-lab/core/console --generate
-
npm install
-
Run
gulp
. (You might need to re-install withnpm install gulp -g
) -
php pattern-lab/core/console --server --watch
Generating a public instance: $ php pattern-lab/core/console --generate
Viewing a full list of commands: $ php pattern-lab/core/console --help
- Edit the document
<head>
inpattern-lab/source/_meta/00-head.twig
. - Edit pattern styles and markup in
pattern-lab/source/_patterns
. - Add or edit Markdown files to
pattern-lab/source/_patterns
to document the usage and context of each pattern. - Add any images to
pattern-lab/source/images
.
All changes in /source/
automatically compile to /public
.