forked from Piplin/Piplin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (38 loc) · 1.36 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
.PHONY: all update-repo dependency-install file-permission migration seed assets-dev assets-production
install: dependency-install dump-autoload file-permission migration seed install-gulp assets-production cache-config
install-dev: dependency-install dump-autoload file-permission migration seed install-gulp assets-dev
update: update-repo dependency-install dump-autoload migration assets-production cache-config
update-dev: update-repo dependency-install dump-autoload migration assets-dev
help:
@echo 'make install -- download dependencies and install'
@echo 'make install-dev -- download dependencies and install without minifing assets'
@echo 'make update-dev -- pull repo and rebuild assets'
@echo 'make update -- pull repo and rebuild assets without minifing'
update-repo:
git reset --hard
git pull origin master
dependency-install:
composer update
file-permission:
chmod -R 777 storage/
chmod -R 777 bootstrap/cache/
chmod -R 777 public/upload
migration:
php artisan migrate --force
seed:
php artisan db:seed
install-gulp:
npm install --g gulp
npm install
assets-production:
gulp --production
assets_dev:
gulp
cs:
vendor/bin/phpcs -p --standard=PSR2 --ignore="app/Helpers/Helpers.php,app/Presenters" app/
vendor/bin/phpdoccheck --directory=app
dump-autoload:
php artisan clear-compiled
cache-config:
php artisan config:cache
php artisan optimize