This instance of Pattern Lab was installed with pattern-lab/edition-drupal-standard pattern-lab, along with the following components, which were merged:
The steps involved for getting up and running involve installing Composer and Node dependencies, and from there just running Gulp. The Gulp build script handles starting and rebuilding the Pattern Lab instance.
composer install
Composer install will ask you a bunch of questions, here's how you respond:
the path ./source/_twig-components/filters already exists. merge or replace with the contents of pattern-lab/drupal-twig-components package? M/r >
M
the path ./source/_twig-components/functions already exists. merge or replace with the contents of pattern-lab/drupal-twig-components package? M/r >
M
the path ./source/_twig-components/tags already exists. merge or replace with the contents of pattern-lab/drupal-twig-components package? M/r >
M
update the config option ishMinimum (320) with the value 240? Y/n >
n
update the config option ishControlsHide with the value from the package install? Y/n >
n
bashupdate the config option styleguideKitPath (/...pl/vendor/pattern-lab/styleguidekit-twig-default) with the value vendor/pattern-lab/styleguidekit-twig-default? Y/n >
n
npm i
npm run gulp
npm run gulp
IMPORTANT: npm run gulp
is required UNLESS you have Gulp v4 installed globally. Since it's not released yet, chances are you do not (nor would I recommend this), so be sure to prefix the command with npm run
which allows for running the locally installed gulp directly through NPM.
While the Gulp task is running, visit the local BrowserSync UI, which is usually http://localhost:3000.
[Browsersync] Access URLs:
-----------------------------------
Local: http://localhost:3000
External: http://192.168.1.182:3000
-----------------------------------
Happy coding!
@todo