summaryrefslogtreecommitdiff
path: root/node_modules/superagent/Makefile
diff options
context:
space:
mode:
authorAlee14 <alee14498@gmail.com>2017-03-26 15:18:10 -0400
committerAlee14 <alee14498@gmail.com>2017-03-26 15:18:10 -0400
commit29433e2f7dbd0e4a73d3c78ffe1005b922fb5982 (patch)
treeaa0ad3fe59468cbe452ee597e914839b68c01436 /node_modules/superagent/Makefile
parent878fefb4c4e1f12b804ae5c0def433fa873f4c8b (diff)
downloadAleeBot-29433e2f7dbd0e4a73d3c78ffe1005b922fb5982.tar.gz
AleeBot-29433e2f7dbd0e4a73d3c78ffe1005b922fb5982.tar.bz2
AleeBot-29433e2f7dbd0e4a73d3c78ffe1005b922fb5982.zip
Don't mind me i'm adding the discord.js files
Diffstat (limited to 'node_modules/superagent/Makefile')
-rw-r--r--node_modules/superagent/Makefile57
1 files changed, 57 insertions, 0 deletions
diff --git a/node_modules/superagent/Makefile b/node_modules/superagent/Makefile
new file mode 100644
index 0000000..31f3ef3
--- /dev/null
+++ b/node_modules/superagent/Makefile
@@ -0,0 +1,57 @@
+
+NODETESTS ?= test/*.js test/node/*.js
+BROWSERTESTS ?= test/*.js test/client/*.js
+REPORTER = spec
+
+all: superagent.js
+
+test:
+ @if [ "x$(BROWSER)" = "x" ]; then make test-node; else make test-browser; fi
+
+test-node:
+ @NODE_ENV=test NODE_TLS_REJECT_UNAUTHORIZED=0 ./node_modules/.bin/mocha \
+ --require should \
+ --reporter $(REPORTER) \
+ --timeout 5000 \
+ --growl \
+ $(NODETESTS)
+
+test-cov: lib-cov
+ SUPERAGENT_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
+
+test-browser:
+ SAUCE_APPIUM_VERSION=1.6 ./node_modules/.bin/zuul -- $(BROWSERTESTS)
+
+test-browser-local:
+ ./node_modules/.bin/zuul --no-coverage --local 4000 -- $(BROWSERTESTS)
+
+lib-cov:
+ jscoverage lib lib-cov
+
+superagent.js: lib/node/*.js lib/node/parsers/*.js
+ @./node_modules/.bin/browserify \
+ --standalone superagent \
+ --outfile superagent.js .
+
+test-server:
+ @node test/server
+
+docs: index.html test-docs docs/index.md
+
+index.html: docs/index.md docs/head.html docs/tail.html
+ marked < $< \
+ | cat docs/head.html - docs/tail.html \
+ > $@
+
+docclean:
+ rm -f index.html test.html
+
+test-docs: docs/head.html docs/tail.html
+ make test REPORTER=doc \
+ | cat docs/head.html - docs/tail.html \
+ > test.html
+
+clean:
+ rm -fr superagent.js components
+
+.PHONY: test-cov test docs test-docs clean test-browser-local