From ed5a8c04bd61927acfad434e7a81728690c13fe4 Mon Sep 17 00:00:00 2001 From: Douglas Barone Date: Tue, 9 Feb 2021 08:47:34 -0400 Subject: [PATCH] IDE config --- apollo.config.js | 1 + vetur.config.js | 18 ++++++++++++++++++ web/tsconfig.json | 14 ++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 vetur.config.js create mode 100644 web/tsconfig.json diff --git a/apollo.config.js b/apollo.config.js index 9873c1d..103dadb 100644 --- a/apollo.config.js +++ b/apollo.config.js @@ -1,5 +1,6 @@ module.exports = { client: { + includes: ["web/src/**/*.{js,jsx,ts,tsx,vue,gql}"], service: { name: "ifms-pti-srv", url: "http://localhost:4000/graphql", diff --git a/vetur.config.js b/vetur.config.js new file mode 100644 index 0000000..4935e13 --- /dev/null +++ b/vetur.config.js @@ -0,0 +1,18 @@ +// vetur.config.js +/** @type {import('vls').VeturConfig} */ +module.exports = { + settings: { + 'vetur.useWorkspaceDependencies': true, + 'vetur.experimental.templateInterpolationService': true, + 'vetur.validation.interpolation': false + }, + + projects: [ + { + root: './web', + tsconfig: './tsconfig.json', + snippetFolder: './.vscode/vetur/snippets', + globalComponents: ['./src/**/*.vue'] + } + ] +} diff --git a/web/tsconfig.json b/web/tsconfig.json new file mode 100644 index 0000000..185682f --- /dev/null +++ b/web/tsconfig.json @@ -0,0 +1,14 @@ +{ + "include": ["./src/**/*.vue"], + "compilerOptions": { + // this aligns with Vue's browser support + "target": "es5", + // this enables stricter inference for data properties on `this` + "strict": true, + // if using webpack 2+ or rollup, to leverage tree shaking: + "module": "es2015", + "moduleResolution": "node", + "types": ["vue-apollo"] + }, + "exclude": ["node_modules"] +}