Running this asks a few questions about your Front End component that uses BEM naming scheme and used in Pattern Lab, then generates the front end files needed: scss, twig, etc.
npm i -g yo generator-pl-pattern
yo pl-pattern
Either cd
into pattern-lab/source/_patterns/
before running, or use the flag below to pick the base directory.
The command can be ran with these flags to change options:
--base path/to/source/_patterns/
- Set the base path. This will list folders inside to suggest as places where components will be scaffolded.