-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
41 lines (35 loc) · 935 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
30
31
32
33
34
35
36
37
38
39
40
41
client_files = js/Function.js \
js/String.js \
js/Array.js \
js/Stream.js \
js/Coords.js \
js/Cost.js \
js/CubeCoords.js \
js/Tile.js \
js/Sector.js \
js/Intent.js \
js/Unit.js \
js/Rules.js \
js/WebComponent.js \
js/Q.js \
js/Http.js \
js/Renderer.js \
js/Client.js \
js/NodeApi.js
uglify = ./node_modules/uglify-js/bin/uglifyjs
mocha = ./node_modules/mocha/bin/mocha
jshint = ./node_modules/jshint/bin/jshint
bundle.js: $(client_files)
$(uglify) -cm --lint $(client_files) > bundle.js
.PHONY: test lint deploy
test: js/*.spec.js
$(mocha) js/*.spec.js
lint: js/*.js server.js
$(jshint) js/ server.js
deploy: test lint bundle.js
npm install
npm version patch
git push --follow-tags
scp bundle.js epoh:~/epoh/
rsync -avz --exclude js/Config.js . epoh:~/epoh
git log | grep commit | wc