diff --git a/LICENSE b/LICENSE index 74524ce..ec885b5 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ (The MIT License) -Copyright (c) 2011 Jared Hanson +Copyright (c) 2011-2013 Jared Hanson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/Makefile b/Makefile index ddaeb4d..cfb2f3b 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,24 @@ -NODE = node -TEST = ./node_modules/.bin/vows +SOURCES = lib/**/*.js + +# ============================================================================== +# Node Tests +# ============================================================================== + +VOWS = ./node_modules/.bin/vows TESTS ?= test/*-test.js 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-yahoo/*.js - dox \ - --title Passport-Yahoo \ - --desc "Yahoo! (OpenID) authentication strategy for Passport" \ - $(shell find lib/passport-yahoo/* -type f) > $@ +hint: lint +lint: + $(JSHINT) $(SOURCES) -docclean: - rm -f docs/*.{1,html} -.PHONY: test docs docclean +.PHONY: test hint lint diff --git a/package.json b/package.json index e9eb8ac..d251bf1 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "passport-yahoo", "version": "0.2.0", "description": "Yahoo! (OpenID) authentication strategy for Passport.", - "author": { "name": "Jared Hanson", "email": "jaredhanson@gmail.com", "url": "http://www.jaredhanson.net/" }, + "keywords": ["passport", "yahoo", "auth", "authn", "authentication", "identity"], "repository": { "type": "git", "url": "git://github.com/jaredhanson/passport-yahoo.git" @@ -10,6 +10,15 @@ "bugs": { "url": "http://github.com/jaredhanson/passport-yahoo/issues" }, + "author": { + "name": "Jared Hanson", + "email": "jaredhanson@gmail.com", + "url": "http://www.jaredhanson.net/" + }, + "licenses": [ { + "type": "MIT", + "url": "http://www.opensource.org/licenses/MIT" + } ], "main": "./lib/passport-yahoo", "dependencies": { "pkginfo": "0.2.x", @@ -21,10 +30,5 @@ "scripts": { "test": "NODE_PATH=lib node_modules/.bin/vows test/*-test.js" }, - "engines": { "node": ">= 0.6.0" }, - "licenses": [ { - "type": "MIT", - "url": "http://www.opensource.org/licenses/MIT" - } ], - "keywords": ["passport", "yahoo", "auth", "authn", "authentication", "identity"] + "engines": { "node": ">= 0.6.0" } }