-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (36 loc) · 1.31 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
.PHONY: install update clean dev assets
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " install to make a Composer install"
@echo " update to make a Composer update then a Bower update"
@echo " clean to remove and warmup cache"
@echo " dev to start Built-in web server of PHP"
@echo " assets to install assets"
@echo " cs to fix cs"
@echo " cs_dry_run to check which cs to fix"
install:
composer install
bower install
update:
composer update
bower update
clean:
rm -rf app/cache/*
php app/console cache:warmup --env=prod --no-debug
php app/console cache:warmup --env=dev
dev:
php app/console server:run &
assets:
if [ ! -f bin/yuicompressor.jar ]; then curl -L https://github.com/yui/yuicompressor/releases/download/v2.4.8/yuicompressor-2.4.8.jar > bin/yuicompressor.jar; fi;
cd src/Portal/Bundle/AppBundle/Resources/assets_src && npm install
cd src/Portal/Bundle/AppBundle/Resources/assets_src && gulp
cd src/Portal/Bundle/MoneyBundle/Resources/assets_src && npm install
cd src/Portal/Bundle/MoneyBundle/Resources/assets_src && gulp build
app/console assets:install --symlink web
app/console assetic:dump
assets-watch:
app/console assetic:dump --watch
cs:
./bin/php-cs-fixer fix --verbose
cs_dry_run:
./bin/php-cs-fixer fix --verbose --dry-run