Permalink
Browse files

Add test suite to packages.

 - devDependency on nodeunit.
 - script so that "npm test" does the right thing.
 - formatting changes as imposed by "npm install --save".
  • Loading branch information...
1 parent 15078d9 commit f8cd17c2634ef0026a1ec46ae333a3a817c067e7 @calmh calmh committed Jun 14, 2012
Showing with 27 additions and 15 deletions.
  1. +27 −15 package.json
View
@@ -1,16 +1,28 @@
{
- "name": "nomnom",
- "description": "Option parser with generated usage and commands",
- "version": "1.5.1",
- "author": "Heather Arthur <fayearthur@gmail.com>",
- "repository": {
- "type": "git",
- "url": "http://github.com/harthur/nomnom.git"
- },
- "main": "./nomnom",
- "keywords": ["arguments", "option parser", "command line", "options", "parser"],
- "dependencies": {
- "underscore": "1.1.x",
- "colors": "0.5.x"
- }
-}
+ "name": "nomnom",
+ "description": "Option parser with generated usage and commands",
+ "version": "1.5.1",
+ "author": "Heather Arthur <fayearthur@gmail.com>",
+ "scripts": {
+ "test": "./node_modules/.bin/nodeunit test/*.js"
+ },
+ "repository": {
+ "type": "git",
+ "url": "http://github.com/harthur/nomnom.git"
+ },
+ "main": "./nomnom",
+ "keywords": [
+ "arguments",
+ "option parser",
+ "command line",
+ "options",
+ "parser"
+ ],
+ "dependencies": {
+ "underscore": "1.1.x",
+ "colors": "0.5.x"
+ },
+ "devDependencies": {
+ "nodeunit": "~0.7.4"
+ }
+}

0 comments on commit f8cd17c

Please sign in to comment.