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:
parent
60171f503d
commit
629ba5b62a
2 changed files with 10 additions and 2 deletions
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
coverage
|
||||||
|
node_modules
|
||||||
|
jsconfig.json
|
||||||
|
.vscode
|
||||||
|
|
@ -5,8 +5,12 @@
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node bundler/bundler",
|
"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",
|
"author": "Leo Horie",
|
||||||
"license": "MIT"
|
"license": "MIT",
|
||||||
|
"devDependencies": {
|
||||||
|
"istanbul": "^0.4.3"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue