forked from koorgoo/ngCropper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (21 loc) · 654 Bytes
/
Copy pathMakefile
File metadata and controls
26 lines (21 loc) · 654 Bytes
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
MINIFY=node_modules/minify/bin/minify.js
CROPPER_JS=cropper/dist/cropper.js
CROPPER_CSS=cropper/dist/cropper.css
BROWSER=open -a "/Applications/Google Chrome.app"
prep:
bower install
npm install
dist:
rm dist/*
cp ngCropper.js dist/ngCropper.js
$(MINIFY) dist/ngCropper.js > dist/ngCropper.min.js
cp $(CROPPER_JS) dist/ngCropper.all.js
cat ngCropper.js >> dist/ngCropper.all.js
cp $(CROPPER_CSS) dist/ngCropper.all.css
$(MINIFY) dist/ngCropper.all.js > dist/ngCropper.all.min.js
$(MINIFY) dist/ngCropper.all.css > dist/ngCropper.all.min.css
test:
$(BROWSER) test/index.html
demo:
$(BROWSER) demo/index.html
.PHONY: prepare dist test demo