mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-03 18:36:20 +00:00
0ca9b00100
Note that the compiled .js file (generated by "make"/"make test") is still under version control so folks can work on the project even without a running "coffee" command in PATH. Also updated README to mention coffee-script and "make test".
18 lines
465 B
Makefile
18 lines
465 B
Makefile
COFFEE = $(shell find . -name '*.coffee' -a ! -regex '.*node_modules.*' | sed 's/\.coffee/\.js/')
|
|
|
|
all :: $(COFFEE)
|
|
|
|
test :: parserTests.txt all
|
|
node ./parserTests.js --cache parserTests.txt
|
|
|
|
TESTS_URL = http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3/tests/parser/parserTests.txt
|
|
parserTests.txt ::
|
|
-if [ ! -e parserTests.txt ] ; then curl -O $(TESTS_URL) || wget $(TESTS_URL) ; fi
|
|
|
|
.PHONY: test all
|
|
|
|
.SUFFIXES: .coffee .js
|
|
|
|
.coffee.js:
|
|
coffee -c -b $<
|