mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
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:
parent
68ad4cc160
commit
de87e16906
22
codegen.yml
22
codegen.yml
@ -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
4077
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -16,8 +16,7 @@
|
|||||||
"type-check": "tsc --noEmit",
|
"type-check": "tsc --noEmit",
|
||||||
"deploy:s3": "bash scripts/deploy-s3.sh",
|
"deploy:s3": "bash scripts/deploy-s3.sh",
|
||||||
"postinstall": "husky install",
|
"postinstall": "husky install",
|
||||||
"codegen:apollo": "apollo client:codegen --target typescript --tsFileExtension=d.ts --outputFlat src/@types/apollo/",
|
"codegen:apollo": "apollo client:codegen --target typescript --tsFileExtension=d.ts --outputFlat src/@types/apollo/"
|
||||||
"codegen:graphql": "graphql-codegen --config codegen.yml"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@coingecko/cryptoformat": "^0.4.4",
|
"@coingecko/cryptoformat": "^0.4.4",
|
||||||
@ -75,11 +74,6 @@
|
|||||||
"yup": "^0.32.11"
|
"yup": "^0.32.11"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"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",
|
"@svgr/webpack": "^6.2.0",
|
||||||
"@types/chart.js": "^2.9.35",
|
"@types/chart.js": "^2.9.35",
|
||||||
"@types/d3": "^7.1.0",
|
"@types/d3": "^7.1.0",
|
||||||
|
@ -3,9 +3,6 @@
|
|||||||
# Write out repo metadata
|
# Write out repo metadata
|
||||||
node ./scripts/write-repo-metadata > content/repo-metadata.json
|
node ./scripts/write-repo-metadata > content/repo-metadata.json
|
||||||
|
|
||||||
# Generate GraphQL typings for urql
|
|
||||||
# npm run codegen:graphql
|
|
||||||
|
|
||||||
# Generate Apollo typings
|
# Generate Apollo typings
|
||||||
npm run codegen:apollo
|
npm run codegen:apollo
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ export function getDevelopmentConfig(): Config {
|
|||||||
// metadataContractAddress: contractAddresses.development?.Metadata,
|
// metadataContractAddress: contractAddresses.development?.Metadata,
|
||||||
// oceanTokenAddress: contractAddresses.development?.Ocean,
|
// oceanTokenAddress: contractAddresses.development?.Ocean,
|
||||||
// There is no subgraph in barge so we hardcode the Rinkeby one for now
|
// 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
|
} as Config
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user