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 Sep 3, 2021
1 parent 47946d7 commit 082f2e8
Show file tree
Hide file tree
Showing 70 changed files with 1,024 additions and 1,406 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.159.0",
"glob": "^7.1.7",
"jest": "^27.1.0",
"jest-runner-eslint": "^0.10.1"
"jest-runner-eslint": "^0.10.1",
"relay-compiler-experimental": "0.0.0-main-9a076b66"
},
"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 082f2e8

Please sign in to comment.