remove graphql-codegen stuff

* keep existing apollo-based generation as it just works
* can be put back from this commit when doing #722
This commit is contained in:
Matthias Kretschmann 2022-01-13 22:27:00 +00:00
parent 68ad4cc160
commit de87e16906
Signed by: m
GPG Key ID: 606EEEF3C479A91F
5 changed files with 2 additions and 4110 deletions

View File

@ -1,22 +0,0 @@
overwrite: true
schema: 'https://subgraph.rinkeby.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph'
documents:
- './src/@utils/aquarius.ts'
- './src/@utils/subgraph.ts'
- './src/@context/Profile.tsx'
- './src/components/@shared/PoolTransactions/index.tsx'
- './src/components/@shared/Asset/AssetActions/Consume.tsx'
- './src/components/@shared/Asset/AssetActions/Pool/index.tsx'
- './src/components/@shared/Asset/AssetActions/Pool/Graph.tsx'
- './src/components/@shared/Asset/AssetContent/EditHistory.tsx'
- './src/components/Profile/Header/Stats.tsx'
- './src/components/Profile/History/PoolShares.tsx'
generates:
./src/@types/graph.types.ts:
plugins:
- 'typescript'
- 'typescript-operations'
- 'typescript-react-apollo'
./graphql.schema.json:
plugins:
- 'introspection'

4077
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -16,8 +16,7 @@
"type-check": "tsc --noEmit",
"deploy:s3": "bash scripts/deploy-s3.sh",
"postinstall": "husky install",
"codegen:apollo": "apollo client:codegen --target typescript --tsFileExtension=d.ts --outputFlat src/@types/apollo/",
"codegen:graphql": "graphql-codegen --config codegen.yml"
"codegen:apollo": "apollo client:codegen --target typescript --tsFileExtension=d.ts --outputFlat src/@types/apollo/"
},
"dependencies": {
"@coingecko/cryptoformat": "^0.4.4",
@ -75,11 +74,6 @@
"yup": "^0.32.11"
},
"devDependencies": {
"@graphql-codegen/cli": "^2.3.1",
"@graphql-codegen/introspection": "^2.1.1",
"@graphql-codegen/typescript": "^2.4.2",
"@graphql-codegen/typescript-operations": "^2.2.2",
"@graphql-codegen/typescript-react-apollo": "^3.2.3",
"@svgr/webpack": "^6.2.0",
"@types/chart.js": "^2.9.35",
"@types/d3": "^7.1.0",

View File

@ -3,9 +3,6 @@
# Write out repo metadata
node ./scripts/write-repo-metadata > content/repo-metadata.json
# Generate GraphQL typings for urql
# npm run codegen:graphql
# Generate Apollo typings
npm run codegen:apollo

View File

@ -31,7 +31,7 @@ export function getDevelopmentConfig(): Config {
// metadataContractAddress: contractAddresses.development?.Metadata,
// oceanTokenAddress: contractAddresses.development?.Ocean,
// There is no subgraph in barge so we hardcode the Rinkeby one for now
subgraphUri: 'https://subgraph.rinkeby.oceanprotocol.com'
subgraphUri: 'https://subgraphv4.rinkeby.oceanprotocol.com'
} as Config
}