-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathMakefile
60 lines (44 loc) · 1.15 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
#! /usr/bin/make
PHP_FOLDERS=app bin extensions tests
install:
composer install
make js
php bin/command.php migrate:migrate
php bin/command.php db:seed
js-link-remp:
yarn link "../Package/remp" --relative
js:
make js-link-remp
yarn install
yarn production
js-dev:
make js-link-remp
yarn install
yarn dev
js-watch:
make js-link-remp
yarn install
yarn watch
sniff:
php vendor/bin/phpcs --standard=.phpcs_ruleset.xml ${PHP_FOLDERS} -n -p
sniff_fix:
php vendor/bin/phpcbf --standard=.phpcs_ruleset.xml ${PHP_FOLDERS} -n
syntax:
find ${PHP_FOLDERS} -name "*.php" -print0 | xargs -0 -n1 -P8 php -l
phpstan:
php vendor/bin/phpstan analyse --configuration=.phpstan.neon --memory-limit=1G app tests extensions
latte-lint:
php bin/latte-lint.php app
php bin/latte-lint.php extensions
composer-install-dev:
composer install
composer-install:
composer install --optimize-autoloader --no-dev
clear-cache:
rm -rf temp/cache
update-dev: clear-cache composer-install-dev js-dev
php bin/command.php migrate:migrate
php bin/command.php db:seed
update-prod: clear-cache composer-install js
php bin/command.php migrate:migrate
php bin/command.php db:seed