-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
49 lines (37 loc) · 881 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
.PHONY: clean_deps test phpcs phpcs-fixer phpcbf
clean_deps:
rm -rf vendor
install_web_deps:
make clean_deps
COMPOSER=composer-web-7-0.json composer install --no-dev
install_dev_deps:
make clean_deps
COMPOSER=composer-dev.json composer install --dev
dist/blueprints.phar: install_web_deps
find src \(\
-name '*.md' -o \
-name 'README.*' -o \
-name 'LICENSE' -o \
-name 'CHANGELOG' -o \
-name '.travis.yml' -o \
-name 'phpunit.xml*' -o \
-name 'package.json' -o \
-name 'Tests' -o \
-name 'composer.json' \) \
-exec rm -rf {} \+
box compile
cd dist && zip blueprints.zip blueprints.phar
git reset --hard
bundle_web: dist/blueprints.phar
clean_phar:
rm -rf dist/blueprints.phar
clean: clean_phar
make clean_deps
test:
phpunit
phpcs:
phpcs ./src/WordPress -s
phpcs-fixer:
php-cs-fixer fix ./src/WordPress
phpcbf:
phpcbf ./src/WordPress