forked from schmittjoh/twig.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (23 loc) · 743 Bytes
/
Makefile
File metadata and controls
35 lines (23 loc) · 743 Bytes
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
PLOVR_URL="http://plovr.googlecode.com/files/plovr-81ed862.jar"
build: clean twig.js twig.dev.js
clean:
rm -f twig.js
rm -f twig.dev.js
twig.js: bin/plovr
java -jar bin/plovr build Resources/config/compile.js
twig.dev.js: bin/plovr
java -jar bin/plovr build Resources/config/compile_dev.js
bin/plovr:
wget $(PLOVR_URL) -O bin/plovr
test: vendor node_modules
node tests-js/dnode.js &
./vendor/bin/phpunit
./node_modules/.bin/mocha --require tests-js/bootstrap.js tests-js/twig/* tests-js/twig/*/*
node_modules:
npm install
vendor:
php composer.phar install
phpcs: vendor
./vendor/bin/phpcs --standard=PSR2 --error-severity=1 src
./vendor/bin/phpcs --standard=PSR2 --error-severity=1 tests
.PHONY: build clean test phpcs