Skip to content

Commit edc1ee1

Browse files
committed
add ci for spec
1 parent d99bbfe commit edc1ee1

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
language: node_js
2+
node_js: node
3+
script:
4+
- npm run lint
5+
- npm run build
6+
cache:
7+
directories:
8+
- node_modules

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"scripts": {
66
"start": "node ./mock.js",
77
"build": "apollo-codegen introspect-schema *.graphql --output schema.json",
8+
"lint": "prettier --no-semi --single-quote --list-different *.{graphql,js}",
89
"prettier": "prettier --no-semi --single-quote --write *.{graphql,js}",
910
"precommit": "lint-staged"
1011
},

0 commit comments

Comments
 (0)