Skip to content

Commit c028a3d

Browse files
committed
update badges, add coverage
1 parent 479675c commit c028a3d

File tree

6 files changed

+55
-79
lines changed

6 files changed

+55
-79
lines changed

.gitignore

Lines changed: 1 addition & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,6 @@
1-
# Compiled source #
2-
###################
3-
*.com
4-
*.class
5-
*.dll
6-
*.exe
7-
*.o
8-
*.so
9-
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-
######################
311
.DS_Store*
322
ehthumbs.db
33-
Icon?
343
Thumbs.db
35-
36-
# Node.js #
37-
###########
38-
lib-cov
39-
*.seed
40-
*.log
41-
*.csv
42-
*.dat
43-
*.out
44-
*.pid
45-
*.gz
46-
47-
pids
48-
logs
49-
results
50-
514
node_modules
525
npm-debug.log
53-
54-
# Components #
55-
##############
56-
57-
/build
58-
/components
59-
60-
# ImageMagick #
61-
###############
62-
63-
*.cache
64-
*.mpc
65-
66-
# Other #
67-
#########
68-
test/*.2
69-
test/*.mp4
6+
coverage

.npmignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
language: node_js
22
node_js:
3-
- "0.11"
3+
- "0.11"
4+
script: "make test-travis"
5+
after_script: "npm install [email protected] && cat ./coverage/lcov.info | coveralls"

Makefile

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,26 @@ test:
55
--reporter spec \
66
--bail
77

8+
test-cov:
9+
@NODE_ENV=test node --harmony \
10+
node_modules/.bin/istanbul cover \
11+
./node_modules/.bin/_mocha \
12+
-- -u exports \
13+
--require should \
14+
--reporter spec \
15+
--bail
16+
17+
test-travis:
18+
@NODE_ENV=test node --harmony \
19+
node_modules/.bin/istanbul cover \
20+
./node_modules/.bin/_mocha \
21+
--report lcovonly \
22+
-- -u exports \
23+
--require should \
24+
--reporter spec \
25+
--bail
26+
827
clean:
928
@rm -rf node_modules
1029

11-
.PHONY: test clean
30+
.PHONY: test clean

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
# Koa Static Cache [![Build Status](https://travis-ci.org/koajs/static-cache.svg)](https://travis-ci.org/koajs/static-cache)
1+
# Koa Static Cache
2+
3+
[![NPM version][npm-image]][npm-url]
4+
[![build status][travis-image]][travis-url]
5+
[![Test coverage][coveralls-image]][coveralls-url]
6+
[![David deps][david-image]][david-url]
7+
8+
[npm-image]: https://img.shields.io/npm/v/koa-static-cache.svg?style=flat-square
9+
[npm-url]: https://npmjs.org/package/koa-static-cache
10+
[travis-image]: https://img.shields.io/travis/koajs/static-cache.svg?style=flat-square
11+
[travis-url]: https://travis-ci.org/koajs/static-cache
12+
[coveralls-image]: https://img.shields.io/coveralls/koajs/static-cache.svg?style=flat-square
13+
[coveralls-url]: https://coveralls.io/r/koajs/static-cache?branch=master
14+
[david-image]: https://img.shields.io/david/koajs/static-cache.svg?style=flat-square
15+
[david-url]: https://david-dm.org/koajs/static-cache
216

317
Static server for koa.
418

package.json

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,21 @@
88
"url": "http://jongleberry.com",
99
"twitter": "https://twitter.com/jongleberry"
1010
},
11-
"contributors": [{
12-
"name": "Jeremiah Senkpiel",
13-
"email": "[email protected]",
14-
"url": "https://searchbeam.jit.su",
15-
"twitter": "https://twitter.com/fishrock123"
16-
}, {
17-
"name": "dead_horse",
18-
"email": "[email protected]",
19-
"url": "http://deadhorse.me",
20-
"twitter": "https://twitter.com/deadhorse_busi"
21-
}],
11+
"contributors": [
12+
{
13+
"name": "Jeremiah Senkpiel",
14+
"email": "[email protected]",
15+
"url": "https://searchbeam.jit.su",
16+
"twitter": "https://twitter.com/fishrock123"
17+
},
18+
{
19+
"name": "dead_horse",
20+
"email": "[email protected]",
21+
"url": "http://deadhorse.me",
22+
"twitter": "https://twitter.com/deadhorse_busi"
23+
}
24+
],
25+
"files": ["index.js"],
2226
"keywords": [
2327
"koa",
2428
"middleware",
@@ -44,6 +48,7 @@
4448
"debug": "*"
4549
},
4650
"devDependencies": {
51+
"istanbul-harmony": "~0.3.0",
4752
"koa": "~0.8.0",
4853
"mocha": "*",
4954
"should": "~3.3.2",

0 commit comments

Comments
 (0)