]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
fix(cypress-ct): avoid cypress types polluting normal source files (#62)
authorHaoqun Jiang <haoqunjiang@gmail.com>
Mon, 21 Feb 2022 06:58:46 +0000 (14:58 +0800)
committerGitHub <noreply@github.com>
Mon, 21 Feb 2022 06:58:46 +0000 (14:58 +0800)
template/tsconfig/cypress-ct/tsconfig.app.json [new file with mode: 0644]
template/tsconfig/cypress-ct/tsconfig.cypress-ct.json [new file with mode: 0644]
template/tsconfig/cypress-ct/tsconfig.json [new file with mode: 0644]

diff --git a/template/tsconfig/cypress-ct/tsconfig.app.json b/template/tsconfig/cypress-ct/tsconfig.app.json
new file mode 100644 (file)
index 0000000..cdbea1d
--- /dev/null
@@ -0,0 +1,12 @@
+{
+  "extends": "@vue/tsconfig/tsconfig.web.json",
+  "include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
+  "exclude": ["src/**/__tests__/*"],
+  "compilerOptions": {
+    "composite": true,
+    "baseUrl": ".",
+    "paths": {
+      "@/*": ["./src/*"]
+    }
+  }
+}
diff --git a/template/tsconfig/cypress-ct/tsconfig.cypress-ct.json b/template/tsconfig/cypress-ct/tsconfig.cypress-ct.json
new file mode 100644 (file)
index 0000000..dec23bc
--- /dev/null
@@ -0,0 +1,8 @@
+{
+  "extends": "./tsconfig.app.json",
+  "exclude": [],
+  "compilerOptions": {
+    "composite": true,
+    "lib": []
+  }
+}
diff --git a/template/tsconfig/cypress-ct/tsconfig.json b/template/tsconfig/cypress-ct/tsconfig.json
new file mode 100644 (file)
index 0000000..50fe5cd
--- /dev/null
@@ -0,0 +1,14 @@
+{
+  "files": [],
+  "references": [
+    {
+      "path": "./tsconfig.vite-config.json"
+    },
+    {
+      "path": "./tsconfig.app.json"
+    },
+    {
+      "path": "./tsconfig.cypress-ct.json"
+    }
+  ]
+}