Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Install (without Composer)

Evan Willhite edited this page Dec 6, 2018 · 1 revision

How to Install Emulsify without Composer

Authored by Amazing Rando.

It isn't recommended to install Emulsify without composer. Instructions provided for reference only.

Legend

  • $ROOT is the root of your Drupal installation.
  • $THEME_NAME is the folder name for your theme, e.g. "emulsify"

Instructions

  1. Download Emulsify as $ROOT/themes/contrib/emulsify
  2. cd $ROOT/themes/contrib/emulsify
  3. Create your new theme by cloning emulsify php emulsify.php "THEME NAME" (Run php emulsify.php -h for other available options)
  4. Move into your cloned theme directory cd $ROOT/themes/custom/$THEME_NAME/
  5. Download Pattern Lab Twig Edition as $ROOT/themes/custom/$THEME_NAME/pattern-lab
  6. Remove $ROOT/themes/custom/$THEME_NAME/pattern-lab/source
  7. Create a symbolic link from $ROOT/themes/custom/$THEME_NAME/components to $ROOT/themes/custom/$THEME_NAME/pattern-lab/source
  8. Download https://github.com/drupal-pattern-lab/add-attributes-twig-extension and copy add_attributes.function.php to $ROOT/themes/custom/$THEME_NAME/components/_twig-components/functions/
  9. Download https://github.com/drupal-pattern-lab/bem-twig-extension and copy bem.function.php to $ROOT/themes/custom/$THEME_NAME/components/_twig-components/functions/
  10. Download https://github.com/drupal-pattern-lab/attach-library-twig-extension and copy pl_attach-library.function.php to $ROOT/themes/custom/$THEME_NAME/components/_twig-components/functions/
  11. Download and install the Component Libraries module
  12. Download and install the Unified Twig Extensions module
  13. In $ROOT/themes/custom/$THEME_NAME/package.json remove "postinstall": "./scripts/pattern_lab.sh && ./scripts/twig_functions.sh".
  14. cd $ROOT/themes/custom/$THEME_NAME
  15. Run yarn or npm install

Proceed to the Starting Pattern Lab section in the README.