forked from graphql/graphql-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from graphql/master
Merge latest changes from HEAD: 0.4.18 -> 0.5.0
- Loading branch information
Showing
98 changed files
with
2,821 additions
and
802 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,11 +32,21 @@ after_success: | |
- if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js; fi | ||
|
||
deploy: | ||
provider: npm | ||
email: "[email protected]" | ||
api_key: | ||
secure: tCIGE/3CLOQlC49i/9ug42ILQjZnMOrSjyjdHkqmTVN5q9p9bljjziXQbNxYfVPYa9icICnVnI4c5psjktW+vwaz2WJAJhpWD6P3YGcpmKjjgPKKHKWOcXvq3HdIzH7DIbXyVtE0QLpV5zgbyxglD96vYScO9dvGeAhTGY/9qJaDvVkLOZ+6YpKiTwZlZcyPHlD1tbxzd4NytJgIsi7CedFdfATAmOyVsot1NRZr5q3oV0aXFjJRnhBQ3RtykGgGHtXEWYTNhAmYxcIwezYRYXLxtlkbrlwxixpKAdJr/UXHg6amplkaHtCopi+QChPQRmdndcDC6F+e2nFHut6BCi14Jnbvf7seaqWrmh0uqdopqMJFRP3OBc9lXZf3hljVKV9+iVbWNjxoUB7ezurOOEpgkXleJ5AO2o3u8oYh3OFfLYu7E1a4uSjfe4nP/zi+th+wvS4Wy2UWqErYFUMotMyStS/vllXUpK7pl+Qt59MUVHB8YzREyCVKxakQ/uvNvY+bzKf4sM8UJ/Dqnl3MaAjLG3rWZbFyzXdaJnRGdTeFK2lpz8nrfJEDzLIQX5ZC88yR30WahrRjAhLnnq0V1fYp0wLbLxs4SdN+tuMRlkzQhQEYYDYa5osgEo2C+O4D/H9F7GWHHJp9zPE+hMi5+ZwTPKHkln4/AqrABUKOk78= | ||
on: | ||
tags: true | ||
branch: master | ||
condition: "$BUILD_LEADER$BUILD_AGGREGATE_STATUS = YESothers_succeeded" | ||
- provider: script | ||
skip_cleanup: true | ||
script: ./resources/npm-git.sh | ||
on: | ||
branch: master | ||
condition: "$BUILD_LEADER$BUILD_AGGREGATE_STATUS = YESothers_succeeded" | ||
- provider: npm | ||
email: "[email protected]" | ||
api_key: | ||
secure: tCIGE/3CLOQlC49i/9ug42ILQjZnMOrSjyjdHkqmTVN5q9p9bljjziXQbNxYfVPYa9icICnVnI4c5psjktW+vwaz2WJAJhpWD6P3YGcpmKjjgPKKHKWOcXvq3HdIzH7DIbXyVtE0QLpV5zgbyxglD96vYScO9dvGeAhTGY/9qJaDvVkLOZ+6YpKiTwZlZcyPHlD1tbxzd4NytJgIsi7CedFdfATAmOyVsot1NRZr5q3oV0aXFjJRnhBQ3RtykGgGHtXEWYTNhAmYxcIwezYRYXLxtlkbrlwxixpKAdJr/UXHg6amplkaHtCopi+QChPQRmdndcDC6F+e2nFHut6BCi14Jnbvf7seaqWrmh0uqdopqMJFRP3OBc9lXZf3hljVKV9+iVbWNjxoUB7ezurOOEpgkXleJ5AO2o3u8oYh3OFfLYu7E1a4uSjfe4nP/zi+th+wvS4Wy2UWqErYFUMotMyStS/vllXUpK7pl+Qt59MUVHB8YzREyCVKxakQ/uvNvY+bzKf4sM8UJ/Dqnl3MaAjLG3rWZbFyzXdaJnRGdTeFK2lpz8nrfJEDzLIQX5ZC88yR30WahrRjAhLnnq0V1fYp0wLbLxs4SdN+tuMRlkzQhQEYYDYa5osgEo2C+O4D/H9F7GWHHJp9zPE+hMi5+ZwTPKHkln4/AqrABUKOk78= | ||
on: | ||
tags: true | ||
branch: master | ||
condition: "$BUILD_LEADER$BUILD_AGGREGATE_STATUS = YESothers_succeeded" | ||
|
||
env: | ||
global: | ||
secure: vs/YDHDlVY3apcWOWOyi01s2457uc19gfnZMWAc9RsTwaNrealbM7y2TTuakWj1eQQRU3hXvR4TFoqdJOKMk42avv4IxmCf0Gynf/4w8BFycfyLJwWfEvmBDYr4oMjjrX6t5ycTzACBXPGyi9Bpa1RJM2QIfujNtjtgaBTdrAQs5XZ+7l3giFhPLebWPnC0/CEhzZMKqiAID3z52SrR6RpxYDpQZcVuenXknIuG0WucbWd/XlHh6+upJxlc88pJsdNoDavDpQGcJZ5AUMD1ek8wsCo761lbPybryfeCN8qmMlTFkzRIpnGU28Q0RhqHuNq7tQJBPNIuc3MjTy5rR+7snvb1dXq9M3ut6D9UmsFvx3H2mNC4Ue8H2f2nS0Oy3HWY08v58gOvGpcKItndBsHmq9hPE3gK7Ea/UFH8GAtbXABhChO6dd7AY+CM7TOwfKyEx7y1kzBQ9snRpX9uEwGmRAXwRsvWeobtls/BevUfBGrBhgicd1BPhJzxeK447NHdELikgaCwldP3gdrrh1U7xmgaKO3MeM4Tpp+gMYUKoc/j6Pvcuq4/kNaiahnhW1SPUZJQmxIAnZjKOKmhm0WzmGC1RAvqvIVyqQa55CGuBr+fhWxWE2WB2tDcX5JSmwRASz9IOMd4mCxHM/maVlNaLfVYDQ2Fl1VHJ5MIES4s= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "graphql", | ||
"version": "0.4.18", | ||
"version": "0.5.0", | ||
"description": "A Query Language and Runtime which can target any service.", | ||
"contributors": [ | ||
"Lee Byron <[email protected]> (http://leebyron.com/)", | ||
|
@@ -18,36 +18,56 @@ | |
"url": "http://github.com/graphql/graphql-js.git" | ||
}, | ||
"options": { | ||
"mocha": "--require resources/mocha-bootload src/**/__tests__/**/*.js" | ||
"mocha": "--require ./resources/mocha-bootload --check-leaks --full-trace src/**/__tests__/**/*-test.js" | ||
}, | ||
"babel": { | ||
"presets": [ | ||
"es2015" | ||
], | ||
"plugins": [ | ||
"syntax-async-functions", | ||
"transform-class-properties", | ||
"transform-flow-strip-types", | ||
"transform-object-rest-spread", | ||
"transform-regenerator", | ||
"transform-runtime" | ||
] | ||
}, | ||
"scripts": { | ||
"test": "npm run lint && npm run check && npm run testonly", | ||
"testonly": "mocha $npm_package_options_mocha", | ||
"t": "mocha --require resources/mocha-bootload", | ||
"testonly": "babel-node ./node_modules/.bin/_mocha $npm_package_options_mocha", | ||
"t": "babel-node ./node_modules/.bin/_mocha --require ./resources/mocha-bootload", | ||
"lint": "eslint src", | ||
"check": "flow check", | ||
"build": "babel src --optional runtime --ignore __tests__ --out-dir dist/ && cp package.json dist/", | ||
"watch": "babel --optional runtime resources/watch.js | node", | ||
"cover": "babel-node node_modules/.bin/isparta cover --root src --report html node_modules/.bin/_mocha -- $npm_package_options_mocha", | ||
"cover:lcov": "babel-node node_modules/.bin/isparta cover --root src --report lcovonly node_modules/.bin/_mocha -- $npm_package_options_mocha", | ||
"check-cover": "for file in {src/*.js,src/**/*.js}; do echo $file; flow coverage $file; done", | ||
"build": "babel src --ignore __tests__ --out-dir dist/ && cp package.json dist/", | ||
"watch": "babel-node ./resources/watch.js", | ||
"cover": "babel-node ./node_modules/.bin/isparta cover --root src --report html _mocha -- $npm_package_options_mocha", | ||
"cover:lcov": "babel-node ./node_modules/.bin/isparta cover --root src --report lcovonly _mocha -- $npm_package_options_mocha", | ||
"preversion": ". ./resources/checkgit.sh && npm test", | ||
"prepublish": ". ./resources/prepublish.sh" | ||
}, | ||
"dependencies": { | ||
"babel-runtime": "^5.8.x" | ||
"babel-runtime": ">=6.0.0" | ||
}, | ||
"devDependencies": { | ||
"babel": "5.8.21", | ||
"babel-core": "5.8.22", | ||
"babel-eslint": "4.1.7", | ||
"chai": "3.4.1", | ||
"chai-subset": "1.1.0", | ||
"coveralls": "2.11.4", | ||
"eslint": "1.10.1", | ||
"eslint-plugin-babel": "^2.1.1", | ||
"flow-bin": "0.20.1", | ||
"isparta": "3.0.3", | ||
"mocha": "2.3.4", | ||
"sane": "1.3.0" | ||
"babel-cli": "6.6.5", | ||
"babel-eslint": "6.0.2", | ||
"babel-plugin-syntax-async-functions": "6.5.0", | ||
"babel-plugin-transform-class-properties": "6.6.0", | ||
"babel-plugin-transform-flow-strip-types": "6.7.0", | ||
"babel-plugin-transform-object-rest-spread": "6.6.5", | ||
"babel-plugin-transform-regenerator": "6.6.5", | ||
"babel-plugin-transform-runtime": "6.6.0", | ||
"babel-preset-es2015": "6.6.0", | ||
"chai": "3.5.0", | ||
"chai-subset": "1.2.2", | ||
"coveralls": "2.11.9", | ||
"eslint": "2.7.0", | ||
"eslint-plugin-babel": "3.2.0", | ||
"flow-bin": "0.22.1", | ||
"isparta": "4.0.0", | ||
"mocha": "2.4.5", | ||
"sane": "1.3.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/sh -e | ||
|
||
# This script maintains a git branch which mirrors master but in a form that | ||
# what will eventually be deployed to npm, allowing npm dependencies to use: | ||
# | ||
# "graphql": "git://github.com/graphql/graphql-js.git#npm" | ||
# | ||
|
||
./node_modules/.bin/babel src --ignore __tests__ --out-dir npm | ||
|
||
# Ensure a vanilla package.json before deploying so other tools do not interpret | ||
# The built output as requiring any further transformation. | ||
node -e "var package = require('./package.json'); \ | ||
delete package.babel; delete package.scripts; delete package.options; \ | ||
require('fs').writeFileSync('./npm/package.json', JSON.stringify(package, null, 2));" | ||
|
||
cp README.md npm/ | ||
cp LICENSE npm/ | ||
cp PATENTS npm/ | ||
|
||
cd npm | ||
git init | ||
git config user.name "Travis CI" | ||
git config user.email "[email protected]" | ||
git add . | ||
git commit -m "Deploy master to NPM branch" | ||
git push --force --quiet "https://${GH_TOKEN}@github.com/graphql/graphql-js.git" master:npm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.