File tree Expand file tree Collapse file tree 5 files changed +61
-20
lines changed Expand file tree Collapse file tree 5 files changed +61
-20
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ trim_trailing_whitespace = false
14
14
[* .{yml,yaml} ]
15
15
indent_size = 2
16
16
17
- [* .{js,ts,vue} ]
17
+ [* .{js,ts,mts, vue} ]
18
18
indent_size = 2
19
19
indent_style = tab
20
20
Original file line number Diff line number Diff line change 24
24
"paths" : {
25
25
"@/*" : [
26
26
" ./src/*"
27
+ ],
28
+ "@types/*" : [
29
+ " ./src/plugin/types/*"
30
+ ],
31
+ "@components/*" : [
32
+ " ./src/plugin/components/*"
33
+ ],
34
+ "@composables/*" : [
35
+ " ./src/plugin/composables/*"
36
+ ],
37
+ "@slots/*" : [
38
+ " ./src/plugin/slots/*"
39
+ ],
40
+ "@utils/*" : [
41
+ " ./src/plugin/utils/*"
27
42
]
28
43
},
29
44
"resolveJsonModule" : true ,
32
47
"strict" : true ,
33
48
"target" : " ESNext" ,
34
49
"typeRoots" : [
35
- " ./src/types" ,
50
+ " ./src/plugin/ types" ,
36
51
" ./node_modules/@types" ,
37
52
" ./node_modules/vuetify"
38
53
],
43
58
},
44
59
"exclude" : [
45
60
" playground" ,
61
+ " src/**/*.spec.ts" ,
62
+ " src/**/*.test.ts" ,
46
63
" src/App.vue" ,
47
- " src/main.ts" ,
48
- " src/layout/**/*.ts" ,
49
- " src/layout/**/*.vue" ,
50
- " src/components/**/*.ts" ,
51
- " src/components/**/*.vue" ,
52
64
" src/documentation/**/*.ts" ,
53
65
" src/documentation/**/*.vue" ,
54
- " src/playground/**/*.vue " ,
66
+ " src/main.ts " ,
55
67
" src/playground/**/*.ts" ,
56
- " src/stores/**/*.ts" ,
57
68
" src/plugins/**/*.ts" ,
69
+ " src/stores/**/*.ts" ,
58
70
" node_modules"
59
71
],
60
72
"include" : [
61
- " src/types/auto-imports.d.ts" ,
62
- " src/types/**/*.ts" ,
63
- " src/types/**/*.d.ts" ,
73
+ " src/playground/PlaygroundPage.vue" ,
64
74
" src/plugin/**/*.ts" ,
75
+ " src/plugin/**/*.tsx" ,
65
76
" src/plugin/**/*.vue"
66
77
],
67
78
"references" : [
Original file line number Diff line number Diff line change 1
1
{
2
- "compilerOptions" : {
3
- "composite" : true ,
4
- "skipLibCheck" : true ,
5
- "module" : " ESNext" ,
6
- "moduleResolution" : " bundler" ,
7
- "allowSyntheticDefaultImports" : true
8
- },
9
- "include" : [" vite.config.ts" ]
2
+ "compilerOptions" : {
3
+ "composite" : true ,
4
+ "skipLibCheck" : true ,
5
+ "module" : " ESNext" ,
6
+ "moduleResolution" : " bundler" ,
7
+ "allowSyntheticDefaultImports" : true
8
+ },
9
+ "include" : [
10
+ " vite.config.mts"
11
+ ]
10
12
}
Original file line number Diff line number Diff line change @@ -52,13 +52,20 @@ export default defineConfig({
52
52
resolve : {
53
53
alias : {
54
54
'@' : fileURLToPath ( new URL ( './src' , import . meta. url ) ) ,
55
+ '@components' : fileURLToPath ( new URL ( './src/plugin/components' , import . meta. url ) ) ,
56
+ '@composables' : fileURLToPath ( new URL ( './src/plugin/composables' , import . meta. url ) ) ,
57
+ '@plugin' : fileURLToPath ( new URL ( './src/plugin' , import . meta. url ) ) ,
55
58
'@root' : fileURLToPath ( new URL ( '.' , import . meta. url ) ) ,
59
+ '@slots' : fileURLToPath ( new URL ( './src/plugin/slots' , import . meta. url ) ) ,
60
+ '@types' : fileURLToPath ( new URL ( './src/plugin/types' , import . meta. url ) ) ,
61
+ '@utils' : fileURLToPath ( new URL ( './src/plugin/utils' , import . meta. url ) ) ,
56
62
} ,
57
63
extensions : [
58
64
'.js' ,
59
65
'.json' ,
60
66
'.jsx' ,
61
67
'.mjs' ,
68
+ '.mts' ,
62
69
'.ts' ,
63
70
'.tsx' ,
64
71
'.vue' ,
Original file line number Diff line number Diff line change
1
+ import { fileURLToPath } from 'node:url' ;
2
+ import { mergeConfig , defineConfig , configDefaults } from 'vitest/config' ;
3
+ import viteConfig from './vite.config.mts' ;
4
+
5
+ export default mergeConfig (
6
+ viteConfig ,
7
+ defineConfig ( {
8
+ test : {
9
+ environment : 'jsdom' ,
10
+ exclude : [
11
+ ...configDefaults . exclude ,
12
+ ] ,
13
+ root : fileURLToPath ( new URL ( './' , import . meta. url ) ) ,
14
+ server : {
15
+ deps : {
16
+ inline : [ 'element-plus' , 'vuetify-color-field' , 'vuetify' ]
17
+ }
18
+ } ,
19
+ }
20
+ } )
21
+ ) ;
You can’t perform that action at this time.
0 commit comments