forked from moscajs/mosca
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
39 lines (31 loc) · 909 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
test:
./node_modules/.bin/mocha --recursive test
bail:
./node_modules/.bin/mocha --recursive test --bail --reporter spec
ci:
./node_modules/.bin/mocha --recursive --watch test
BEAUTIFY=./node_modules/.bin/js-beautify -r -s 2 -j
beautify:
find lib -name "*.js" -print0 | xargs -0 $(BEAUTIFY)
find test -name "*.js" -print0 | xargs -0 $(BEAUTIFY)
docs-clean:
rm -rf docs
docs: docs-clean
./node_modules/.bin/dox-foundation --source lib --target docs --title Mosca
publish-docs: docs
git stash
rm -rf /tmp/mosca-docs
cp -R docs /tmp/mosca-docs
git checkout gh-pages
git pull origin gh-pages
rm -rf docs
cp -R /tmp/mosca-docs docs
git add docs
git commit -m "Updated docs"
git push origin
git checkout master
git stash apply
jshint:
find lib -name "*.js" -print0 | xargs -0 ./node_modules/.bin/jshint
find test -name "*.js" -print0 | xargs -0 ./node_modules/.bin/jshint
.PHONY: test