Skip to content

Commit 5159991

Browse files
committed
adding git stuff
1 parent ad4b715 commit 5159991

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

checkout.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
var debug = require('debug')('HelloWorld:checkout');
2+
3+
var vsocheckout = require('vsocheckout');
4+
5+
var url = 'localhost:3000/vsostatus';
6+
7+
vsocheckout.getStatus(url, 236, function(err, result){
8+
if (err) console.error(err);
9+
else {
10+
debug('got data to work with..');
11+
vsocheckout.checkout(result);
12+
13+
}
14+
15+
16+
});
17+

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
"private": true,
55
"scripts": {
66
"start": "node ./bin/www",
7-
"debug": "set DEBUG=HelloWorld:* && nodemon ./bin/www"
7+
"debug": "set DEBUG=HelloWorld:* && nodemon ./bin/www",
8+
"test": "set DEBUG=*:* && node checkout.js",
9+
"pretest": "npm uninstall vsocheckout && npm install file:..\\..\\vs\\vsocheckout",
10+
"quick" : "set DEBUG=*:* && node checkout.js"
811
},
912
"dependencies": {
1013
"body-parser": "~1.13.2",
@@ -14,7 +17,8 @@
1417
"jade": "~1.11.0",
1518
"less-middleware": "1.0.x",
1619
"morgan": "~1.6.1",
17-
"serve-favicon": "~2.3.0"
20+
"serve-favicon": "~2.3.0",
21+
"vsocheckout": "file:..\\..\\vs\\vsocheckout"
1822
},
1923
"devDependencies": {
2024
"del": "^2.2.0",

0 commit comments

Comments
 (0)