UNPKG

1.33 kBPlain TextView Raw
1work : lint tests README.pdf
2clean :
3 -rm -f .fw4ex.json [0-9]*ml
4
5# ############## Working rules:
6
7lint :
8 jshint codegradxagent.js spec/*.js
9
10tests : spec/oefgc.tgz
11# ./codegradxagent.js -h
12 -rm .fw4ex.json [0-9]*ml
13 jasmine
14
15spec/oefgc.tgz :
16 cp -p ../CodeGradXlib/spec/oefgc.tgz spec/
17
18# ############## NPM package
19
20CodeGradXagent.tgz :
21 -rm -rf tmp
22 mkdir -p tmp
23 cd tmp/ && git clone https://github.com/ChristianQueinnec/CodeGradXagent.git
24 rm -rf tmp/CodeGradXagent/.git
25 cp -p package.json tmp/CodeGradXagent/
26 tar czf CodeGradXagent.tgz -C tmp CodeGradXagent
27 tar tzf CodeGradXagent.tgz
28
29REMOTE = www.paracamplus.com
30install : CodeGradXagent.tgz
31 rsync -avu CodeGradXagent.tgz \
32 ${REMOTE}:/var/www/www.paracamplus.com/Resources/Javascript/
33
34# Caution: npm takes the whole directory that is . and not the sole
35# content of CodeGradXagent.tgz
36publish : README.pdf
37 git status .
38 -git commit -m "NPM publication `date`" .
39 git push
40 -rm -f CodeGradXagent.tgz
41 m CodeGradXagent.tgz install
42 cd tmp/CodeGradXagent/ && npm version patch && npm publish
43 cp -pf tmp/CodeGradXagent/package.json .
44 rm -rf tmp
45
46# ############## Various experiments (not all finished)
47
48README.tex : README.md
49 pandoc -o README.tex -f markdown README.md
50README.pdf : README.md
51 pandoc -o README.pdf -f markdown README.md
52
53# end of Makefile