Component-driven prototyping tool using Pattern Lab v2 automated via Gulp/NPM. Also serves as a starterkit Drupal 8 theme.
- PHP 7.1
- Node (we recommend NVM)
- Gulp
- Composer
- Optional: Yarn
NYPL Emulsify supports both NPM and YARN for installing and maintaining Pattern Lab.
- Enable your theme and its dependencies
drush then nypl_emulsify -y && drush en components unified_twig_ext -y
- Proceed to the "Starting Pattern Lab…" section below
The start
command spins up a local server, compiles everything (runs all required gulp tasks), and watches for changes.
npm start
oryarn start
Lightweight | ✔ | nypl_emulsify is focused on being as lightweight as possible. |
SVG sprite support | ✔ | Automated support for creating SVG sprites mixins/classes. |
Stock Drupal templates | ✔ | Templates from Stable theme - see /templates directory |
Stock Components | ✔ | with Drupal support built-in (https://github.com/fourkitchens/emulsify#emulsifys-built-in-components-with-drupal-support) |
Performance Testing | ✔ | Support for testing via Google PageSpeed Insights and WebPageTest.org (https://github.com/fourkitchens/emulsify/wiki/Gulp-Config#performance-testing) |
Automated Github Deployment | ✔ | Deploy your Pattern Lab instance as a Github page (https://github.com/fourkitchens/emulsify/wiki/Gulp-Config#deployment) |
View a demo of these default nypl_emulsify components.
Documentation is currently provided in the Wiki. Here are a few basic links:
See Orientation
We have a series of videos for you to learn more about Emulsify.
See Designers
See Drupal Usage
See Gulp Config