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 Nov 13, 2021
1 parent 9db2518 commit 5e61f60
Show file tree
Hide file tree
Showing 72 changed files with 1,056 additions and 1,456 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"flow-bin": "^0.164.0",
"glob": "^7.2.0",
"jest": "^27.3.1",
"jest-runner-eslint": "^1.0.0"
"jest-runner-eslint": "^1.0.0",
"relay-compiler-experimental": "0.0.0-main-8ff54d69"
},
"jest": {
"testRegex": "/scripts/jest/dontRunJestDirectly\\.js$"
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',
schemaExtensions: ['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 5e61f60

Please sign in to comment.