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:
+3
-13
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user