Scaffold a twig pattern library + factorial frontend stack.
$ composer create-project factorial-io/pattern-lab-edition-factorial <my-project-name> --stability beta
- Replace
<my-project-name>
with the folder where pattern lab should be generated. - Select the
factorial-io/pattern-lab-starterkit-default
starterkit from menu. - If asked about replacing files, do it.
- Commit new files generated.
$ composer install
- Assuming you cloned an existing project that was created with
pattern-lab-edition-factorial
. - This should trigger a
yarn install
as well.
$ yarn start
- Starts a development server and watches for file changes.
$ yarn run build
- Creates a production build.