Skip to content

Commit

Permalink
add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
termosa committed Jul 1, 2018
1 parent c1b8a57 commit 37c8374
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules/
npm-debug.log
coverage/
.coveralls.yml

1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
language: node_js
node_js:
- "6.4"
script: "npm run ci"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# go-cli [![npm](https://img.shields.io/npm/v/go-cli.svg?style=flat-square)](https://www.npmjs.com/package/go-cli) [![Travis](https://img.shields.io/travis/gocli/go-cli.svg?style=flat-square)](https://travis-ci.org/gocli/go-cli)
# go-cli [![npm](https://img.shields.io/npm/v/go-cli.svg?style=flat-square)](https://www.npmjs.com/package/go-cli) [![Travis](https://img.shields.io/travis/gocli/go-cli.svg?style=flat-square)](https://travis-ci.org/gocli/go-cli) [![Coveralls](https://img.shields.io/coveralls/github/gocli/go-cli.svg?style=flat-square)](https://coveralls.io/github/gocli/go-cli)

The CLI tool to use boilerplates made with [go](https://www.npmjs.com/package/go)

Expand Down
32 changes: 32 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
"go": "bin/go.js"
},
"scripts": {
"lint": "standard -v | snazzy",
"unit": "jest --coverage",
"unit:watch": "jest --coverage --watchAll",
"ci": "npm run lint && npm run unit:coveralls",
"coverage": "npm run unit; opn coverage/lcov-report/index.html",
"lint": "standard -v | snazzy",
"prepublishOnly": "npm run test",
"test": "npm run lint && npm run unit",
"prepublishOnly": "npm run test"
"unit": "jest --coverage",
"unit:coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls",
"unit:watch": "jest --coverage --watchAll"
},
"engines": {
"node": ">=6.4.0"
Expand Down Expand Up @@ -51,6 +53,7 @@
"which": "1.3.0"
},
"devDependencies": {
"coveralls": "^3.0.2",
"jest": "^22.4.2",
"opn-cli": "^3.1.0",
"snazzy": "^7.1.1",
Expand Down

0 comments on commit 37c8374

Please sign in to comment.