forked from collection-json/collection-json.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (49 loc) · 1.59 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
DOCS = docs/*.md
HTMLDOCS = $(DOCS:.md=.html)
REPORTER = spec
test:
@NODE_ENV=test ./node_modules/.bin/mocha \
--reporter $(REPORTER) test/test.js
test-acceptance:
@NODE_ENV=test ./node_modules/.bin/mocha \
-script --reporter $(REPORTER) \
test/acceptance/integration.js
build:
@mkdir -p build
build/collection-json.js: build
@echo "Building bare"
@./node_modules/browserify/bin/cmd.js \
-i 'underscore' \
browser/cj.bare.js \
-o build/collection-json.js
build/collection-json.min.js: build
@echo "Minify bare"
@./node_modules/.bin/uglifyjs \
-o ./build/collection-json.min.js \
./build/collection-json.js
build/collection-json.angular.js: build
@echo "Building angular"
@./node_modules/browserify/bin/cmd.js \
-i 'underscore' \
browser/cj.angular.cj \
-o build/collection-json.angular.js
build/collection-json.angular.min.js: build
@echo "Minify angular"
@./node_modules/.bin/uglifyjs \
-o ./build/collection-json.angular.min.js \
./build/collection-json.angular.js
build/jquery.collection-json.js: build
@echo "Building jquery"
@./node_modules/browserify/bin/cmd.js \
-i 'underscore' \
browser/cj.jquery.js \
-o build/jquery.collection-json.js
build/jquery.collection-json.min.js: build
@echo "Minify jquery"
@./node_modules/.bin/uglifyjs \
-o ./build/jquery.collection-json.min.js \
./build/jquery.collection-json.js
client: build build/collection-json.js build/collection-json.min.js \
build/collection-json.angular.js build/collection-json.angular.min.js\
build/jquery.collection-json.js build/jquery.collection-json.min.js
.PHONY: test test-acceptance client