Bump tooling, add check script, remove templates

Upgrade developer toolchain and clean up project files: add a new "check" script (replacing previous lint/fmt), bump TypeScript and add @halo-dev/vite-plugin-halo-theme, update pnpm packageManager version, remove legacy templates HTML files and add "templates" to .gitignore, and apply related changes to vite.config.ts. The lockfile was updated to reflect dependency changes.
This commit is contained in:
Ryan Wang
2026-04-02 23:06:27 +08:00
parent eaaf71a8bf
commit 2ae2ec231a
7 changed files with 574 additions and 311 deletions
+3 -13
View File
@@ -1,19 +1,8 @@
import path from "path";
import { fileURLToPath } from "url";
import { haloThemePlugin } from "@halo-dev/vite-plugin-halo-theme";
import { defineConfig } from "vite-plus";
export default defineConfig({
build: {
outDir: fileURLToPath(new URL("./templates/assets/dist", import.meta.url)),
emptyOutDir: true,
lib: {
entry: path.resolve(process.cwd(), "src/main.ts"),
name: "main",
fileName: "main",
formats: ["iife"],
},
},
plugins: [haloThemePlugin()],
lint: { options: { typeAware: true, typeCheck: true } },
fmt: {
printWidth: 100,
@@ -23,6 +12,7 @@ export default defineConfig({
sortPackageJson: true,
insertFinalNewline: true,
sortImports: {},
sortTailwindcss: {},
ignorePatterns: [],
},
staged: {