This repo is a starting point to quickly spin up a local Drupal development environment that is ready to use for Drupal contributions. It includes:
- Drupal 11
- Drush 13
- Admin Toolbar
- Emulsify tooling - but not Emulsify itself for ease of testing new installs of Emulsify
- Devel
- Kint
- Xdebug enabled
- Local Twig debugging enabled
- Clone this repo down to a new folder
git clone git@github.com:codechefmarc/local-drupal-dev.git custom-name-here - Change into the new directory and run
npm run setup - Answer the questions - defaults are provided
- One of the questions is to change the default git repo for push - this allows you to push any changes made to your own repo
- Run
npm run refreshto rebuild your local from scratch. This command will also runcomposer updateas well.
- There is now a git remote called
originalto more easily retrieve updates from the original repo. - Run
git pull original mainto get the latest updates into your project.