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 Apr 13, 2021
1 parent 391c618 commit 1ad374d
Show file tree
Hide file tree
Showing 49 changed files with 700 additions and 991 deletions.
35 changes: 35 additions & 0 deletions relay.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// @flow strict

module.exports = {
root: '.',
sources: {
'src/example-relay': 'example-relay',
'src/kochka.com.mx': 'ya-comiste',
'src/relay': 'relay',
'src/ya-comiste-backoffice': 'ya-comiste',
},
excludes: ['**/__flowtests__/**'],
codegenCommand: './node_modules/.bin/relay-compiler-experimental',
projects: {
'example-relay': {
schema: 'src/example-relay/schema.graphql',
extensions: ['src/example-relay/src/LocalForm'],
jsModuleFormat: 'commonjs',
haste: false,
},
'relay': {
schema: 'src/relay/schema.graphql',
jsModuleFormat: 'commonjs',
haste: false,
},
'ya-comiste': {
schema: 'src/ya-comiste-rust/schema.graphql',
customScalarTypes: {
ProductImageUploadable: 'String',
},
jsModuleFormat: 'commonjs',
haste: false,
},
},
isDevVariableName: '__DEV__',
};
1 change: 0 additions & 1 deletion src/example-relay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"start": "next dev",
"start-production": "next start",
"build": "next build",
"relay": "adeira-relay-compiler",
"schema": "adeira-fetch-schema --resource=https://relay-example.adeira.dev/api/graphql",
"test-bc": "yarn monorepo-babel-node scripts/test-bc.js"
}
Expand Down
7 changes: 0 additions & 7 deletions src/example-relay/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.

Loading

0 comments on commit 1ad374d

Please sign in to comment.