Skip to content

Commit

Permalink
Merge branch 'master' into typenames
Browse files Browse the repository at this point in the history
  • Loading branch information
jefflewis authored Apr 23, 2019
2 parents 6ed53b3 + e7aa983 commit 697f393
Show file tree
Hide file tree
Showing 56 changed files with 187,591 additions and 272 deletions.
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,18 @@ jobs:
- run:
name: Test
command: yarn test
- store_test_results:
path: test-results
- run:
name: Publish Canary
command: |
echo "Fork PR username: $CIRCLE_PR_USERNAME"
if [ "${CIRCLE_PR_USERNAME}" == "" ]
if [ "${CIRCLE_PR_USERNAME}" == "" ] && [ "${NPM_AUTH_TOKEN}" != "" ]
then
echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > .npmrc
npm run ci:release:canary
else
echo "Skipping canary publish due to a fork PR..."
echo "Skipping canary publish due to a fork/PR..."
fi
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ website/functions
website/i18n
website/static/live-demo
temp
test-results/

4 changes: 2 additions & 2 deletions docs/getting-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ There are different methods to use GraphQL Code Generator besides the [CLI](../c
### Using in Runtime
We can `require()` (or `import`) `@graphql-codegen/core` directly with Node.JS:
We can `require()` (or `import`) `@graphql-codegen/cli` directly with Node.JS:

```js
import { generate } from '@graphql-codegen/core';
import { generate } from '@graphql-codegen/cli';
async function doSomething() {
const generatedFiles = await generate(
Expand Down
17 changes: 14 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,18 @@ module.exports = {
rootDir: process.cwd(),
globals: {
'ts-jest': {
diagnostics: false
}
}
diagnostics: false,
},
},
reporters: [
'default',
[
'jest-junit',
{
classNameTemplate: '{classname}',
titleTemplate: '{title}',
addFileAttribute: 'true',
},
],
],
};
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,25 @@
"@types/graphql": "14.2.0",
"@types/jest": "24.0.11",
"@types/mkdirp": "0.5.2",
"@types/node": "10.14.4",
"@types/node": "10.14.5",
"@types/request": "2.48.1",
"apollo-link": "1.2.11",
"apollo-server": "2.4.8",
"graphql": "14.2.1",
"graphql-tag": "2.10.1",
"graphql-tools": "4.0.4",
"husky": "1.3.1",
"jest": "24.7.1",
"jest-junit": "6.3.0",
"lerna": "3.13.3",
"lint-staged": "8.1.5",
"microbundle": "0.11.0",
"react-apollo": "2.5.5",
"react-apollo-hooks": "0.4.5",
"rimraf": "2.6.3",
"ts-jest": "24.0.2",
"tslint": "5.16.0",
"typescript": "3.4.3",
"react-apollo": "2.5.4",
"react-apollo-hooks": "0.4.5",
"apollo-server": "2.4.8"
"typescript": "3.4.4"
},
"lint-staged": {
"*.{ts,tsx}": [
Expand Down
5 changes: 4 additions & 1 deletion packages/graphql-codegen-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@types/babylon": "6.16.5",
"@types/is-glob": "4.0.1",
"@types/mkdirp": "0.5.2",
"@types/prettier": "1.16.2",
"@types/prettier": "1.16.3",
"@types/valid-url": "1.0.2",
"babel-types": "7.0.0-beta.3",
"babylon": "7.0.0-beta.47",
Expand Down Expand Up @@ -98,6 +98,9 @@
"typescript": {
"definition": "dist/esnext/index.d.ts"
},
"jest-junit": {
"outputDirectory": "../../test-results/cli"
},
"publishConfig": {
"access": "public"
}
Expand Down
3 changes: 3 additions & 0 deletions packages/graphql-codegen-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
"typescript": {
"definition": "dist/esnext/index.d.ts"
},
"jest-junit": {
"outputDirectory": "../../test-results/core"
},
"publishConfig": {
"access": "public"
}
Expand Down

This file was deleted.

7 changes: 4 additions & 3 deletions packages/plugins/flow/flow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@
},
"devDependencies": {
"@graphql-codegen/testing": "1.1.0",
"flow-bin": "0.97.0",
"flow-parser": "0.97.0",
"graphql": "14.2.1",
"jest": "24.7.1",
"ts-jest": "24.0.2",
"typescript": "3.4.3"
"typescript": "3.4.4"
},
"sideEffects": false,
"main": "dist/commonjs/index.js",
Expand All @@ -29,6 +27,9 @@
"typescript": {
"definition": "dist/esnext/index.d.ts"
},
"jest-junit": {
"outputDirectory": "../../../../test-results/flow"
},
"publishConfig": {
"access": "public"
}
Expand Down
Loading

0 comments on commit 697f393

Please sign in to comment.