-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
executable file
·98 lines (98 loc) · 4.52 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"name": "sandbox-workshop",
"version": "0.0.1",
"keywords": [
"graphql",
"workshop"
],
"description": "Workshop for ahold utilizing GraphQL",
"license": "MIT",
"dependencies": {
"@apollo/react-hooks": "3.1.5",
"@apollo/react-ssr": "3.1.5",
"@graphql-codegen/fragment-matcher": "^1.15.3",
"add": "^2.0.6",
"apollo-cache-inmemory": "1.6.6",
"apollo-client": "2.6.10",
"apollo-link-batch-http": "1.2.14",
"apollo-link-context": "1.0.20",
"apollo-link-error": "1.1.13",
"apollo-link-http": "1.5.17",
"apollo-server-micro": "2.14.2",
"apollo-server-plugin-response-cache": "^0.5.2",
"dataloader": "2.0.0",
"graphql": "14.5.0",
"isomorphic-unfetch": "3.0.0",
"next": "9.4.4",
"react": "16.13.1",
"react-apollo": "3.1.5",
"react-dom": "16.13.1",
"recharts": "1.8.5",
"styled-components": "5.1.1"
},
"devDependencies": {
"@apollo/react-testing": "3.1.4",
"@graphql-codegen/add": "1.15.1",
"@graphql-codegen/cli": "1.15.1",
"@graphql-codegen/introspection": "1.15.1",
"@graphql-codegen/schema-ast": "1.15.1",
"@graphql-codegen/typescript": "1.15.1",
"@graphql-codegen/typescript-operations": "1.15.1",
"@graphql-codegen/typescript-react-apollo": "1.15.1",
"@graphql-codegen/typescript-resolvers": "1.15.1",
"@graphql-inspector/actions": "1.27.0",
"@graphql-inspector/cli": "2.1.0",
"@testing-library/jest-dom": "5.9.0",
"@testing-library/react": "10.2.0",
"@testing-library/react-hooks": "3.3.0",
"@types/jest": "25.2.3",
"@types/node": "14.0.11",
"@types/react": "16.9.35",
"@types/react-dom": "16.9.8",
"@types/recharts": "1.8.11",
"@types/styled-components": "5.1.0",
"babel-jest": "26.0.1",
"concurrently": "5.2.0",
"graphql-schema-linter": "0.4.0",
"jest": "26.0.1",
"prettier": "2.0.5",
"react-intersection-observer": "8.26.2",
"ts-jest": "26.1.0",
"typescript": "3.8.3"
},
"scripts": {
"---- app locally ----": "-------------------------",
"development": "yarn dev",
"dev": "concurrently \"yarn codegen:client -w\" \"yarn codegen:server -w\" \"yarn next\" -n \"codegen:client,codegen:server,nextjs\" -c \"gray,gray,magenta\"",
"dev:secure": "concurrently \"yarn codegen:client -w\" \"yarn codegen:server -w\" \"node server.js\" -n \"codegen:client,codegen:server,nextjs\" -c \"gray,gray,magenta\"",
"dev:inspect": "concurrently \"yarn codegen:client -w\" \"yarn codegen:server -w\" \"yarn next:inspect\" -n \"codegen:client,codegen:server,nextjs\" -c \"gray,gray,magenta\"",
"next": "next dev --port=3007",
"next:inspect": "NODE_OPTIONS='--inspect' next dev --port=3007",
"---- testing ----": "-------------------------",
"test": "yarn test:server && yarn test:client",
"test:server": "jest ./pages/api/graphql/** --config=jest-server.config.js",
"test:client": "jest {./modules/**,./components/**} --config=jest-client.config.js",
"test:watch": "concurrently \"yarn test:server --watch\" \"yarn test:client --watch\" -n \"test:server,test:client\" -c \"gray,gray\"",
"---- building ----": "-------------------------",
"build": "next build",
"start": "NODE_ENV=production next start",
"---- auto tooling ----": "-------------------------",
"codegen": "yarn codegen:client && yarn codegen:server",
"codegen:client": "graphql-codegen --config codegen-client.yml",
"codegen:server": "graphql-codegen --config codegen-server.yml",
"schema:diff": "yarn codegen && graphql-inspector diff git:origin/master:_schema.graphql _schema.graphql --rule suppressRemovalOfDeprecatedField",
"schema:documents": "graphql-inspector validate \"./modules/**/*.graphql\" _schema.graphql",
"schema:coverage": "graphql-inspector coverage \"./modules/**/*.graphql\" _schema.graphql",
"schema:similar": "graphql-inspector similar _schema.graphql",
"schema:linter": "graphql-schema-linter",
"prettier": "prettier \"{pages,lib,modules,components}/**/*.{ts,tsx}\" --write",
"update": "yarn upgrade-interactive --latest"
},
"graphql-inspector": {
"diff": true,
"schema": {
"ref": "master",
"path": "codegen/generated/_schema.graphql"
}
}
}