【新增】插件git同步模块,用于同步项目内容,加速项目开发

【调整】前端暗色问题
This commit is contained in:
chudong
2025-05-14 16:50:56 +08:00
parent dc43da936b
commit e6947ec5c4
215 changed files with 19918 additions and 9710 deletions

View File

@@ -0,0 +1,60 @@
import { defineConfig } from "vitest/config";
import { resolve } from "path";
export default defineConfig({
test: {
globals: true,
environment: "node",
include: ["tests/**/*.test.ts"],
coverage: {
reporter: ["text", "json", "html"],
include: ["src/**/*.ts"],
exclude: ["src/**/*.d.ts"],
},
},
resolve: {
alias: {
"@": resolve(__dirname, "./src"),
},
},
build: {
lib: {
entry: resolve(__dirname, "src/index.ts"),
name: "vite-plugin-turborepo-deploy",
fileName: (format) => `index.${format}.js`,
},
rollupOptions: {
external: [
"fs",
"path",
"os",
"child_process",
"util",
"fs-extra",
"picomatch",
"simple-git",
"chalk",
"zod",
"vite",
],
output: {
globals: {
vite: "vite",
fs: "fs",
path: "path",
os: "os",
child_process: "childProcess",
util: "util",
"fs-extra": "fse",
picomatch: "picomatch",
"simple-git": "simpleGit",
chalk: "chalk",
zod: "zod",
},
},
},
outDir: "dist",
emptyOutDir: true,
sourcemap: true,
},
});