forked from Hexlet/hexlet-sicp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
78 lines (52 loc) · 1.13 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
include make-compose.mk
console:
php artisan tinker
deploy:
git push heroku master
setup: env-prepare sqlite-prepare install key db-prepare ide-helper
npm run dev
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 8000
start-frontend:
npm run watch
db-prepare:
php artisan migrate:fresh --seed
lint:
composer exec phpcs -v
lint-fix:
composer exec phpcbf -v
test:
php artisan test
test-coverage:
XDEBUG_MODE=coverage php artisan test --coverage-clover build/logs/clover.xml
analyse:
composer exec phpstan analyse -v -- --memory-limit=-1
check: lint analyse test
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-js-fix:
npm run lint-js-fix
setup-git-hooks:
npx simple-git-hooks
.PHONY: test
pre-push-hook: lint