Skip to content

Commit 01e0f34

Browse files
committed
feat: ✨ add featurs for vue3-ts template
1 parent bf82a82 commit 01e0f34

File tree

6 files changed

+27
-36
lines changed

6 files changed

+27
-36
lines changed

template-vue3-ts-simple/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<meta charset="UTF-8" />
5-
<link rel="icon" href="/favicon.ico" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
4+
<meta charset="UTF-8">
5+
<link rel="icon" href="/favicon.ico">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>VueDsfr App</title>
88
</head>
99
<body>

template-vue3-ts-simple/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
"@rushstack/eslint-patch": "^1.6.0",
2727
"@tsconfig/node20": "^20.1.2",
2828
"@types/jsdom": "^21.1.6",
29-
"@types/node": "^20.10.4",
30-
"@vitejs/plugin-vue": "^4.5.1",
29+
"@types/node": "^20.11.28",
30+
"@vitejs/plugin-vue": "^5.0.4",
3131
"@vitejs/plugin-vue-jsx": "^3.1.0",
3232
"@vue/eslint-config-typescript": "^12.0.0",
33-
"@vue/test-utils": "^2.4.3",
34-
"@vue/tsconfig": "^0.4.0",
33+
"@vue/test-utils": "^2.4.5",
34+
"@vue/tsconfig": "^0.5.1",
3535
"eslint": "^8.55.0",
3636
"eslint-plugin-vue": "^9.19.2",
3737
"npm-run-all2": "^6.1.2",
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"extends": "@vue/tsconfig/tsconfig.dom.json",
3-
"include": ["./src/auto-imports.d.ts", "./env.d.ts", "src/**/*", "src/**/*.vue"],
4-
"exclude": ["src/**/__tests__/*", "src/**/*.spec.ts"],
53
"compilerOptions": {
64
"composite": true,
7-
"noEmit": true,
5+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
6+
87
"baseUrl": ".",
98
"paths": {
109
"@/*": ["./src/*"]
1110
}
12-
}
11+
},
12+
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
13+
"exclude": ["src/**/__tests__/*"]
1314
}
Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
{
2-
"files": [],
3-
"ts-node": {
4-
"transpileOnly": true,
5-
"compilerOptions": {
6-
"module": "ES2015"
7-
}
8-
},
92
"references": [
103
{
114
"path": "./tsconfig.node.json"
@@ -17,7 +10,5 @@
1710
"path": "./tsconfig.vitest.json"
1811
}
1912
],
20-
"compilerOptions": {
21-
"module": "NodeNext"
22-
}
13+
"files": []
2314
}
Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
{
22
"extends": "@tsconfig/node20/tsconfig.json",
3+
"compilerOptions": {
4+
"composite": true,
5+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
6+
7+
"module": "ESNext",
8+
"moduleResolution": "Bundler",
9+
"types": ["node"],
10+
"noEmit": true
11+
},
312
"include": [
4-
"./src/auto-imports.d.ts",
5-
"./env.d.ts",
6-
"src/**/*.ts",
7-
"src/**/*.vue",
813
"vite.config.*",
914
"vitest.config.*",
1015
"cypress.config.*",
1116
"nightwatch.conf.*",
1217
"playwright.config.*"
13-
],
14-
"compilerOptions": {
15-
"composite": true,
16-
"noEmit": true,
17-
"module": "ESNext",
18-
"moduleResolution": "Bundler",
19-
"types": ["node", "vitest"]
20-
}
18+
]
2119
}
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"extends": "./tsconfig.app.json",
3-
"include": ["./**/*.{test,spec}.{ts,js}"],
4-
"exclude": [],
53
"compilerOptions": {
64
"composite": true,
5+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.vitest.tsbuildinfo",
6+
77
"lib": [],
88
"types": ["node", "jsdom"]
9-
}
9+
},
10+
"exclude": []
1011
}

0 commit comments

Comments
 (0)