Skip to content

Commit 1c2c502

Browse files
committed
ci(Travis): Add flowtype and eslint checks
1 parent 843236e commit 1c2c502

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ node_js:
1111
- "6"
1212
- "5"
1313
- "4"
14+
before_install: yarn global add greenkeeper-lockfile@1
15+
before_script: greenkeeper-lockfile-update
16+
after_script: greenkeeper-lockfile-upload
1417
script:
15-
- yarn run coverage
18+
- yarn run all
1619
- yarn run build
1720
after_success:
1821
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
graphql-compose-elasticsearch
22
======================
33

4-
[![Greenkeeper badge](https://badges.greenkeeper.io/nodkz/graphql-compose-elasticsearch.svg)](https://greenkeeper.io/)
54
[![](https://img.shields.io/npm/v/graphql-compose-elasticsearch.svg)](https://www.npmjs.com/package/graphql-compose-elasticsearch)
65
[![npm](https://img.shields.io/npm/dt/graphql-compose-elasticsearch.svg)](http://www.npmtrends.com/graphql-compose-elasticsearch)
76
[![Travis](https://img.shields.io/travis/nodkz/graphql-compose-elasticsearch.svg?maxAge=2592000)](https://travis-ci.org/nodkz/graphql-compose-elasticsearch)
87
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
98
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
9+
[![Greenkeeper badge](https://badges.greenkeeper.io/nodkz/graphql-compose-elasticsearch.svg)](https://greenkeeper.io/)
1010

1111
This module expose Elastic Search REST API via GraphQL.
1212

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,12 @@
7373
"dev": "npm run demo1",
7474
"demo1": "nodemon -e js --ignore *test* --exec ./node_modules/.bin/babel-node ./examples/elastic50/index.js",
7575
"demo2": "nodemon -e js --ignore *test* --exec ./node_modules/.bin/babel-node ./examples/differentVersions/index.js",
76+
"test": "jest",
77+
"watch": "jest --watch",
7678
"coverage": "jest --coverage",
7779
"lint": "eslint --ext .js ./src",
78-
"test": "jest",
79-
"test:watch": "jest --watch",
80-
"watch": "npm run test:watch",
8180
"flow": "./node_modules/.bin/flow stop && ./node_modules/.bin/flow",
82-
"all": "npm run test && npm run lint && npm run flow",
81+
"all": "npm run coverage && npm run lint && npm run flow",
8382
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
8483
"docker": "npm run docker:v5",
8584
"docker:v2": "node ./scripts/docker/start 2 & wait",

0 commit comments

Comments
 (0)