-
Notifications
You must be signed in to change notification settings - Fork 16
/
package.json
84 lines (84 loc) · 3.15 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
{
"name": "spotify-showcase",
"version": "1.0.0",
"description": "# React + Apollo Spotify Showcase",
"main": "setup.js",
"workspaces": [
"./client/",
"./shared/*",
"./subgraphs/*"
],
"scripts": {
"codegen": "rover graph fetch Spotify-tb7du2@prod-external | prettier --parser graphql > ./client/schema.graphql && graphql-codegen",
"docker:build:spotify": "docker build -t subgraph-spotify -f ./subgraphs/spotify/Dockerfile .",
"docker:build:playback": "docker build -t subgraph-playback -f ./subgraphs/playback/Dockerfile .",
"docker:build:router": "docker build -t showcase-router -f ./router/Dockerfile ./router",
"docker:run": "docker-compose --env-file=./.env up --build",
"format": "prettier . --write",
"lint": "concurrently \"npm:lint:*\"",
"lint:format": "prettier . --check",
"lint:all": "eslint .",
"lint:types:client": "npm run lint:types -w client",
"lint:types:spotify": "npm run lint:types -w spotify-subgraph",
"lint:types:playback": "npm run lint:types -w playback-subgraph",
"lint:types:spotify-api": "npm run lint:types -w spotify-api",
"build": "npm run build -ws",
"graphos-demo": "ts-node --files scripts/demo.ts",
"generate:mocks": "npm run generate:mocks -w spotify-api",
"generate:pq": "generate-persisted-query-manifest",
"start": "npm run start:client",
"start:all": "concurrently \"npm:dev -w playback-subgraph\" \"npm:dev -w spotify-subgraph\" \"npm:start:router\"",
"start:client": "npm run start -w client",
"start:spotify": "npm run start -w spotify-subgraph",
"start:playback": "npm run start -w playback-subgraph",
"start:router": "./router/router --supergraph=./router/supergraph.graphql --config=./router/router.yaml"
},
"repository": {
"type": "git",
"url": "git+https://github.com/apollographql/spotify-showcase.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/apollographql/spotify-showcase/issues"
},
"homepage": "https://github.com/apollographql/spotify-showcase#readme",
"devDependencies": {
"@apollo/rover": "^0.17.1",
"@graphql-eslint/eslint-plugin": "^3.20.1",
"@types/inquirer": "^8.2.6",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"concurrently": "^8.2.0",
"eslint": "^8.35.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"graphql": "^16.7.1",
"prettier": "^3.0.0",
"ts-node": "^10.9.1",
"typescript": "^5.1.6"
},
"dependencies": {
"@apollo/generate-persisted-query-manifest": "^1.0.0",
"@apollo/server-plugin-response-cache": "^4.1.3",
"@graphql-codegen/cli": "^4.0.1",
"@graphql-codegen/fragment-matcher": "^5.0.0",
"@graphql-codegen/typescript": "^4.0.1",
"@graphql-codegen/typescript-operations": "^4.0.1",
"@graphql-codegen/typescript-resolvers": "^4.0.1",
"dotenv": "^16.3.1",
"inquirer": "^8.2.5",
"upath": "^2.0.1"
},
"prettier": {
"bracketSpacing": true,
"printWidth": 80,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5"
},
"engines": {
"node": ">=18.0"
}
}