-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
42 lines (31 loc) · 1.1 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
# locations of the latest compilers
YUIVERSION = yuicompressor-2.4.7
LATESTCLOSURE= http://closure-compiler.googlecode.com/files/compiler-latest.zip
LATESTYUI = http://yui.zenfs.com/releases/yuicompressor/$(YUIVERSION).zip
# configuration for the test suite
ALL_TESTS = $(shell find test/ -name '*.test.js')
# location of the vendor folder where all external tools are downloaded to
VENDOR = ./vendor
TMP = ./.build_tmp
download:
@rm $(VENDOR)/*.jar
@mkdir $(TMP)
@cd $(TMP) && curl $(LATESTCLOSURE) -o closure.zip && unzip closure.zip && mv compiler.jar .$(VENDOR)/closure.jar
@cd $(TMP) && curl $(LATESTYUI) -o yui.zip && unzip yui.zip && mv $(YUIVERSION)/build/$(YUIVERSION).jar .$(VENDOR)/yui.jar
@rm -Rf $(TMP)
test-suite:
@./node_modules/.bin/mocha $(ALL_TESTS)
test:
NODE_ENV=testing $(MAKE) test-suite
test-watch:
NODE_ENV=testing ./node_modules/.bin/mocha $(ALL_TESTS) --watch
client:
@square --bundle ./package.json --plugin update,minify --filename package
update:
@git submodule update --init --recursive
@npm install .
install:
@npm link .
todo:
grep "@TODO" -R ./
.PHONY: test test-watch