-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile.dev
More file actions
executable file
·42 lines (27 loc) · 1.48 KB
/
Makefile.dev
File metadata and controls
executable file
·42 lines (27 loc) · 1.48 KB
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
## === Development === commands - meant to be used to run the project locally while developping on it
install-app: run composer-install setup-db ## Installs the application without importing the data
setup-dev: install-app load-fixtures ## Installs the application with the fixtures data
install: install-app import-data ## Installs the application & imports the data
composer-install: ## Runs composer install in the container to install backend dependencies
docker-compose run --rm rpps-database composer install
composer-require: ## Runs composer require in the container to add a new dependency
docker-compose run --rm rpps-database composer require $(package)
routes-dev: ## Lists all routes of the application
make run-command command='debug:router'
shell: ## Gets a shell in the rpps-database container
docker-compose exec rpps-database bash
clear-cache:
make run-command command='cache:clear'
# Loaded config default from "/var/www/html/.php-cs-fixer.dist.php"
csfixer:
docker-compose exec rpps-database ./vendor/bin/php-cs-fixer fix -v src/
phpcbf:
docker-compose exec rpps-database ./vendor/bin/phpcbf src/ --runtime-set ignore_warnings_on_exit true
phpcs:
docker-compose exec rpps-database ./vendor/bin/phpcs --runtime-set ignore_warnings_on_exit true src
php-stan:
docker-compose exec rpps-database ./vendor/bin/phpstan analyse -c phpstan.neon -l 6 src/
rector:
docker-compose exec rpps-database ./vendor/bin/rector process src/ -v
lint:
make phpcbf && make csfixer && make php-stan