Skip to content

Commit

Permalink
Make package testable with 'npm test'
Browse files Browse the repository at this point in the history
  • Loading branch information
matthijsgroen committed Jan 6, 2013
1 parent f102df5 commit 0e9fe24
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,14 @@
"sinon": ">= 1.5.2",
"chai-changes": ">= 0.8.0",
"backbone": ">= 0.9.2"
}
},
"scripts": {
"test": "./test.sh"
},
"licenses": [
{
"type": "MIT",
"url": "http://github.com/matthijsgroen/chai-backbone/blob/master/LICENSE"
}
]
}
3 changes: 1 addition & 2 deletions test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/bash
xdg-open test/browser/index.html
coffee -cw -o . . & coffee -cw -o test/ test/
coffee -c -o . . && coffee -c -o test/ test/ && xdg-open test/browser/index.html

0 comments on commit 0e9fe24

Please sign in to comment.