Skip to content

Commit 60ce1fc

Browse files
committed
ci(Travis): Add flowtype and eslint for build tests
1 parent 98dd906 commit 60ce1fc

File tree

4 files changed

+19
-18
lines changed

4 files changed

+19
-18
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ 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:
1518
- yarn run coverage
1619
- yarn run build

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
# graphql-compose-connection
22

3-
[![Greenkeeper badge](https://badges.greenkeeper.io/nodkz/graphql-compose-connection.svg)](https://greenkeeper.io/)
4-
53
[![travis build](https://img.shields.io/travis/nodkz/graphql-compose-connection.svg)](https://travis-ci.org/nodkz/graphql-compose-connection)
64
[![codecov coverage](https://img.shields.io/codecov/c/github/nodkz/graphql-compose-connection.svg)](https://codecov.io/github/nodkz/graphql-compose-connection)
75
[![](https://img.shields.io/npm/v/graphql-compose-connection.svg)](https://www.npmjs.com/package/graphql-compose-connection)
86
[![npm](https://img.shields.io/npm/dt/graphql-compose-connection.svg)](http://www.npmtrends.com/graphql-compose-connection)
97
[![Join the chat at https://gitter.im/graphql-compose/Lobby](https://badges.gitter.im/nodkz/graphql-compose.svg)](https://gitter.im/graphql-compose/Lobby)
108
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
9+
[![Greenkeeper badge](https://badges.greenkeeper.io/nodkz/graphql-compose-connection.svg)](https://greenkeeper.io/)
1110

1211
This is a plugin for [graphql-compose](https://github.com/nodkz/graphql-compose) family, which adds to the TypeComposer `connection` resolver.
1312

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"babel-plugin-transform-flow-strip-types": "^6.22.0",
3333
"babel-plugin-transform-object-rest-spread": "^6.23.0",
3434
"babel-plugin-transform-runtime": "^6.23.0",
35-
"babel-preset-env": "^1.5.1",
35+
"babel-preset-env": "^1.5.2",
3636
"cz-conventional-changelog": "^2.0.0",
3737
"eslint": "^3.19.0",
3838
"eslint-config-airbnb-base": "^11.2.0",
@@ -42,9 +42,9 @@
4242
"eslint-plugin-prettier": "^2.1.1",
4343
"flow-bin": "^0.47.0",
4444
"graphql": "^0.10.1",
45-
"graphql-compose": "^1.20.3",
45+
"graphql-compose": "^1.21.1",
4646
"jest": "^20.0.4",
47-
"prettier": "^1.4.2",
47+
"prettier": "^1.4.4",
4848
"rimraf": "^2.6.1",
4949
"semantic-release": "^6.3.2"
5050
},
@@ -65,12 +65,11 @@
6565
"build": "npm run build-cjs && npm run build-flow",
6666
"build-cjs": "rimraf lib && babel src --ignore __tests__,__mocks__ -d lib",
6767
"build-flow": "find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/lib\\//g'`.flow; done",
68-
"coverage": "jest --coverage",
69-
"lint": "eslint src test *.js",
70-
"test": "jest",
7168
"watch": "jest --watch",
69+
"coverage": "jest --coverage",
70+
"lint": "eslint --ext .js ./src",
7271
"flow": "./node_modules/.bin/flow stop && ./node_modules/.bin/flow",
73-
"all": "npm run test && npm run lint && npm run flow",
72+
"test": "npm run coverage && npm run lint && npm run flow",
7473
"link": "yarn build && yarn link graphql-compose && yarn link",
7574
"unlink": "yarn unlink graphql-compose && yarn add graphql-compose",
7675
"semantic-release": "semantic-release pre && npm publish && semantic-release post"

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -687,9 +687,9 @@ babel-polyfill@^6.16.0, babel-polyfill@^6.23.0:
687687
core-js "^2.4.0"
688688
regenerator-runtime "^0.10.0"
689689

690-
babel-preset-env@^1.5.1:
691-
version "1.5.1"
692-
resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.5.1.tgz#d2eca6af179edf27cdc305a84820f601b456dd0b"
690+
babel-preset-env@^1.5.2:
691+
version "1.5.2"
692+
resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.5.2.tgz#cd4ae90a6e94b709f97374b33e5f8b983556adef"
693693
dependencies:
694694
babel-plugin-check-es2015-constants "^6.22.0"
695695
babel-plugin-syntax-trailing-function-commas "^6.22.0"
@@ -1788,9 +1788,9 @@ graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.4, graceful-fs@^4.1.6:
17881788
version "1.0.1"
17891789
resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725"
17901790

1791-
graphql-compose@^1.20.3:
1792-
version "1.20.3"
1793-
resolved "https://registry.yarnpkg.com/graphql-compose/-/graphql-compose-1.20.3.tgz#04d8cb24e78f14135ee5b5e0d24d8f6956610e7a"
1791+
graphql-compose@^1.21.1:
1792+
version "1.21.1"
1793+
resolved "https://registry.yarnpkg.com/graphql-compose/-/graphql-compose-1.21.1.tgz#65a8152335285d51d1d220ba3355b7e4eb52a515"
17941794
dependencies:
17951795
babel-runtime "^6.23.0"
17961796
object-path "^0.11.4"
@@ -3086,9 +3086,9 @@ preserve@^0.2.0:
30863086
version "0.2.0"
30873087
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
30883088

3089-
prettier@^1.4.2:
3090-
version "1.4.2"
3091-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.4.2.tgz#bcdd95ed1eca434ac7f98ca26ea4d25a2af6a2ac"
3089+
prettier@^1.4.4:
3090+
version "1.4.4"
3091+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.4.4.tgz#a8d1447b14c9bf67e6d420dcadd10fb9a4fad65a"
30923092

30933093
pretty-format@^20.0.3:
30943094
version "20.0.3"

0 commit comments

Comments
 (0)