diff --git a/Makefile b/Makefile index c14773b..acbc982 100644 --- a/Makefile +++ b/Makefile @@ -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