Skip to content

Commit

Permalink
Rolls code coverage into test task
Browse files Browse the repository at this point in the history
  • Loading branch information
rjz committed Jun 11, 2015
1 parent 0e640a4 commit e0dab3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ A boilerplate for node.js projects that includes:

* linting (via [jshint][jshint])
* testing (via [mocha][mocha])
* code coverage (via [istanbul][istanbul])
* documentation (via [scrawl][scrawl] and [hogan.js][hoganjs])
* micrositing (via [github pages][gh-pages])

Expand Down Expand Up @@ -54,12 +53,11 @@ The following tasks will be run as part of the included, travis-based continuous
integration flow. However, they're also available manually using `npm run
<task>`.

Task | Description
-------- | -------------------------
`audit` | Audit dependencies using [nodesecurity.io][nodesecurity]
`cover` | Generate code coverage report and push update to coveralls
`docs` | Parse comments into HTML documentation
`pages` | Publish the documentation to [github pages][gh-pages]
Task | Description
---------- | -------------------------
`audit` | Audit dependencies using [nodesecurity.io][nodesecurity]
`docs` | Parse comments into HTML documentation
`pages` | Publish the documentation to [github pages][gh-pages]

License
-------------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"scripts": {
"lint": "node_modules/jshint/bin/jshint",
"pretest": "npm run lint",
"test": "./node_modules/mocha/bin/mocha",
"cover": "bash tasks/coverage.sh",
"test": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha",
"posttest": "cat coverage/lcov.info | ./node_modules/.bin/coveralls",
"docs": "node -e 'require(\"./tasks\").docs([\"index.js\"])'",
"pages": "bash tasks/rebuild-gh-pages.sh",
"audit": "bash tasks/vulnerabilities.sh"
Expand Down

0 comments on commit e0dab3a

Please sign in to comment.