UNPKG

rattail

Version:

A Vite+ oriented, AI Agent friendly front-end toolchain

23 lines (22 loc) 659 B
import { defineConfig as defineConfig$1 } from "vite-plus"; import { fmt, lint, staged } from "@configurajs/vite-plus"; //#region src/vite-plus/index.ts function defineConfig(config) { return defineConfig$1(config); } function clean({ patterns } = {}) { return { patterns: [ "**/node_modules", "**/dist", "**/coverage", ...patterns ?? [] ] }; } function hook({ commitLint = true, lockfileCheck = true } = {}) { const config = {}; if (commitLint) config["commit-msg"] = ["rt commit-lint $1"]; if (lockfileCheck) config["post-merge"] = ["rt lockfile-check"]; return config; } //#endregion export { clean, defineConfig, fmt, hook, lint, staged };