forked from skopp/nudgepad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
81 lines (61 loc) · 3.23 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
REPORTER ?= dot
all:
node /nudgepad/nudgepad/client/build.js prod
cp /nudgepad/nudgepad/client/production/nudgepad.min.js /nudgepad/nudgepad/client/production/nudgepad.temp.js
java -jar /nudgepad/compiler/compiler.jar --js=client/production/nudgepad.temp.js --js_output_file=client/production/nudgepad.min.js --language_in=ECMASCRIPT5
rm /nudgepad/nudgepad/client/production/nudgepad.temp.js
ace:
cp -R ~/ace-builds/src-noconflict /nudgepad/nudgepad/client/public/js/ace
cloc:
~/cloc /nudgepad/nudgepad/client/tools /nudgepad/nudgepad/client/build.js /nudgepad/nudgepad/client/core /nudgepad/nudgepad/client/public/*.html /nudgepad/nudgepad/server/ /nudgepad/nudgepad/system/ /nudgepad/nudgepad/client/public/js/space.js /nudgepad/nudgepad/client/public/js/Lasso.js /nudgepad/nudgepad/client/public/js/scraps.js /nudgepad/nudgepad/client/public/js/events.js --by-file-by-lang
#test-client:
# open /nudgepad/nudgepad/client/tests/main.dev.html
#test-client-min:
# open /nudgepad/nudgepad/client/tests/main.html
csstospace:
cp ~/csstospace/csstospace.js /nudgepad/nudgepad/client/public/js/csstospace.js
csvtospace:
cp ~/csvtospace/csvtospace.js /nudgepad/nudgepad/client/public/js/csvtospace.js
expressfs:
cp ~/expressfs/expressfs.browser.js /nudgepad/nudgepad/client/public/js/expressfs.browser.js
# Todo: make expressfs an npm package
cp ~/expressfs/expressfs.server.js /nudgepad/nudgepad/server/expressfs.server.js
events:
cp ~/events/events.js /nudgepad/nudgepad/client/public/js/events.js
cp ~/events/events.min.js /nudgepad/nudgepad/client/public/js/events.min.js
htmltoscraps:
cp ~/htmltoscraps/jquery.htmltoscraps.js /nudgepad/nudgepad/client/public/js/jquery.htmltoscraps.js
mate:
mate build.js core Makefile tools
scraps:
cp ~/scraps/scraps.js /nudgepad/nudgepad/client/public/js/scraps.js
cp ~/scraps/scraps.min.js /nudgepad/nudgepad/client/public/js/scraps.min.js
socketfs:
cp ~/socketfs/socketfs.browser.js /nudgepad/nudgepad/client/public/js/socketfs.browser.js
# Todo: make socketfs an npm package
cp ~/socketfs/socketfs.server.js /nudgepad/nudgepad/server/socketfs.server.js
space:
cp ~/space/space.js /nudgepad/nudgepad/client/public/js/space.js
cp ~/space/space.min.js /nudgepad/nudgepad/client/public/js/space.min.js
test: test-server
test-server:
@mocha \
--reporter $(REPORTER) \
server/tests
test-system:
@node system/tests/test.js
# Retrack generated files to deploy
track:
git update-index --no-assume-unchanged /nudgepad/nudgepad/client/production/nudgepad.dev.html
git update-index --no-assume-unchanged /nudgepad/nudgepad/client/production/nudgepad.min.html
git update-index --no-assume-unchanged /nudgepad/nudgepad/client/production/nudgepad.min.css
git update-index --no-assume-unchanged /nudgepad/nudgepad/client/production/nudgepad.min.js
# Before you start developing, untrack generated files
untrack:
git update-index --assume-unchanged /nudgepad/nudgepad/client/production/nudgepad.dev.html
git update-index --assume-unchanged /nudgepad/nudgepad/client/production/nudgepad.min.html
git update-index --assume-unchanged /nudgepad/nudgepad/client/production/nudgepad.min.css
git update-index --assume-unchanged /nudgepad/nudgepad/client/production/nudgepad.min.js
version:
node version.js
.PHONY: test-server test-system