aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-04-11 23:30:24 +0100
committerMichael Williamson <mike@zwobble.org>2013-04-11 23:30:24 +0100
commita95a351c62d7227100adc19a96edc2138908a58e (patch)
treed82fda742457f801489914922b8a7739068720c5 /makefile
parent90cf7be66b7ecbe11066fafcdcacf8f0c6bcf3e9 (diff)
Add browser support using browserify
Diffstat (limited to 'makefile')
-rw-r--r--makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/makefile b/makefile
index c95ce77..aa71fe0 100644
--- a/makefile
+++ b/makefile
@@ -3,9 +3,19 @@
test:
node_modules/.bin/mocha tests
-setup:
+setup: static/bootstrap static/jszip
+
+static/bootstrap:
mkdir -p _build/bootstrap
curl -L https://github.com/twitter/bootstrap/archive/v2.3.1.tar.gz | tar xz --directory _build/bootstrap --strip-components 1
cd _build/bootstrap; npm install; make bootstrap
cp -rT _build/bootstrap/bootstrap static/bootstrap
+
+static/jszip:
+ mkdir -p _build/jszip
+ curl -L https://github.com/Stuk/jszip/archive/v1.0.1.tar.gz | tar xz --directory _build/jszip --strip-components 1
+ mkdir -p static/jszip
+ cp _build/jszip/*.js static/jszip
+bundle.js:
+ node_modules/.bin/browserify lib/browser.js --standalone MAMMOTH > bundle.js