mirror of
https://github.com/vercel/commerce.git
synced 2025-06-09 01:36:57 +00:00
Added codegen to saleor
This commit is contained in:
parent
1823c51a6e
commit
20bf672097
8001
package-lock.json
generated
8001
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -4,26 +4,26 @@
|
|||||||
},
|
},
|
||||||
"documents": [
|
"documents": [
|
||||||
{
|
{
|
||||||
"./framework/saleor/utils/queries/get-all-products-query.ts": {
|
"./src/utils/queries/get-all-products-query.ts": {
|
||||||
"noRequire": true
|
"noRequire": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"./framework/saleor/utils/queries/get-all-products-paths-query.ts": {
|
"./src/utils/queries/get-all-products-paths-query.ts": {
|
||||||
"noRequire": true
|
"noRequire": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"./framework/saleor/utils/queries/get-products.ts": {
|
"./src/utils/queries/get-products.ts": {
|
||||||
"noRequire": true
|
"noRequire": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"generates": {
|
"generates": {
|
||||||
"./framework/saleor/schema.d.ts": {
|
"./schema.d.ts": {
|
||||||
"plugins": ["typescript", "typescript-operations"]
|
"plugins": ["typescript", "typescript-operations"]
|
||||||
},
|
},
|
||||||
"./framework/saleor/schema.graphql": {
|
"./schema.graphql": {
|
||||||
"plugins": ["schema-ast"]
|
"plugins": ["schema-ast"]
|
||||||
}
|
}
|
||||||
},
|
},
|
@ -5,7 +5,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rm -fr dist/* && tsc",
|
"build": "rm -fr dist/* && tsc",
|
||||||
"dev": "npm run build -- --watch",
|
"dev": "npm run build -- --watch",
|
||||||
"prettier-fix": "prettier --write ."
|
"prettier-fix": "prettier --write .",
|
||||||
|
"generate": "graphql-codegen"
|
||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@ -55,6 +56,10 @@
|
|||||||
"react-dom": "^17"
|
"react-dom": "^17"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"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/node": "^15.12.4",
|
||||||
"@types/react": "^17.0.8",
|
"@types/react": "^17.0.8",
|
||||||
"lint-staged": "^12.1.7",
|
"lint-staged": "^12.1.7",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user