Skip to content

Commit

Permalink
use babel
Browse files Browse the repository at this point in the history
  • Loading branch information
chentsulin committed Nov 12, 2016
1 parent 7cc9db0 commit 89cc570
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["latest"]
}
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
sudo: false
language: node_js
node_js:
- "0.12"
- "4"
- "5"
- "7"
- "6"
- "4"
- "0.12"
cache:
directories:
- node_modules
Expand Down
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "fetch-graphql-schema",
"version": "0.1.0",
"description": "fetch GraphQL schema via introspection query",
"main": "src/index.js",
"main": "lib/index.js",
"license": "MIT",
"repository": "chentsulin/fetch-graphql-schema",
"author": {
Expand All @@ -28,13 +28,19 @@
"node-fetch": "^1.6.3"
},
"devDependencies": {
"babel-cli": "^6.18.0",
"babel-jest": "^17.0.0",
"babel-preset-latest": "^6.16.0",
"eslint": "^3.5.0",
"eslint-config-airbnb-base": "^10.0.1",
"eslint-plugin-import": "^2.2.0",
"fetch-mock": "^5.5.0",
"jest": "^17.0.0"
"jest": "^17.0.0",
"rimraf": "^2.5.4"
},
"scripts": {
"build": "npm run clean && babel src -d lib --ignore __tests__",
"clean": "rimraf lib",
"test": "jest",
"test:cov": "jest --coverage",
"lint": "eslint .",
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const fetchSchema = require('../');
import fetchSchema from '../';

it('be defined', () => {
expect(fetchSchema).toBeDefined();
Expand Down

0 comments on commit 89cc570

Please sign in to comment.