-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (33 loc) · 917 Bytes
/
Makefile
File metadata and controls
48 lines (33 loc) · 917 Bytes
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
.PHONY : all test test-travis eslint jscs karma mocha istanbul david dist literate README.md
BINDIR=node_modules/.bin
ESLINT=$(BINDIR)/eslint
JSCS=$(BINDIR)/jscs
MOCHA=$(BINDIR)/mocha
IMOCHA=$(BINDIR)/_mocha
ISTANBUL=$(BINDIR)/istanbul
KARMA=$(BINDIR)/karma
BROWSERIFY=$(BINDIR)/browserify
LJS=$(BINDIR)/ljs
DAVID=$(BINDIR)/david
all : test
test : eslint jscs mocha istanbul david
test-travis : test test-readme
MODULES=set drange
SRC=index.js $(MODULES)
eslint :
$(ESLINT) $(SRC)
jscs :
$(JSCS) $(SRC)
mocha :
MOCHA=$(MOCHA) ./run-tests.sh $(MODULES)
istanbul :
IMOCHA=$(IMOCHA) ISTANBUL=$(ISTANBUL) ./run-coverage.sh $(MODULES)
dist : test literate $(DIST)
git clean -fdx -e node_modules
david :
$(DAVID)
literate : README.md
README.md :
$(LJS) --no-code -o README.md index.js
test-readme : literate
git diff --exit-code || (echo "README.md is generated file, run 'make README.md'" && false)