-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
55 lines (38 loc) · 1.22 KB
/
Makefile
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
current_dir = $(shell pwd)
DOCKER_COMPOSE=docker compose
JS = $(DOCKER_COMPOSE) run --rm js
.PHONY: tests phpunit phpstan rector var-dump-checker cs
tests: phpunit phpstan rector var-dump-checker cs
# PHP
phpunit:
XDEBUG_MODE=coverage bin/phpunit
@echo "Results file generated file://$(current_dir)/var/phpunit/coverage/index.html"
phpunit.stop-on-failure:
bin/phpunit --stop-on-failure
@echo "Results file generated file://$(current_dir)/var/phpunit/coverage/index.html"
cs.fix:
PHP_CS_FIXER_IGNORE_ENV=1 bin/php-cs-fixer fix --diff --allow-risky=yes --config .php-cs-fixer.dist.php
cs:
PHP_CS_FIXER_IGNORE_ENV=1 bin/php-cs-fixer fix --diff --allow-risky=yes --config .php-cs-fixer.dist.php --dry-run
phpstan:
bin/phpstan analyse
rector:
bin/rector --dry-run
rector.fix:
bin/rector
bc.check:
bin/roave-backward-compatibility-check
var-dump-checker:
bin/var-dump-check --symfony src
bin/var-dump-check --symfony tests
# Assets
.PHONY: assets assets.production assets.build assets.watch assets.install
assets: assets.install assets.production
assets.dev:
$(JS) yarn run encore dev
assets.watch:
$(JS) yarn run encore dev --watch
assets.production:
$(JS) yarn run encore production
assets.install:
$(JS) yarn install