Skip to content

Commit

Permalink
Universe: use a new Relay (Rust) Compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnzlml committed Jun 25, 2021
1 parent bb06fc7 commit 1d0da05
Show file tree
Hide file tree
Showing 55 changed files with 766 additions and 1,110 deletions.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"flow-bin": "^0.153.0",
"glob": "^7.1.7",
"jest": "^27.0.5",
"jest-runner-eslint": "^0.10.1"
"jest-runner-eslint": "^0.10.1",
"relay-compiler-experimental": "0.0.0-master-211d6fec"
},
"jest": {
"testRegex": "/scripts/jest/dontRunJestDirectly\\.js$"
Expand All @@ -35,6 +36,9 @@
"test": "yarn run flow --max-warnings=0 && yarn run lint && yarn run test-only --ci --colors && yarn run scanner",
"test-only": "src/monorepo-utils/bin/monorepo-run-tests.js"
},
"resolutions": {
"graphql": "15.3.0"
},
"jest-runner-eslint": {
"cliOptions": {
"format": "codeframe",
Expand Down
32 changes: 32 additions & 0 deletions relay.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// @flow strict

module.exports = {
root: '.',
sources: {
'src/abacus-backoffice': 'abacus',
'src/abacus-kochka': 'abacus',
'src/example-relay': 'example-relay',
'src/relay': 'relay',
},
excludes: ['**/__flowtests__/**'],
codegenCommand: './node_modules/.bin/relay-compiler-experimental',
projects: {
'abacus': {
schema: 'src/abacus/schema.graphql',
customScalarTypes: {
ProductImageUploadable: 'String',
},
jsModuleFormat: 'commonjs',
},
'example-relay': {
schema: 'src/example-relay/schema.graphql',
extensions: ['src/example-relay/src/LocalForm'],
jsModuleFormat: 'commonjs',
},
'relay': {
schema: 'src/relay/schema.graphql',
jsModuleFormat: 'commonjs',
},
},
isDevVariableName: '__DEV__',
};
11 changes: 0 additions & 11 deletions src/abacus-backoffice/relay.config.js

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1d0da05

Please sign in to comment.