Skip to content

Commit 6a8d786

Browse files
committed
updating node version and adding code coverage
1 parent b513205 commit 6a8d786

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ config/local.js
66
logs
77
*.log
88
npm-debug.log*
9+
.DS_Store
910

1011
dist/
1112

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.9
1+
v6.9.4

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:5.10.1
1+
FROM node:6.9.4
22
LABEL version="1.0"
33
LABEL description="Projects microservice"
44

local/docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ postgres:
66
- POSTGRES_PASSWORD=mysecretpassword
77
- POSTGRES_USER=coder
88
- POSTGRES_DB=projectsdb
9-
elasticsearch:
10-
image: "elasticsearch:1.5.2"
11-
ports:
12-
- "9200:9200"
13-
- "9300:9300"
9+
#elasticsearch:
10+
# image: "elasticsearch:2"
11+
# ports:
12+
# - "9200:9200"
13+
# - "9300:9300"
1414
redis:
1515
image: redis:2.8
1616
ports:

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
"version": "1.1.1",
44
"description": "Projects microservice",
55
"main": "index.js",
6+
"engines": {
7+
"node": ">=6.9"
8+
},
69
"scripts": {
7-
"test": "NODE_ENV=test ./node_modules/.bin/mocha --compilers js:babel-core/register $(find src -path '*spec.js*')",
10+
"test": "NODE_ENV=test ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- --compilers js:babel-core/register $(find src -path '*spec.js*')",
811
"live-test": "NODE_ENV=test ./node_modules/.bin/mocha -w --compilers js:babel-core/register $(find src -path '*spec.js*')",
912
"dev": "NODE_ENV=local PORT=8001 nodemon -w src --exec \"babel-node src --presets es2015\" | ./node_modules/.bin/bunyan",
1013
"build": "babel src -d dist --presets es2015",

0 commit comments

Comments
 (0)