-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathMakefile
50 lines (36 loc) · 870 Bytes
/
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
#! /usr/bin/make
PHP_FOLDERS=app config
install: composer-install js
php artisan migrate
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=PSR2 ${PHP_FOLDERS} -n -p
sniff_fix:
php vendor/bin/phpcbf --standard=PSR2 ${PHP_FOLDERS} -n
fixcs:
php vendor/bin/php-cs-fixer fix --config=.php_cs -v
syntax:
find ${PHP_FOLDERS} -name "*.php" -print0 | xargs -0 -n1 -P8 php -l
composer-install-dev:
composer install
composer-install:
composer install --optimize-autoloader --no-dev
update-dev: composer-install-dev js-dev
php artisan migrate
update-prod: composer-install js
php artisan migrate --force
php artisan config:cache
php artisan route:cache