This repository has been archived by the owner on Dec 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
69 lines (47 loc) · 1.69 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
ENV ?= "dev"
JSON_FILE_SRC = $(shell find src/ -name '*.json')
JSON_FILE_APP = $(shell find app/ -name '*.json')
all: install
install: composer-install npm-install assets
install-ci: composer-install-ci npm-install assets
composer-install:
composer install
composer-install-ci:
composer install --no-interaction --no-progress --ignore-platform-reqs
lint: lint-php lint-twig lint-yaml lint-xliff lint-css
lint-ci: lint-php-ci lint-twig lint-yaml lint-xliff lint-json
lint-php:
./vendor/bin/phpcs
lint-php-ci:
./vendor/bin/phpcs --report-checkstyle=phpcs-checkstyle.xml --report-full
lint-twig:
bin/console lint:twig app src
lint-yaml:
bin/console lint:yaml app
bin/console lint:yaml src
lint-xliff:
bin/console lint:xliff app
bin/console lint:xliff src
lint-css:
gulp lint-css
lint-json:
./vendor/bin/jsonlint $(JSON_FILE_SRC) $(JSON_FILE_APP)
stan:
./vendor/bin/phpstan analyse -c phpstan.neon -l 5 app src
stan-ci:
./vendor/bin/phpstan --no-interaction --no-progress analyse --errorFormat=checkstyle -c phpstan.neon -l 5 app src > phpstan-checkstyle.xml || \
(sed -i 's/<error/<error source="phpstan"/g' phpstan-checkstyle.xml && false)
npm-install:
npm install --no-save
assets:
gulp deploy
dev-from-scratch:
vagrant destroy -f && vagrant up
translations:
rm -f var/translations/*.xliff
rm -f var/cache/$(ENV)/translations/*
bin/console --env=$(ENV) wizaplace:translations:push
bin/console --env=$(ENV) wizaplace:translations:pull
docker-build:
docker build -t wizaplace/starterkit .
.PHONY: all install install-ci composer-install composer-install-ci npm-install assets lint lint-ci lint-php lint-php-ci lint-yaml lint-twig lint-xliff lint-css stan stan-ci dev-from-scratch docker-build