test: fix

This commit is contained in:
Guillaume Chau
2019-11-12 20:18:28 +01:00
parent 56f3ec62ba
commit 3183cf7f4e
8 changed files with 27 additions and 12 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
schema.graphql
../../
dist/
+2
View File
@@ -20,6 +20,7 @@
"marked": "^0.7.0",
"shortid": "^2.2.8",
"vue": "^2.5.16",
"vue-apollo": "^3.0.0",
"vue-router": "^3.0.1",
"vuex": "^3.0.1"
},
@@ -29,6 +30,7 @@
"@vue/cli-plugin-eslint": "^4.0.4",
"@vue/cli-service": "^4.0.4",
"@vue/eslint-config-standard": "^4.0.0",
"babel-eslint": "^10.0.3",
"eslint": "^4.19.1",
"eslint-plugin-graphql": "^3.1.0",
"eslint-plugin-vue": "^5.2.3",
+1 -1
View File
@@ -1,5 +1,5 @@
import Vue from 'vue'
import VueApollo from '../../../'
import VueApollo from 'vue-apollo'
import { createApolloClient, restartWebsockets } from 'vue-cli-plugin-apollo/graphql-client'
import { print } from 'graphql'
+2
View File
@@ -0,0 +1,2 @@
schema.graphql
dist/
+8 -8
View File
@@ -13,14 +13,14 @@ module.exports = {
rules: {
'no-console': 'off',
'no-debugger': 'off',
'graphql/template-strings': [
'error',
{
env: 'literal',
projectName: 'app',
schemaJsonFilepath: 'node_modules/.temp/graphql/schema.json'
}
]
// 'graphql/template-strings': [
// 'error',
// {
// env: 'literal',
// projectName: 'app',
// schemaJsonFilepath: 'node_modules/.temp/graphql/schema.json'
// }
// ]
},
parserOptions: {
+1 -1
View File
@@ -29,7 +29,7 @@
"mkdirp": "^0.5.1",
"shortid": "^2.2.8",
"vue": "^2.6.10",
"vue-apollo": "^3.0.0-beta.11",
"vue-apollo": "^3.0.0",
"vue-router": "^3.0.6",
"vue-server-renderer": "^2.6.0"
},
+12
View File
@@ -1,8 +1,20 @@
/** @type {import('@vue/cli-service').ProjectOptions} */
module.exports = {
pluginOptions: {
apollo: {
enableMocks: false,
enableEngine: false
}
},
chainWebpack (config) {
config.resolve.symlinks(false)
config.externals([
'utf-8-validate',
'bufferutil'
])
config.module.noParse([
/iconv-loader/
])
}
}
-1
View File
@@ -1,4 +1,3 @@
node_modules/
dist/
tests/
schema.graphql