NEW FEATURE: Added `make clean-repo` command

This commit is contained in:
Jeroen De Meerleer 2019-11-15 17:36:24 +01:00
parent b9d763c2ed
commit b7906ecc55
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
1 changed files with 8 additions and 3 deletions

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