Usage¶
Preparation¶
- Install composer:
sudo wget https://getcomposer.org/composer.phar --output-document=/usr/local/bin/composer && sudo chmod +x /usr/local/bin/composer
- Disable XDebug for CLI - optional:
sudo phpdismod -s cli xdebug
- Install Prestissimo - optional:
sudo composer global require "hirak/prestissimo:^0.3"
Create new project for local development¶
1 2 |
|
This will build the full structure and create a git repository which you can then use during the full live-cycle of that project.
To install a new site with the included default configuration, use drush site-install --existing-config
and you get a jump-start from that.
Deploy project to upstream stages¶
For deployment, both initially and for later updates, follow this:
1 2 3 4 |
|
Adding new and updating existing components¶
Edit the composer.json file accodring to your requirements and then run composer update
.
Adding JS packages¶
CKEditor Codesnippet¶
1 2 |
|
Chosen¶
1 2 |
|
Links¶
Using Composer to install Drupal packages through Drupal.org