Skip to content

Commit

Permalink
coverage n stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanong committed Sep 24, 2014
1 parent 28402f9 commit 027cad7
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 64 deletions.
61 changes: 1 addition & 60 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,66 +1,7 @@
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sql
*.sqlite

# OS generated files #
######################
.DS_Store*
ehthumbs.db
Icon?
Thumbs.db

# Node.js #
###########
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz

pids
logs
results

node_modules
npm-debug.log

# Git #
#######
*.orig
*.BASE.*
*.BACKUP.*
*.LOCAL.*
*.REMOTE.*

# Components #
##############

/build
/components
coverage
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_js:
- "0.11"
language: node_js
script: "npm run-script test-travis"
after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@

# NPM Versions

[![NPM version][npm-image]][npm-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Dependency Status][david-image]][david-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![Gittip][gittip-image]][gittip-url]

Get all the semantically versioned releases of an npm package.

[npm-image]: https://img.shields.io/npm/v/npm-versions.svg?style=flat-square
[npm-url]: https://npmjs.org/package/npm-versions
[github-tag]: http://img.shields.io/github/tag/repo-utils/npm-versions.svg?style=flat-square
[github-url]: https://github.com/repo-utils/npm-versions/tags
[travis-image]: https://img.shields.io/travis/repo-utils/npm-versions.svg?style=flat-square
[travis-url]: https://travis-ci.org/repo-utils/npm-versions
[coveralls-image]: https://img.shields.io/coveralls/repo-utils/npm-versions.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/repo-utils/npm-versions
[david-image]: http://img.shields.io/david/repo-utils/npm-versions.svg?style=flat-square
[david-url]: https://david-dm.org/repo-utils/npm-versions
[license-image]: http://img.shields.io/npm/l/npm-versions.svg?style=flat-square
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/npm-versions.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/npm-versions
[gittip-image]: https://img.shields.io/gratipay/jonathanong.svg?style=flat-square
[gittip-url]: https://gratipay.com/jonathanong/
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,21 @@
"repository": "github-utils/npm-versions",
"dependencies": {
"debug": "*",
"semver": "3"
"semver": "4"
},
"devDependencies": {
"istanbul-harmony": "0",
"co": "^3.0.0",
"mocha": "^1.17"
},
"scripts": {
"test": "mocha --harmony-generators --reporter spec --bail"
}
"test": "mocha --harmony-generators --reporter spec",
"test-cov": "node --harmony-generators node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter dot",
"test-travis": "node --harmony-generators node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly -- --reporter dot"
},
"files": ["index.js"],
"keywords": [
"npm",
"versions"
]
}
2 changes: 1 addition & 1 deletion test.js → test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
var co = require('co')
var assert = require('assert')

var getVersions = require('.')()
var getVersions = require('..')()

it('should get the versions of domify', co(function* () {
var versions = yield* getVersions('domify')
Expand Down

0 comments on commit 027cad7

Please sign in to comment.