Skip to content

Commit

Permalink
Introduced a main file written in ES6
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzer committed Feb 2, 2016
1 parent edb6e90 commit 2a3f8c8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": [
"es2015-node5"
]
}
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
"name": "graphql-tester",
"version": "0.0.1",
"description": "Module for writing fluent tests against a GraphQL API",
"main": "lib/index.js",
"main": "lib/main/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"compile": "babel src/main -d lib/main",
"test": "npm run compile && echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
Expand All @@ -19,5 +20,9 @@
"bugs": {
"url": "https://github.com/sazzer/graphql-tester/issues"
},
"homepage": "https://github.com/sazzer/graphql-tester#readme"
"homepage": "https://github.com/sazzer/graphql-tester#readme",
"devDependencies": {
"babel-cli": "^6.4.5",
"babel-preset-es2015-node5": "^1.1.2"
}
}
7 changes: 7 additions & 0 deletions src/main/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export function tester({
url,
method = 'POST',
contentType = 'application/graphql'
}) {
throw new Error('Not Implemented Yet');
}

0 comments on commit 2a3f8c8

Please sign in to comment.