Skip to content

Commit

Permalink
Merge pull request #3 from cbonitz/bugfix/package-json
Browse files Browse the repository at this point in the history
fixed package.json
  • Loading branch information
blecher-at committed Nov 7, 2015
2 parents 45ad662 + 181a2bf commit cc6310a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"keywords": [ "git", "soap" ],
"bin": { "git-json": "src/main/cli.js" },
"main": "src/index.js",
"scripts": {
"test": "src/test/index.js",
"start": "src/main/server.js" },
"scripts": {
"test": "node src/test/smoke.js",
"start": "node src/main/cli.js" },
"preferGlobal": true,
"private": true
}
9 changes: 4 additions & 5 deletions src/test/smoke.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@

var git2json = require('../index.js')
var git2json = require('../index.js');

var loggerCallback = function(text) {
var commits = git2json.gitparser(text, git2json.defaultParserplugins)
git2json.gitprocessor(commits, git2json.defaultProcessorplugins);
var commits = git2json.parser(text, git2json.defaultParserplugins)
git2json.processor(commits, git2json.defaultProcessorplugins);

console.log("commit: %s", JSON.stringify(commits, null, 2));
}

git2json.gitlogger.retrieve(30, loggerCallback)
git2json.logger.retrieve(30, loggerCallback);

0 comments on commit cc6310a

Please sign in to comment.