-
Notifications
You must be signed in to change notification settings - Fork 19
/
makefile
30 lines (21 loc) · 833 Bytes
/
makefile
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
27
28
29
VERSION ?= edge
CFLAGS = -c -g -D $(VERSION)
default: deps test compile
help:
@echo " [default] installs dependencies, tests and compiles for the browser"
@echo " deps install dependencies"
@echo " test runs tests"
@echo " compile builds the JS files for use in the browser"
@echo " serve run the webserver"
@echo " shrinkwrap resets the shrinkwrap.json file"
deps:
npm install
test:
npm test
compile:
"./node_modules/.bin/browserify" lib/app.js | "./node_modules/.bin/uglifyjs" -c > dist/forkability.$(VERSION).min.js
"./node_modules/.bin/browserify" lib/app.js > dist/forkability.$(VERSION).js
serve:
ruby -rwebrick -e'WEBrick::HTTPServer.new(:Port => 3000, :DocumentRoot => Dir.pwd).start'
shrinkwrap:
rm -rf node_modules/ npm-shrinkwrap.json && npm install && npm shrinkwrap