factorial-io/pattern-lab-edition-factorial

Edition of Pattern Lab for Factorial. Combines Standard Drupal edition with our frontend stack.

1.0.0-beta.10 2020-05-12 15:03 UTC

README

Scaffold a twig pattern library + factorial frontend stack.

Context

https://patternlab.io/docs/advanced-ecosystem-overview.html

Prerequistes

Create a new Project

$ 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.

Install an existing Project

$ composer install
  • Assuming you cloned an existing project that was created with pattern-lab-edition-factorial.
  • This should trigger a yarn install as well.

Development

$ yarn start
  • Starts a development server and watches for file changes.

Production

$ yarn run build
  • Creates a production build.