forked from Hexlet/hexlet-sicp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
90 lines (59 loc) · 1.41 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
include make-compose.mk
PORT ?= 8000
console:
php artisan tinker
deploy:
git push heroku main
setup: env-prepare sqlite-prepare install key db-prepare ide-helper
npm run build
install-app:
composer install
install-frontend:
npm ci
install: install-app install-frontend
start:
heroku local -f Procfile.dev
start-app:
php artisan serve --host 0.0.0.0 --port ${PORT}
start-frontend:
npm run dev
db-prepare:
php artisan migrate:fresh --force --seed
lint: lint-js lint-php
lint-fix:
composer exec phpcbf -v
npx prettier --write resources/**/*.blade.php
test:
php artisan test
test-solutions:
composer exec phpunit -- --testsuite "Exercises"
test-coverage:
XDEBUG_MODE=coverage php artisan test --coverage-clover build/logs/clover.xml
analyse:
composer exec phpstan analyse -v -- --memory-limit=512M
check: test lint analyse
config-clear:
php artisan config:clear
env-prepare:
cp -n .env.example .env || true
sqlite-prepare:
touch database/database.sqlite
key:
php artisan key:generate
ide-helper:
php artisan ide-helper:eloquent
php artisan ide-helper:gen
php artisan ide-helper:meta
php artisan ide-helper:mod -n
lint-js:
npm run lint-js
lint-php:
composer exec phpcs -v
lint-js-fix:
npm run lint-js-fix
setup-git-hooks:
npx simple-git-hooks
.PHONY: test
pre-push-hook: lint analyse
docker-build-render:
DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker build . -t hexlet-sicp:cached