Files
csbi/vite.config.ts
T
2026-06-18 22:59:53 +09:00

46 lines
1.1 KiB
TypeScript

import { defineConfig } from 'vite-plus'
export default defineConfig({
fmt: {
singleQuote: true,
semi: false,
},
run: {
cache: true,
tasks: {
'app:dev': {
command: 'vp run @repo/csbie#dev',
cache: false,
dependsOn: ['env:doctor'],
},
'app:build': {
command: 'vp run @repo/csbie#build',
dependsOn: ['typecheck:all'],
},
'app:start': {
command: 'vp run @repo/csbie#start',
cache: false,
},
'server:db:push': {
command: 'vp run @repo/csbie-server#db:push',
cache: false,
dependsOn: ['env:doctor'],
},
'env:doctor': {
command: 'bun --env-file=.env scripts/check-env.ts',
cache: false,
},
'typecheck:all': {
command: 'vp run --filter "./apps/*" --filter "./packages/*" typecheck',
},
clean: {
command: 'vp run --filter "./apps/*" --filter "./packages/*" clean',
cache: false,
},
verify: {
command: ['vp check', 'vp run typecheck:all', 'vp run app:build'],
},
},
},
})