Added codegen to saleor

This commit is contained in:
LFades 2022-01-15 00:36:14 -05:00
parent 1823c51a6e
commit 20bf672097
3 changed files with 7448 additions and 570 deletions

7967
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -4,26 +4,26 @@
},
"documents": [
{
"./framework/saleor/utils/queries/get-all-products-query.ts": {
"./src/utils/queries/get-all-products-query.ts": {
"noRequire": true
}
},
{
"./framework/saleor/utils/queries/get-all-products-paths-query.ts": {
"./src/utils/queries/get-all-products-paths-query.ts": {
"noRequire": true
}
},
{
"./framework/saleor/utils/queries/get-products.ts": {
"./src/utils/queries/get-products.ts": {
"noRequire": true
}
}
],
"generates": {
"./framework/saleor/schema.d.ts": {
"./schema.d.ts": {
"plugins": ["typescript", "typescript-operations"]
},
"./framework/saleor/schema.graphql": {
"./schema.graphql": {
"plugins": ["schema-ast"]
}
},

View File

@ -5,7 +5,8 @@
"scripts": {
"build": "rm -fr dist/* && tsc",
"dev": "npm run build -- --watch",
"prettier-fix": "prettier --write ."
"prettier-fix": "prettier --write .",
"generate": "graphql-codegen"
},
"sideEffects": false,
"type": "module",
@ -55,6 +56,10 @@
"react-dom": "^17"
},
"devDependencies": {
"@graphql-codegen/cli": "^2.3.1",
"@graphql-codegen/schema-ast": "^2.4.1",
"@graphql-codegen/typescript": "^2.4.2",
"@graphql-codegen/typescript-operations": "^2.2.2",
"@types/node": "^15.12.4",
"@types/react": "^17.0.8",
"lint-staged": "^12.1.7",