-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
49 lines (35 loc) · 1.15 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
REPORTER=spec
COVERALLS_GIT_COMMIT=HEAD
COVERALLS_REPO_TOKEN=Che5WhsI4mbjDKH9dnrrxoFJ06ivbNzxs
export COVERALLS_GIT_COMMIT
export COVERALLS_REPO_TOKEN
test:
$(MAKE) lint
@NODE_ENV=test ./node_modules/.bin/mocha --reporter $(REPORTER)
authors:
node build/authors.js
compile:
@NODE_ENV=test
grunt
#echo Current Directory: $(CURDIR)
#./node_modules/.bin/browserify ./lib/3rd/* ./index.js -i ./bin/joola.js -o ./bin/joola.js
#node ./node_modules/.bin/uglifyjs $(CURDIR)/bin/joola.js --source-map $(CURDIR)/bin/joola.min.js.map --source-map-url /joola.min.js.map -p $$(grep -o "/" <<<"$(CURDIR)/" | wc -l) -c -m > ./bin/joola.min.js
watch:
@NODE_ENV=test
./node_modules/.bin/watchify ./lib/3rd/* ./index.js -i ./bin/joola.js -o ./bin/joola.js
lint:
@./node_modules/.bin/jshint ./src/lib ./test
doc:
find ./wiki/* ! -iregex '(.git|.npm)' | xargs rm -fr
node build/docs.js
test-cov:
$(MAKE) lint
$(MAKE) istanbul
istanbul:
./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- -R spec test
coveralls:
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
publish:
npm shrinkwrap
npm publish
.PHONY: test