Browse files

working on npm package

  • Loading branch information...
1 parent 256be8d commit 9e68617dcc48f6dd9578a67aa82ab6c8fdb07c1b @bbyars committed May 29, 2011
Showing with 18 additions and 25 deletions.
  1. +1 −2 TODO.md
  2. +17 −23 server/package.json.template
View
3 TODO.md
@@ -1,13 +1,12 @@
## Refactorings
* filter out stub matching logic into module, unit test
* Remove string.format for something more javascript like
-* Move cli object in bin/httpmock to lib (we need to require from that dir anyhow)
-** Add tests
## Build
* packages: npm, brew
* web page with artifacts
* Add test coverage
+* Don't include tags in build
## Functionality
* Add HTML pages for the different rel urls
View
40 server/package.json.template
@@ -5,39 +5,33 @@
"keywords": ["testing", "REST"],
"homepage": "https://github.com/bbyars/httpmock",
"author": "Brandon Byars <brandon.byars@gmail.com> (http://brandonbyars.com)",
- "files": ["lib", "scripts", "test"],
+ "files": ["lib", "bin", "test"],
"repository": "git://github.com/bbyars/httpmock.git",
"dependencies": {
- "connect": "~1.0.1",
- "express": "~2.0.0",
- "mime": "~0.0.1",
- "qs": "~0.0.6"
+ "connect": "1.0.6",
+ "express": "2.0.0beta3",
+ "mime": "1.2.2",
+ "qs": "0.1.0"
},
"devDependencies": {
"nodelint": "~0.4.0",
"nodeunit": "~0.5.1"
},
"engines" : {
"node" : ">=0.4.0 <0.5.0"
- }
-/*
+ },
"scripts": {
- "start": "..",
- "stop": "..",
- "restart": "..",
- "pretest": "startup",
- "test": "..",
- "posttest": "shutdown"
- }
+ "start": "bin/httpmock start",
+ "stop": "bin/httpmock stop",
+ "restart": "bin/httpmock restart",
+ "pretest": "bin/httpmock start",
+ "test": "bin/run_tests",
+ "posttest": "bin/httpmock stop"
+ },
"directories": {
"lib": "./lib",
- "bin": "./bin",
- "man": "./man",
- "doc": "./doc",
- "example": "./example"
- }
- "bin": {},
- "man": "./man/httpmock.1"
-*/
- }
+ "bin": "./bin"
+ },
+ "bin": "bin/httpmock",
+ "preferGlobal": true
}

0 comments on commit 9e68617

Please sign in to comment.