Skip to content

Commit

Permalink
add nyc for coverage purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
ssreed committed Jun 22, 2017
1 parent b831093 commit 16259e7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ bower_components/*
/streams.js
lib
npm-debug.log

.nyc_output/
coverage/
# ignore JetBrains
.idea/*
14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
"url": "https://github.com/video-dev/hls.js/issues"
},
"main": "./dist/hls.js",
"nyc": {
"reporter": [
"lcov"
],
"exclude": [
"tests"
]
},
"scripts": {
"build": "npm run buildlib && rimraf dist/* && npm run builddist && npm run builddistlight",
"buildlib": "rimraf lib/* && babel src --out-dir lib",
Expand All @@ -36,7 +44,8 @@
"serve": "http-server -p 8000 .",
"open": "opener http://localhost:8000/demo/",
"live-reload": "livereload dist/",
"dev": "npm run builddist && (npm run open -s & parallelshell 'npm run live-reload -s' 'npm run serve -s' 'npm run watch -s')"
"dev": "npm run builddist && (npm run open -s & parallelshell 'npm run live-reload -s' 'npm run serve -s' 'npm run watch -s')",
"coverage": "nyc mocha --compilers js:babel-register --recursive tests/unit"
},
"devDependencies": {
"arraybuffer-equal": "^1.0.4",
Expand All @@ -57,12 +66,13 @@
"livereload": "^0.6.2",
"mocha": "^3.0.2",
"mversion": "^1.10.1",
"nyc": "^11.0.2",
"opener": "^1.4.0",
"parallelshell": "^2.0.0",
"rimraf": "^2.6.1",
"selenium-webdriver": "^3.1.0",
"uglify-js": "^3.0.15",
"url-toolkit": "^2.0.1",
"selenium-webdriver": "^3.1.0",
"watchify": "^3.7.0",
"webworkify": "^1.4.0"
}
Expand Down

0 comments on commit 16259e7

Please sign in to comment.