Skip to content

Commit 0cc6140

Browse files
committed
Add TS config files
1 parent 1e334d7 commit 0cc6140

File tree

5 files changed

+44
-0
lines changed

5 files changed

+44
-0
lines changed

env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite/client" />

tsconfig.app.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "@vue/tsconfig/tsconfig.web.json",
3+
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
4+
"exclude": ["src/**/__tests__/*"],
5+
"compilerOptions": {
6+
"composite": true,
7+
"baseUrl": ".",
8+
"paths": {
9+
"@/*": ["./src/*"]
10+
}
11+
}
12+
}

tsconfig.config.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "@vue/tsconfig/tsconfig.node.json",
3+
"include": ["vite.config.*", "vitest.config.*", "cypress.config.*"],
4+
"compilerOptions": {
5+
"composite": true,
6+
"types": ["node"]
7+
}
8+
}

tsconfig.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"files": [],
3+
"references": [
4+
{
5+
"path": "./tsconfig.config.json"
6+
},
7+
{
8+
"path": "./tsconfig.app.json"
9+
},
10+
{
11+
"path": "./tsconfig.vitest.json"
12+
}
13+
]
14+
}

tsconfig.vitest.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.app.json",
3+
"exclude": [],
4+
"compilerOptions": {
5+
"composite": true,
6+
"lib": [],
7+
"types": ["node", "jsdom"]
8+
}
9+
}

0 commit comments

Comments
 (0)