Added clean-repo target

This commit is contained in:
Jeroen De Meerleer 2019-11-15 17:35:08 +01:00
parent 1474ad6629
commit deb0c98c7e
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -33,21 +33,26 @@ dist: ## Generates distribution
git reset --hard HEAD
mv res/composer* dist/
clean: clean-dist clean-dev
clean: clean-dist clean-dev clean-repo ## Cleans all assets
clean-dev:
clean-dev: ## Cleans dev assets
rm -rf doc/api
rm -rf .idea
rm -rf .libpairtwo-distro
rm -rf vendor
rm -rf composer.lock
clean-dist:
clean-dist: ## Cleans distribution assets
rm -rf dist/doc
rm -rf dist/vendor
rm -rf dist/composer.json
rm -rf libpairtwo-*-dist.zip
clean-repo: ## Cleans the git repository
git fsck
git prune
git gc
cs: ## Fixes coding standard problems
vendor/bin/php-cs-fixer fix || true