This is a Yeoman generator for Particle, a modern design-system driven Drupal theme.
To install generator-pattern-lab-starter from npm, run:
npm install -g generator-pattern-lab-starter
Note that this template will generate files in the current directory, so be sure to change to a new directory first if you don't want to overwrite existing files.
Finally, initiate the generator:
yo pattern-lab-starter
Extras can be installed with:
yo pattern-lab-starter:extras
- release: Run with
--release=<branch-tag-or-hash>
to override the default use of master branch.
You can perform local development of this generator using our Docker integration.
Install the dependencies:
docker-compose run --rm cli npm install
Then run the generator:
docker-compose run --rm yo pattern-lab-starter
This will output your code in ~/Projects/newproject. To change this, use the YO_PROJECT_DIRECTORY
environment variable:
YO_PROJECT_DIRECTORY=/opt/development/mytheme docker-compose run --rm yo pattern-lab-starter
Run eslint against this project by running:
npm run lint