Created
November 3, 2017 17:26
-
-
Save mparker17/c3904e33f766b158db036a0c3dab0743 to your computer and use it in GitHub Desktop.
Composer and CGR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# @file | |
# Set up cgr, then cgr common projects. | |
# | |
# Notes: | |
# - Composer installed via PHAR in $PATH; ln -s composer.phar composer | |
# - Drush installed via PHAR in $PATH; ln -s drush.phar drush | |
# | |
composer global require 'consolidation/cgr' | |
cgr 'drupal/coder' | |
cgr 'phpdocumentor/phpdocumentor' | |
cgr 'phpmd/phpmd' | |
cgr 'phpmetrics/phpmetrics' | |
cgr 'psy/psysh' | |
phpcs --config-set installed_paths $HOME/.composer/global/drupal/coder/vendor/drupal/coder/coder_sniffer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment