arnaucube
arnaucube/comunicationLeapPublic Self-hosted repository
comunicationLeap/node_modules/engine.io-client/Makefile
node_modules/engine.io-client/MakefileRaw
 1
 2REPORTER = dot
 3
 4build: engine.io.js
 5
 6engine.io.js: lib/*.js lib/transports/*.js package.json
 7	@./support/browserify.sh > engine.io.js
 8
 9test:
10	@if [ "x$(BROWSER_NAME)" = "x" ]; then make test-node; else make test-zuul; fi
11
12test-node:
13	@./node_modules/.bin/mocha \
14		--reporter $(REPORTER) \
15		test/index.js
16
17test-zuul:
18	@if [ "x$(BROWSER_PLATFORM)" = "x" ]; then \
19		./node_modules/zuul/bin/zuul \
20		--browser-name $(BROWSER_NAME) \
21		--browser-version $(BROWSER_VERSION) \
22		test/index.js; \
23		else \
24		./node_modules/zuul/bin/zuul \
25		--browser-name $(BROWSER_NAME) \
26		--browser-version $(BROWSER_VERSION) \
27		--browser-platform "$(BROWSER_PLATFORM)" \
28		test/index.js; \
29	fi
30
31test-cov:
32	@./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- \
33		--require ./test/common \
34		--reporter $(REPORTER) \
35		$(TESTS)
36
37.PHONY: test build