Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
update apollo plugin & graphql stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
BeeeQueue committed Sep 19, 2020
1 parent f19f563 commit 89c9784
Show file tree
Hide file tree
Showing 6 changed files with 462 additions and 1,796 deletions.
15 changes: 6 additions & 9 deletions .graphqlconfig
@@ -1,13 +1,10 @@
{
"projects": {
"anilist": {
"schemaPath": "schema.graphql",
"includes": ["src/**/*.graphql", "src/**/*.graphqls"],
"extensions": {
"endpoints": {
"default": "https://graphql.anilist.co"
}
}
"name": "AniList",
"schemaPath": "schema.graphql",
"includes": ["./src/**/*"],
"extensions": {
"endpoints": {
"default": "https://graphql.anilist.co"
}
}
}
15 changes: 15 additions & 0 deletions codegen-schema.yml
@@ -0,0 +1,15 @@
overwrite: true

schema:
- https://graphql.anilist.co

hooks:
afterOneFileWrite:
- prettier --write

generates:
schema.graphql:
plugins:
- add:
content: '# THIS IS A GENERATED FILE'
- schema-ast
7 changes: 3 additions & 4 deletions package.json
Expand Up @@ -16,7 +16,7 @@
"scripts": {
"build": "cross-env NODE_ENV=production vue-cli-service electron:build",
"codegen": "gql-gen",
"get-schema": "yarn graphql get-schema",
"get-schema": "yarn gql-gen -c codegen-schema.yml",
"lint": "yarn eslint \"src/**/*.{js,ts,vue}\"",
"lint:ci": "yarn lint -f junit -o test-results/eslint/results.xml",
"postinstall": "yarn electron-builder install-app-deps",
Expand Down Expand Up @@ -59,7 +59,7 @@
"extract-zip": "2.0.1",
"fluent-ffmpeg": "2.1.2",
"fuse.js": "5.2.3",
"graphql": "14.6.0",
"graphql": "15.3.0",
"hls.js": "0.14.12",
"husky": "4.3.0",
"lodash.keyby": "4.6.0",
Expand Down Expand Up @@ -136,7 +136,6 @@
"eslint": "7.9.0",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-vue": "7.0.0-beta.1",
"graphql-cli": "3.0.14",
"graphql-tag": "2.11.0",
"jest-localstorage-mock": "2.4.3",
"jest-transform-graphql": "2.1.0",
Expand All @@ -147,7 +146,7 @@
"sass-loader": "10.0.2",
"ts-node": "9.0.0",
"typescript": "4.0.3",
"vue-cli-plugin-apollo": "0.21.3",
"vue-cli-plugin-apollo": "0.22.2",
"vue-cli-plugin-electron-builder": "2.0.0-rc.1",
"vue-template-compiler": "2.6.12",
"webpack": "4.44.2"
Expand Down
1 change: 0 additions & 1 deletion src/graphql/client-schema.graphqls
Expand Up @@ -68,7 +68,6 @@ extend type Media {
scoreMal: Int
scoreSimkl: Int
linkSimkl: String
mediaListEntry: MediaList @deprecated(reason: "Use listEntry instead")
listEntry: ListEntry
}

Expand Down
3 changes: 3 additions & 0 deletions src/main.ts
Expand Up @@ -21,6 +21,9 @@ import { createProvider } from './vue-apollo'
import { normalizeEvent } from './normalize'
import { version } from '../package.json'

// https://github.com/Akryum/vue-cli-plugin-apollo/issues/355
import 'regenerator-runtime/runtime'

import 'normalize.css'
import 'vue-virtual-scroller/dist/vue-virtual-scroller.css'

Expand Down

0 comments on commit 89c9784

Please sign in to comment.