-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
39 lines (30 loc) · 937 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
TMP_DIR=tmp
SRC_DIR=src
BUILD_OPTIONS_DIR=build
BUILD_OPTIONS=$(BUILD_OPTIONS_DIR)/build.js
RJS=node_modules/.bin/r.js
all: build
build: combine clean
convert: $(RJS)
$(RJS) -convert $(SRC_DIR) $(TMP_DIR)
combine: $(RJS) convert
$(RJS) -o $(BUILD_OPTIONS) baseUrl=$(TMP_DIR)
clean:
rm -rf $(TMP_DIR)
coverage: build clean
jscoverage \
--exclude=.git \
--no-instrument=jquery.js \
--no-instrument=renderers \
--no-instrument=node_modules \
--no-instrument=demo \
--no-instrument=test/vendor \
--no-instrument=$(SRC_DIR) \
--no-instrument=$(BUILD_OPTIONS_DIR) \
--no-instrument=$(TMP_DIR) \
. \
../tyrtle-coverage
minify: convert
$(RJS) -o $(BUILD_OPTIONS) baseUrl=$(TMP_DIR) optimize=uglify out=Tyrtle.mini.js
$(RJS):
npm install