-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathMakefile
56 lines (43 loc) · 968 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
.PHONY: all
.DEFAULT: all
REPORTER ?= dot
all:
@/usr/bin/env npm install
ca-bundler:
@cd ca-bundle && ../tools/mk-ca-bundle.pl
@tools/mk-ca-bundle.js
$(MAKE) beautify
lint:
@tools/lint.sh lib test
publish: all production
@/usr/bin/env npm publish
$(MAKE) development
tests: test
check: test
test: all lint
@rm -f hello.txt
@rm -f world.txt
@rm -f foo.txt
@./node_modules/.bin/mocha --reporter $(REPORTER)
test08:
@npm install mocha chai form-data mmmagic [email protected]
@rm -f hello.txt
@rm -f world.txt
@rm -f foo.txt
@./node_modules/.bin/mocha --reporter $(REPORTER)
beautify:
@tools/beautify.sh
doc:
jsdoc --destination ../docs lib README.md
docpublish: doc
cd ../docs && git commit --all --message "Auto generated documentation" && git push origin gh-pages
prod: production
production:
@tools/production.sh
dev: development
development:
@tools/development.sh
contributors:
@git shortlog -s -n --all
clean:
rm -rf node_modules