-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
280a6cc
commit ca834a9
Showing
4 changed files
with
39 additions
and
45 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
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,19 +1,24 @@ | |||
NODE = node | SOURCES = lib/**/*.js | ||
TEST = ./node_modules/.bin/vows |
|
||
# ============================================================================== | |||
# Node Tests | |||
# ============================================================================== | |||
|
|||
VOWS = ./node_modules/.bin/vows | |||
TESTS ?= test/*-test.js | TESTS ?= test/*-test.js | ||
|
|
||
test: | test: | ||
@NODE_ENV=test NODE_PATH=lib $(TEST) $(TEST_FLAGS) $(TESTS) | @NODE_ENV=test NODE_PATH=lib $(VOWS) $(TESTS) | ||
|
|||
# ============================================================================== | |||
# Static Analysis | |||
# ============================================================================== | |||
|
|
||
docs: docs/api.html | JSHINT = jshint | ||
|
|
||
docs/api.html: lib/passport-openstreetmap/*.js | hint: lint | ||
dox \ | lint: | ||
--title Passport-OpenStreetMap \ | $(JSHINT) $(SOURCES) | ||
--desc "OpenStreetMap authentication strategy for Passport" \ | |||
$(shell find lib/passport-openstreetmap/* -type f) > $@ | |||
|
|
||
docclean: | |||
rm -f docs/*.{1,html} | |||
|
|
||
.PHONY: test docs docclean | .PHONY: test hint lint |
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