-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
18 lines (13 loc) · 720 Bytes
/
Makefile
File metadata and controls
18 lines (13 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
all: build minify headerify
build:
@browserify lib/index.js --standalone base-62 > index.js
minify:
@uglifyjs index.js --compress --mangle --stats --output index.min.js --source-map index.min.js.map
headerify:
@cat ./lib/header.js
@cat ./lib/header.js > tmp.js && cat index.js >> tmp.js && mv tmp.js index.js
@cat ./lib/header.js > tmp.js && cat index.min.js >> tmp.js && mv tmp.js index.min.js
clean:
@rm index.js index.min.js index.min.js.map
test:
if [ -e ./node_modules/.bin/minijasminenode2 ]; then ./node_modules/.bin/minijasminenode2 --verbose --forceexit **/*_spec.js; else printf "\nMini Jasmine not installed @ ./node_modules/.bin/minijasminenode2...\n\nTrying npm install\n\n" && npm install; fi;