Skip to content

Commit 04d4a12

Browse files
committed
jQuery plugin shim and Makefile changes
1 parent 29cf876 commit 04d4a12

File tree

10 files changed

+687
-5
lines changed

10 files changed

+687
-5
lines changed

Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
SHELL := /bin/bash
2+
BIN := ./node_modules/.bin/
3+
4+
build:
5+
$(BIN)coffee -c --no-header -o ./dist/ ./src/payform.coffee
6+
$(BIN)uglify -s ./dist/payform.js -o ./dist/payform.min.js
7+
$(BIN)browserify -t coffeeify --extension='.coffee' ./src/jquery.payform.coffee > ./dist/jquery.payform.js
8+
$(BIN)uglify -s ./dist/jquery.payform.js -o ./dist/jquery.payform.min.js
9+
10+
watch: build
11+
$(BIN)watch 'make build' ./src
12+
13+
test:
14+
$(BIN)mocha ./test/**_spec.coffee
15+
16+
.PHONY: build test watch

0 commit comments

Comments
 (0)