Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit 6cc98bc

Browse files
committed
[Example] Update with latest changes.
1 parent 0a1fb9e commit 6cc98bc

10 files changed

+2205
-625
lines changed

example/package.json

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,20 @@
22
"private": true,
33
"scripts": {
44
"start": "babel-node ./server.js",
5-
"build": "relay-compiler --src ./ts/ --schema ./data/schema.graphql --language typescript --artifactDirectory ./ts/__relay_artifacts__",
5+
"build":
6+
"relay-compiler --src ./ts/ --schema ./data/schema.graphql --language typescript --artifactDirectory ./ts/__relay_artifacts__",
67
"update-schema": "babel-node ./scripts/updateSchema.js",
78
"lint": "eslint ./js",
89
"type-check": "tsc --noEmit --pretty"
910
},
1011
"resolutions": {
11-
"graphql": "^0.13.1",
12-
"relay-compiler-language-typescript": "file:../relay-compiler-language-typescript-1.1.0-alpha.1.tgz",
13-
"relay-compiler": "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/relay-compiler-1.6.1-plugin.1.tgz",
14-
"graphql-compiler": "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/graphql-compiler-1.6.1-plugin.1.tgz",
15-
"relay-runtime": "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/relay-runtime-1.6.1-plugin.1.tgz",
16-
"babel-plugin-relay": "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/babel-plugin-relay-1.6.1-plugin.1.tgz",
17-
"react-relay": "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/react-relay-1.6.1-plugin.1.tgz"
12+
"relay-compiler-language-typescript":
13+
"file:../relay-compiler-language-typescript-1.1.1-alpha.1.tgz"
1814
},
1915
"dependencies": {
2016
"babel-core": "^6.26.0",
2117
"babel-loader": "^7.1.2",
22-
"babel-plugin-relay": "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/babel-plugin-relay-1.6.1-plugin.1.tgz",
18+
"babel-plugin-relay": "^1.7.0",
2319
"babel-plugin-transform-runtime": "^6.12.0",
2420
"babel-preset-es2015": "^6.13.2",
2521
"babel-preset-react": "^6.11.1",
@@ -29,14 +25,14 @@
2925
"express": "^4.15.2",
3026
"express-graphql": "^0.6.4",
3127
"graphql": "^0.13.1",
32-
"graphql-compiler": "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/graphql-compiler-1.6.1-plugin.1.tgz",
28+
"graphql-compiler": "^1.7.0",
3329
"graphql-relay": "^0.5.1",
3430
"prop-types": "^15.6.2",
3531
"react": "^16.4.1",
3632
"react-dom": "^16.4.1",
37-
"react-relay": "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/react-relay-1.6.1-plugin.1.tgz",
33+
"react-relay": "^1.7.0",
3834
"relay-devtools": "^1.4.0",
39-
"relay-runtime": "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/relay-runtime-1.6.1-plugin.1.tgz",
35+
"relay-runtime": "^1.7.0",
4036
"todomvc-app-css": "^2.1.0",
4137
"todomvc-common": "^1.0.3",
4238
"webpack": "^3.5.5",
@@ -58,8 +54,9 @@
5854
"eslint-plugin-flowtype": "2.15.0",
5955
"eslint-plugin-react": "5.2.2",
6056
"fork-ts-checker-webpack-plugin": "^0.3.0",
61-
"relay-compiler": "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/relay-compiler-1.6.1-plugin.1.tgz",
62-
"relay-compiler-language-typescript": "file:../relay-compiler-language-typescript-1.1.0-alpha.1.tgz",
57+
"relay-compiler": "^1.7.0",
58+
"relay-compiler-language-typescript":
59+
"file:../relay-compiler-language-typescript-1.1.1-alpha.1.tgz",
6360
"ts-loader": "^3.2.0",
6461
"typescript": "2.9.1"
6562
}

example/ts/__relay_artifacts__/AddTodoMutation.graphql.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
/* tslint:disable */
22

33
import { ConcreteRequest } from "relay-runtime";
4-
export type AddTodoInput = {
5-
readonly text: string;
6-
readonly clientMutationId?: string | null;
7-
};
4+
export type AddTodoInput = {};
85
export type AddTodoMutationVariables = {
96
readonly input: AddTodoInput;
107
};

example/ts/__relay_artifacts__/ChangeTodoStatusMutation.graphql.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/* tslint:disable */
22

33
import { ConcreteRequest } from "relay-runtime";
4-
export type ChangeTodoStatusInput = {
5-
readonly complete: boolean;
6-
readonly id: string;
7-
readonly clientMutationId?: string | null;
8-
};
4+
export type ChangeTodoStatusInput = {};
95
export type ChangeTodoStatusMutationVariables = {
106
readonly input: ChangeTodoStatusInput;
117
};

example/ts/__relay_artifacts__/MarkAllTodosMutation.graphql.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
/* tslint:disable */
22

33
import { ConcreteRequest } from "relay-runtime";
4-
export type MarkAllTodosInput = {
5-
readonly complete: boolean;
6-
readonly clientMutationId?: string | null;
7-
};
4+
export type MarkAllTodosInput = {};
85
export type MarkAllTodosMutationVariables = {
96
readonly input: MarkAllTodosInput;
107
};

example/ts/__relay_artifacts__/RemoveCompletedTodosMutation.graphql.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
/* tslint:disable */
22

33
import { ConcreteRequest } from "relay-runtime";
4-
export type RemoveCompletedTodosInput = {
5-
readonly clientMutationId?: string | null;
6-
};
4+
export type RemoveCompletedTodosInput = {};
75
export type RemoveCompletedTodosMutationVariables = {
86
readonly input: RemoveCompletedTodosInput;
97
};

example/ts/__relay_artifacts__/RemoveTodoMutation.graphql.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
/* tslint:disable */
22

33
import { ConcreteRequest } from "relay-runtime";
4-
export type RemoveTodoInput = {
5-
readonly id: string;
6-
readonly clientMutationId?: string | null;
7-
};
4+
export type RemoveTodoInput = {};
85
export type RemoveTodoMutationVariables = {
96
readonly input: RemoveTodoInput;
107
};

example/ts/__relay_artifacts__/RenameTodoMutation.graphql.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/* tslint:disable */
22

33
import { ConcreteRequest } from "relay-runtime";
4-
export type RenameTodoInput = {
5-
readonly id: string;
6-
readonly text: string;
7-
readonly clientMutationId?: string | null;
8-
};
4+
export type RenameTodoInput = {};
95
export type RenameTodoMutationVariables = {
106
readonly input: RenameTodoInput;
117
};

0 commit comments

Comments
 (0)