This is one of two pieces of our themes:
pattern-lab-starter
- a starter set of files for Drupal theming that includes a Twig powered Pattern Lab and beginning Sass & other front end tools. Usesp2-theme-core
for automation.p2-theme-core
(this repo) - the core gulp tasks that handles most of the theme's automation.
Here is the core gulp tasks used in our themes that are generated by yo p2-theme
. Ideally, the changes to how a theme install works would be done by passing in a different config.yml
.
More docs in docs/
folder – these docs are hosted in Read the Docs!
- Scss => CSS compiling with Libsass, PostCSS, linting, and SourceMaps
- Pattern Lab Twig compiling & BrowserSync live reload and style injection
- SVG => Font Icons compiling with support for adding mixins and classes to Scss along with a demo page in Pattern Lab
- JS compiling via Babel, linting and aggregation
- Drupal file watching to trigger Drush cache clears
All is easily configurable by changing values in your config.yml
file in your project. These values are merged into the config.default.yml
file - look there for the available options and defaults.