Updated Makefile

This commit is contained in:
Chris Kankiewicz
2020-01-09 00:13:22 -07:00
parent 11d887321e
commit a4d6badf44

View File

@@ -1,18 +1,19 @@
build: # Install application dependencies
build: install compile # Install application dependencies and build assets
install: # Install application dependencies
@composer install && npm install
compile: # Compile application (CSS and JavaScript) assets
@npm run dev
update upgrade: # Update application dependencies
@composer update && npm update
test: #: Run coding standards/static analysis checks and tests
@php-cs-fixer fix --diff --dry-run && psalm --show-info=false && phpunit
clear-cache: # Clear the application cache
@rm app/cache/* -rfv
tunnel: # Expose the application via ngrok
@ngrok http -host-header=rewrite http://directory-lister.local:80
help: # Show this help
@grep --perl-regexp '^([\w\s-]+):\s+#+\s+(.*)$$' $(MAKEFILE_LIST) \
| awk 'BEGIN {FS = ": # "}; { printf "\033[36m%-16s\033[0m %s\n", $$1, $$2 }'
clear-cache: # Clear the application cache
@rm app/cache/* -rfv