-
Notifications
You must be signed in to change notification settings - Fork 81
/
Makefile
31 lines (22 loc) · 816 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
SHELL := /bin/bash
BIN := node_modules/.bin/
build: dist/payform.js dist/payform.min.js dist/jquery.payform.js dist/jquery.payform.min.js
dist/payform.js: src/payform.coffee
$(BIN)coffee -c --no-header -o dist/ src/payform.coffee
dist/payform.min.js: dist/payform.js
$(BIN)uglifyjs dist/payform.js -o dist/payform.min.js
dist/jquery.payform.js: src/jquery.payform.coffee
$(BIN)browserify \
-p bundle-collapser/plugin \
-t coffeeify \
--extension='.coffee' \
src/jquery.payform.coffee > dist/jquery.payform.js
dist/jquery.payform.min.js: dist/jquery.payform.js
$(BIN)uglifyjs dist/jquery.payform.js -o dist/jquery.payform.min.js
watch: build
$(BIN)watch 'make build' src
test:
$(BIN)mocha test/**_spec.coffee
clean:
rm -rf dist/*.js
.PHONY: build test watch