Add cover command (#1054)

Using istanbul, and also adding a .gitignore so I can be lazier about things when committing.
This commit is contained in:
Pat Cavit 2016-05-19 10:31:09 -07:00
parent 60171f503d
commit 629ba5b62a
2 changed files with 10 additions and 2 deletions

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
coverage
node_modules
jsconfig.json
.vscode

View file

@ -5,8 +5,12 @@
"main": "index.js",
"scripts": {
"build": "node bundler/bundler",
"test": "node ospec/bin/ospec"
"test": "node ospec/bin/ospec",
"cover": "istanbul cover --print both ospec/bin/ospec"
},
"author": "Leo Horie",
"license": "MIT"
"license": "MIT",
"devDependencies": {
"istanbul": "^0.4.3"
}
}