-
Notifications
You must be signed in to change notification settings - Fork 70
Install (Composer)
- PHP 7.1
- Node (we recommend NVM)
- Gulp
- Composer
- Optional: Yarn
Emulsify supports both NPM and YARN.
Install with NPM:
composer create-project fourkitchens/emulsify --stability dev --no-interaction emulsify && cd emulsify && npm install
Install with Yarn:
composer create-project fourkitchens/emulsify --stability dev --no-interaction emulsify && cd emulsify && yarn install
- Clone the repository and cd into the created directory
composer install
-
yarn
ornpm install
- Require emulsify in your project
composer require fourkitchens/emulsify
- Move into the original emulsify theme
cd web/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 theme directory
cd web/themes/custom/THEME_NAME/
- Install the theme dependencies
npm install
oryarn
- Enable your theme and its dependencies
drush then THEME_NAME -y && drush en components unified_twig_ext -y
Troubleshooting Installation: See Drupal Installation FAQ.
Note: Once you've created your custom theme, you can remove Emulsify as a dependency of your project. If you'd like to get updates as we push them, solely for educational/best-practice information, feel free to leave it in and receive the updates. Updating Emulsify will not affect your custom theme in any way.
-
cd themes/contrib
(You may need to create this directory) composer create-project fourkitchens/emulsify --stability dev --no-interaction emulsify
- Move into the emulsify theme
cd 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 web/themes/custom/THEME_NAME/
- Install the theme dependencies
yarn
ornpm install
- Move the Unified Twig Extension module from
themes/custom/emulsify/vendor/drupal-pattern-lab/unified-twig-extensions/
tomodules/unified-twig-extensions
. (You can do this from the Drupal root withcp -r themes/contrib/emulsify/vendor/drupal-pattern-lab/unified-twig-extensions/ modules/unified-twig-extensions
) - Enable Emulsify and its dependencies
drush then THEME_NAME -y && drush en components unified_twig_ext -y
Do I need to run npm install
or yarn install
on Emulsify if I use the drush command to create my own custom clone?
No. Your new custom theme is not a subtheme of Emulsify, and has no references to the original Emulsify contributed theme. You should do all development on the new cloned theme, including running any npm/gulp tasks or doing any local gulp config. Also, do not enable Emulsify and your cloned them, only your cloned theme.
Do I have to use the drush command or can I just use Emulsify as-is?
You can use Emulsify as your theme!
However, any changes you make to the components will be overwritten if you ever update Emulsify. So, it's recommended that you run the drush command to create a clone, and make your customizations there.
- Home
- Basics
- Examples
- Environment-specific or Special Instructions
- Acknowledgements
- To-do
- Contribute to this Wiki!