summaryrefslogtreecommitdiff
path: root/node_modules/mongoose/Makefile
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2012-09-24 16:22:07 -0400
committerJules Laplace <jules@okfoc.us>2012-09-24 16:22:07 -0400
commit686106d544ecc3b6ffd4db2b665d3bc879a58d8c (patch)
treea5b5e50237cef70e12f0745371896e96f5f6d578 /node_modules/mongoose/Makefile
ok
Diffstat (limited to 'node_modules/mongoose/Makefile')
-rw-r--r--node_modules/mongoose/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/node_modules/mongoose/Makefile b/node_modules/mongoose/Makefile
new file mode 100644
index 0000000..cdbcc19
--- /dev/null
+++ b/node_modules/mongoose/Makefile
@@ -0,0 +1,25 @@
+
+TESTS = $(shell find test/ -name '*.test.js')
+
+test:
+ @NODE_ENV=test ./support/expresso/bin/expresso \
+ $(TESTFLAGS) \
+ $(TESTS)
+ @node test/dropdb.js
+
+test-cov:
+ @TESTFLAGS=--cov $(MAKE) test
+
+docs: docs/api.html
+
+docs/api.html: lib/mongoose/*.js
+ dox \
+ --private \
+ --title Mongooose \
+ --desc "Expressive MongoDB for Node.JS" \
+ $(shell find lib/mongoose/* -type f) > $@
+
+docclean:
+ rm -f docs/*.{1,html}
+
+.PHONY: test test-cov docs docclean