diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..3a22dc7 --- /dev/null +++ b/.babelrc @@ -0,0 +1,5 @@ +{ + "presets": [ + "es2015-node5" + ] +} diff --git a/package.json b/package.json index b3a4caa..9dd9106 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" + } } diff --git a/src/main/index.js b/src/main/index.js new file mode 100644 index 0000000..336b713 --- /dev/null +++ b/src/main/index.js @@ -0,0 +1,7 @@ +export function tester({ + url, + method = 'POST', + contentType = 'application/graphql' +}) { + throw new Error('Not Implemented Yet'); +}