Skip to content

Commit

Permalink
jQuery plugin shim and Makefile changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jondavidjohn committed Feb 8, 2015
1 parent 29cf876 commit 04d4a12
Show file tree
Hide file tree
Showing 10 changed files with 687 additions and 5 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
SHELL := /bin/bash
BIN := ./node_modules/.bin/

build:
$(BIN)coffee -c --no-header -o ./dist/ ./src/payform.coffee
$(BIN)uglify -s ./dist/payform.js -o ./dist/payform.min.js
$(BIN)browserify -t coffeeify --extension='.coffee' ./src/jquery.payform.coffee > ./dist/jquery.payform.js
$(BIN)uglify -s ./dist/jquery.payform.js -o ./dist/jquery.payform.min.js

watch: build
$(BIN)watch 'make build' ./src

test:
$(BIN)mocha ./test/**_spec.coffee

.PHONY: build test watch
Loading

0 comments on commit 04d4a12

Please sign in to comment.