Skip to content

Commit 027cad7

Browse files
committed
coverage n stuff
1 parent 28402f9 commit 027cad7

File tree

5 files changed

+43
-64
lines changed

5 files changed

+43
-64
lines changed

.gitignore

+1-60
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,7 @@
1-
# Compiled source #
2-
###################
3-
*.com
4-
*.class
5-
*.dll
6-
*.exe
7-
*.o
8-
*.so
91

10-
# Packages #
11-
############
12-
# it's better to unpack these files and commit the raw source
13-
# git has its own built in compression methods
14-
*.7z
15-
*.dmg
16-
*.gz
17-
*.iso
18-
*.jar
19-
*.rar
20-
*.tar
21-
*.zip
22-
23-
# Logs and databases #
24-
######################
25-
*.log
26-
*.sql
27-
*.sqlite
28-
29-
# OS generated files #
30-
######################
312
.DS_Store*
32-
ehthumbs.db
33-
Icon?
34-
Thumbs.db
35-
36-
# Node.js #
37-
###########
38-
lib-cov
39-
*.seed
403
*.log
41-
*.csv
42-
*.dat
43-
*.out
44-
*.pid
454
*.gz
465

47-
pids
48-
logs
49-
results
50-
516
node_modules
52-
npm-debug.log
53-
54-
# Git #
55-
#######
56-
*.orig
57-
*.BASE.*
58-
*.BACKUP.*
59-
*.LOCAL.*
60-
*.REMOTE.*
61-
62-
# Components #
63-
##############
64-
65-
/build
66-
/components
7+
coverage

.travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_js:
2+
- "0.11"
3+
language: node_js
4+
script: "npm run-script test-travis"
5+
after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"

README.md

+25
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,29 @@
11

22
# NPM Versions
33

4+
[![NPM version][npm-image]][npm-url]
5+
[![Build status][travis-image]][travis-url]
6+
[![Test coverage][coveralls-image]][coveralls-url]
7+
[![Dependency Status][david-image]][david-url]
8+
[![License][license-image]][license-url]
9+
[![Downloads][downloads-image]][downloads-url]
10+
[![Gittip][gittip-image]][gittip-url]
11+
412
Get all the semantically versioned releases of an npm package.
13+
14+
[npm-image]: https://img.shields.io/npm/v/npm-versions.svg?style=flat-square
15+
[npm-url]: https://npmjs.org/package/npm-versions
16+
[github-tag]: http://img.shields.io/github/tag/repo-utils/npm-versions.svg?style=flat-square
17+
[github-url]: https://github.com/repo-utils/npm-versions/tags
18+
[travis-image]: https://img.shields.io/travis/repo-utils/npm-versions.svg?style=flat-square
19+
[travis-url]: https://travis-ci.org/repo-utils/npm-versions
20+
[coveralls-image]: https://img.shields.io/coveralls/repo-utils/npm-versions.svg?style=flat-square
21+
[coveralls-url]: https://coveralls.io/r/repo-utils/npm-versions
22+
[david-image]: http://img.shields.io/david/repo-utils/npm-versions.svg?style=flat-square
23+
[david-url]: https://david-dm.org/repo-utils/npm-versions
24+
[license-image]: http://img.shields.io/npm/l/npm-versions.svg?style=flat-square
25+
[license-url]: LICENSE
26+
[downloads-image]: http://img.shields.io/npm/dm/npm-versions.svg?style=flat-square
27+
[downloads-url]: https://npmjs.org/package/npm-versions
28+
[gittip-image]: https://img.shields.io/gratipay/jonathanong.svg?style=flat-square
29+
[gittip-url]: https://gratipay.com/jonathanong/

package.json

+11-3
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,21 @@
1212
"repository": "github-utils/npm-versions",
1313
"dependencies": {
1414
"debug": "*",
15-
"semver": "3"
15+
"semver": "4"
1616
},
1717
"devDependencies": {
18+
"istanbul-harmony": "0",
1819
"co": "^3.0.0",
1920
"mocha": "^1.17"
2021
},
2122
"scripts": {
22-
"test": "mocha --harmony-generators --reporter spec --bail"
23-
}
23+
"test": "mocha --harmony-generators --reporter spec",
24+
"test-cov": "node --harmony-generators node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter dot",
25+
"test-travis": "node --harmony-generators node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly -- --reporter dot"
26+
},
27+
"files": ["index.js"],
28+
"keywords": [
29+
"npm",
30+
"versions"
31+
]
2432
}

test.js test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
var co = require('co')
33
var assert = require('assert')
44

5-
var getVersions = require('.')()
5+
var getVersions = require('..')()
66

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

0 commit comments

Comments
 (0)