-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathvite.config.ts
More file actions
44 lines (37 loc) · 879 Bytes
/
Copy pathvite.config.ts
File metadata and controls
44 lines (37 loc) · 879 Bytes
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
// @ts-expect-error vp fmt not allowed for example 'from ./src/vite-plus'
import { lint, fmt, staged, clean, defineConfig } from './src/vite-plus/index.ts'
export default defineConfig({
pack: {
entry: [
'src/index.ts',
'src/vite-plus/index.ts',
'src/axle/index.ts',
'src/axle/use.ts',
'src/axle/api.ts',
'src/ruler-factory/index.ts',
'src/cli/bin.ts',
'src/cli/index.ts',
],
dts: true,
shims: true,
},
test: {
environment: 'jsdom',
coverage: {
provider: 'istanbul',
include: ['src/**/*.ts'],
exclude: ['src/function/NOOP.ts', 'src/general/getGlobalThis.ts'],
},
},
staged: staged(),
lint: lint(),
fmt: fmt({
ignores: ['docs/**/*.md'],
}),
rattail: {
clean: clean(),
hook: {
'commit-msg': ['tsx src/cli/bin.ts commit-lint $1'],
},
},
})