Skip to content

Commit

Permalink
Update project metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed May 13, 2013
1 parent 06b19c3 commit 82e7ce0
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 20 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(The MIT License)

Copyright (c) 2011 Jared Hanson
Copyright (c) 2012-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
Expand Down
29 changes: 17 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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/connect-flash/*.js
dox \
--title connect-flash \
--desc "Flash message middleware for Connect" \
$(shell find lib/connect-flash/* -type f) > $@
hint: lint
lint:
$(JSHINT) $(SOURCES)

docclean:
rm -f docs/*.{1,html}

.PHONY: test docs docclean
.PHONY: test hint lint
18 changes: 11 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,23 @@
"name": "connect-flash",
"version": "0.1.0",
"description": "Flash message middleware for Connect.",
"author": { "name": "Jared Hanson", "email": "[email protected]", "url": "http://www.jaredhanson.net/" },
"keywords": ["connect", "express", "flash", "messages"],
"repository": {
"type": "git",
"url": "git://github.com/jaredhanson/connect-flash.git"
},
"bugs": {
"url": "http://github.com/jaredhanson/connect-flash/issues"
},
"author": {
"name": "Jared Hanson",
"email": "[email protected]",
"url": "http://www.jaredhanson.net/"
},
"licenses": [ {
"type": "MIT",
"url": "http://www.opensource.org/licenses/MIT"
} ],
"main": "./lib",
"dependencies": {
},
Expand All @@ -19,10 +28,5 @@
"scripts": {
"test": "NODE_PATH=lib node_modules/.bin/vows test/*-test.js"
},
"engines": { "node": ">= 0.4.0" },
"licenses": [ {
"type": "MIT",
"url": "http://www.opensource.org/licenses/MIT"
} ],
"keywords": ["connect", "express", "flash", "messages"]
"engines": { "node": ">= 0.4.0" }
}

0 comments on commit 82e7ce0

Please sign in to comment.