mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
968475fb95
Update examples with-relay-modern and with-relay-modern-server-express to react-relay 2.0.0 - react-relay has started to use new Context API instead of Legacy Context API - add `parseInt` because graphql 14.0.0 introduced stricter scalar value coercion Closes #6157
33 lines
1,005 B
JSON
33 lines
1,005 B
JSON
{
|
|
"name": "with-relay-modern-server-express",
|
|
"version": "1.0.0",
|
|
"description": "Example of Next.js with Relay Modern SSR and a Graphql Server with Express",
|
|
"scripts": {
|
|
"predev": "npm run relay",
|
|
"dev": "node server",
|
|
"build": "next build",
|
|
"prestart": "npm run build",
|
|
"start": "NODE_ENV=production node server",
|
|
"relay": "relay-compiler --src ./ --exclude '**/.next/**' '**/node_modules/**' '**/test/**' '**/__generated__/**' '**/server/**' --schema ./server/schema.graphql --verbose"
|
|
},
|
|
"author": "",
|
|
"license": "ISC",
|
|
"dependencies": {
|
|
"dotenv": "^4.0.0",
|
|
"dotenv-webpack": "^1.5.4",
|
|
"express-graphql": "^0.7.1",
|
|
"graphql": "^14.1.1",
|
|
"graphql-relay": "^0.6.0",
|
|
"isomorphic-unfetch": "^3.0.0",
|
|
"next": "latest",
|
|
"react": "^16.7.0",
|
|
"react-dom": "^16.7.0",
|
|
"react-relay": "^2.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"babel-plugin-relay": "^2.0.0",
|
|
"graphql-cli": "^1.0.0-beta.4",
|
|
"relay-compiler": "^2.0.0"
|
|
}
|
|
}
|