-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 740 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.PHONY: help dev build watch prod install
PORT = 8000
# Color Variables
COM_COLOR = \033[0;34m
OBJ_COLOR = \033[0;36m
OK_COLOR = \033[0;32m
ERROR_COLOR = \033[0;31m
WARN_COLOR = \033[0;33m
NO_COLOR = \033[m
help: ## Affiche cette aide
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
dev: ## Lance le serveur de développement
php -S localhost:$(PORT) -d display_errors=1
build: install ## Compile les assets
yarn dev
watch: install ## Compile les assets avec un watcher
yarn watch
prod: install ## Compile les assets en mode production
yarn build
install: package.json ## Installe les dépendances de développement
yarn install