forked from senchalabs/connect
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove body parser and various cleanup
- Loading branch information
1 parent
c8801e6
commit 5c5e81f
Showing
18 changed files
with
9 additions
and
785 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,19 @@ | ||
|
||
TESTS = test/*.js | ||
REPORTER = dot | ||
DOX = ./node_modules/.bin/dox | ||
|
||
SRC = $(shell find lib/*.js lib/middleware/*.js) | ||
HTML = $(SRC:.js=.html) | ||
|
||
test: | ||
@NODE_ENV=test ./node_modules/.bin/mocha \ | ||
--reporter $(REPORTER) \ | ||
$(TESTS) | ||
|
||
docs: $(HTML) | ||
@mv $(HTML) docs | ||
|
||
test-cov: lib-cov | ||
@CONNECT_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html | ||
|
||
lib-cov: | ||
@jscoverage lib $@ | ||
|
||
%.html: %.js | ||
$(DOX) < $< | node support/docs > $@ | ||
|
||
docclean: | ||
rm -f $(HTML) | ||
|
||
site: docclean docs | ||
rm -fr /tmp/docs \ | ||
&& cp -fr docs /tmp/docs \ | ||
&& git checkout gh-pages \ | ||
&& cp -fr /tmp/docs/* . \ | ||
&& echo "done" | ||
|
||
benchmark: | ||
@./support/bench | ||
|
||
.PHONY: test-cov site docs test docclean benchmark | ||
.PHONY: test-cov test benchmark |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.