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 30, 2021
1 parent ef86fa5 commit 9067987
Show file tree
Hide file tree
Showing 50 changed files with 737 additions and 1,051 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/abacus-backoffice': 'abacus',
'src/example-relay': 'example-relay',
'src/kochka.com.mx': 'abacus',
'src/relay': 'relay',
},
excludes: ['**/__flowtests__/**'],
codegenCommand: './node_modules/.bin/relay-compiler-experimental',
projects: {
'abacus': {
schema: 'src/abacus/schema.graphql',
customScalarTypes: {
ProductImageUploadable: 'String',
},
jsModuleFormat: 'commonjs',
haste: false,
},
'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,
},
},
isDevVariableName: '__DEV__',
};
3 changes: 1 addition & 2 deletions src/abacus-backoffice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"fbt:manifest": "fbt-manifest --src=src --src=pages --enum-manifest=translations/enum_manifest.json --src-manifest=translations/src_manifest.json",
"fbt:collect": "fbt-collect --options=__self --pretty --manifest < translations/src_manifest.json > translations/source_strings.json",
"fbt:translate": "fbt-translate --source-strings=translations/source_strings.json --pretty --translations translations/in/*.json --output-dir=translations/out --jenkins",
"fbt": "yarn run fbt:manifest && yarn run fbt:collect && yarn run fbt:translate",
"relay": "adeira-relay-compiler"
"fbt": "yarn run fbt:manifest && yarn run fbt:collect && yarn run fbt:translate"
},
"dependencies": {
"@adeira/js": "^2.1.0",
Expand Down
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 9067987

Please sign in to comment.