Skip to content

Instantly share code, notes, and snippets.

@matthewstokeley
Last active August 21, 2019 07:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewstokeley/1a91a7acabeee07eb98c4cdb43559b16 to your computer and use it in GitHub Desktop.
Save matthewstokeley/1a91a7acabeee07eb98c4cdb43559b16 to your computer and use it in GitHub Desktop.
#!/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