Skip to content

Commit

Permalink
redis
Browse files Browse the repository at this point in the history
  • Loading branch information
Evheniy Bystrov committed Feb 5, 2017
1 parent 652747b commit 84ba2c2
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ services:
node_js:
- 7
script:
- npm test
- npm test && npm run report-coverage
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Koa.js 2 boilerplate
====================

[![Build Status](https://travis-ci.org/evheniy/koa-2-boilerplate.svg?branch=master)](https://travis-ci.org/evheniy/koa-2-boilerplate)
[![Coverage Status](https://coveralls.io/repos/github/evheniy/koa-2-boilerplate/badge.svg?branch=master)](https://coveralls.io/github/evheniy/koa-2-boilerplate?branch=master)


Description
-----------
Expand Down
2 changes: 1 addition & 1 deletion app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const cors = require('kcors');
const helmet = require('koa-helmet');
const app = module.exports = new Koa();
const error = require('./error');
const redis = require('./redis');
const redis = require('koa-2-ioredis');
const router = require('./router');
const compress = require('./compress');

Expand Down
10 changes: 0 additions & 10 deletions app/redis.js

This file was deleted.

2 changes: 1 addition & 1 deletion bin/www
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ const server = http.createServer(app.callback());
server.listen(errorHandler.helper(process.env.PORT || '3000'));

/**
* Handling error
* Handling listening and error events
*/
errorHandler.server(server, logger.info, logger.error);
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"test": "npm run security && npm run clear && npm run lint && npm run coverage",
"lint": "./node_modules/.bin/eslint app logger tests bin",
"coverage": "node --harmony ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- tests --recursive",
"report-coverage": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
"clear": "./node_modules/.bin/rimraf coverage",
"security": "./node_modules/.bin/nsp check"
},
Expand All @@ -19,7 +20,8 @@
"isomorphic-fetch": "^2.2.1",
"kcors": "^2.2.0",
"koa": "^2.0.0-alpha.7",
"koa-2-error-handler": "^0.0.5",
"koa-2-error-handler": "^0.0.6",
"koa-2-ioredis": "^0.0.1",
"koa-bodyparser": "^3.2.0",
"koa-compress": "^2.0.0",
"koa-conditional-get": "^2.0.0",
Expand All @@ -33,10 +35,12 @@
"devDependencies": {
"chai": "^3.5.0",
"chai-http": "^3.0.0",
"coveralls": "^2.11.15",
"eslint": "^3.14.1",
"fetch-mock": "^5.9.3",
"istanbul": "^1.1.0-alpha.1",
"mocha": "^3.2.0",
"mocha-lcov-reporter": "^1.2.0",
"nsp": "^2.6.2",
"rimraf": "^2.5.4",
"sinon": "^1.17.7",
Expand Down

0 comments on commit 84ba2c2

Please sign in to comment.