feat: gql codegen + caching + optimistic

This commit is contained in:
Andrew Bastin
2021-10-08 23:44:23 +05:30
parent a5fd39adf8
commit 337a60c8a4
24 changed files with 1202 additions and 418 deletions

View File

@@ -9,8 +9,11 @@
"pnpm": ">=3"
},
"scripts": {
"dev": "nuxt",
"dev": "pnpx npm-run-all -p -l dev:*",
"dev:nuxt": "nuxt",
"dev:gql-codegen": "graphql-codegen --config gql-codegen.yml --watch",
"build": "vue-tsc --noEmit && nuxt build",
"postinstall": "pnpm run gql-codegen",
"start": "nuxt start",
"generate": "nuxt generate --modern",
"analyze": "npx nuxt build -a",
@@ -24,7 +27,8 @@
"do-prod-start": "pnpm run start",
"do-lint": "pnpm run lint",
"do-lintfix": "pnpm run lintfix",
"do-test": "pnpm run test"
"do-test": "pnpm run test",
"gql-codegen": "graphql-codegen --config gql-codegen.yml"
},
"dependencies": {
"@apollo/client": "^3.4.13",
@@ -80,6 +84,13 @@
"@babel/preset-env": "^7.15.6",
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@graphql-codegen/add": "^3.1.0",
"@graphql-codegen/cli": "2.2.0",
"@graphql-codegen/typed-document-node": "^2.1.4",
"@graphql-codegen/typescript": "2.2.2",
"@graphql-codegen/typescript-operations": "^2.1.6",
"@graphql-codegen/urql-introspection": "^2.1.0",
"@graphql-typed-document-node/core": "^3.1.0",
"@nuxt/types": "^2.15.8",
"@nuxt/typescript-build": "^2.1.0",
"@nuxtjs/color-mode": "^2.1.1",
@@ -109,6 +120,7 @@
"eslint-plugin-vue": "^7.18.0",
"jest": "^27.2.2",
"jest-serializer-vue": "^2.0.2",
"npm-run-all": "^4.1.5",
"nuxt-windicss": "^1.2.4",
"prettier": "^2.4.1",
"pretty-quick": "^3.1.1",
@@ -124,4 +136,4 @@
"vue-jest": "^3.0.7",
"worker-loader": "^3.0.8"
}
}
}