Last active
August 21, 2019 07:44
-
-
Save matthewstokeley/1a91a7acabeee07eb98c4cdb43559b16 to your computer and use it in GitHub Desktop.
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 | |
# create dot files and directories | |
touch .aliases | |
echo "alias g=git" >> .aliases | |
echo "alias c=php composer.phar" >> .aliases | |
echo "alias p=phpunit" >> .aliases | |
touch .editorconfig | |
touch .ide-recommendations | |
echo "xdebug" >> .ide-recommendations | |
echo "phpcs" >> .ide-recommendations | |
touch .gitignore | |
echo node_modules >> .gitignore | |
echo vendor >> .gitignore | |
echo composer.phar >> .gitignore | |
echo phpunit >> .gitignore | |
mkdir tests && touch tests/.gitkeep | |
mkdir reports && touch reports/.gitkeep | |
mkdir src && mkdir src/js && mkdir src/scss && mkdir dist | |
# install composer | |
wget https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer -O - -q | php -- --quiet | |
php ./composer.phar init | |
# install phpunit | |
wget -O phpunit https://phar.phpunit.de/phpunit-8.phar | |
chmod +x phpunit | |
source .aliases |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment