-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Expand file tree
/
Copy pathvite.config.ts
More file actions
58 lines (56 loc) · 1.07 KB
/
vite.config.ts
File metadata and controls
58 lines (56 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import { defineConfig } from 'vite-plus';
const generatedIgnores = [
'website/.docusaurus/**',
'website/build/**',
'.langnostic/**',
'dist/**',
'coverage/**',
];
export default defineConfig({
staged: {
'*': 'vp check --fix',
},
lint: {
ignorePatterns: generatedIgnores,
options: {
typeAware: false,
typeCheck: false,
},
},
fmt: {
bracketSameLine: true,
printWidth: 80,
proseWrap: 'never',
singleQuote: true,
trailingComma: 'all',
sortPackageJson: false,
ignorePatterns: generatedIgnores,
},
test: {
passWithNoTests: true,
},
run: {
tasks: {
dev: {
command: 'vp run website#dev',
cache: false,
},
start: {
command: 'vp run website#start',
cache: false,
},
build: {
command: 'vp run website#build',
},
deploy: {
command: 'vp run website#deploy',
dependsOn: ['build'],
cache: false,
},
i18n: {
command: 'vp exec langnostic translate',
cache: false,
},
},
},
});