This repository has been archived by the owner on Mar 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 70
Install (without Composer)
Evan Willhite edited this page Dec 6, 2018
·
1 revision
Authored by Amazing Rando.
It isn't recommended to install Emulsify without composer. Instructions provided for reference only.
-
$ROOT
is the root of your Drupal installation. -
$THEME_NAME
is the folder name for your theme, e.g. "emulsify"
- Download Emulsify as
$ROOT/themes/contrib/emulsify
- cd
$ROOT/themes/contrib/emulsify
- Create your new theme by cloning emulsify
php emulsify.php "THEME NAME"
(Runphp emulsify.php -h
for other available options) - Move into your cloned theme directory
cd $ROOT/themes/custom/$THEME_NAME/
- Download Pattern Lab Twig Edition as
$ROOT/themes/custom/$THEME_NAME/pattern-lab
- Remove
$ROOT/themes/custom/$THEME_NAME/pattern-lab/source
- Create a symbolic link from
$ROOT/themes/custom/$THEME_NAME/components
to$ROOT/themes/custom/$THEME_NAME/pattern-lab/source
- 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/
- 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/
- 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/
- Download and install the Component Libraries module
- Download and install the Unified Twig Extensions module
- In
$ROOT/themes/custom/$THEME_NAME/package.json
remove"postinstall": "./scripts/pattern_lab.sh && ./scripts/twig_functions.sh"
. cd $ROOT/themes/custom/$THEME_NAME
- Run
yarn
ornpm install
Proceed to the Starting Pattern Lab section in the README.
- Home
- Basics
- Examples
- Environment-specific or Special Instructions
- Acknowledgements
- To-do
- Contribute to this Wiki!