Replace ESLint/Prettier/Husky workflow with vp (vite-plus) tooling: remove .eslintrc.cjs and prettier.config.js, drop husky pre-commit and add .vite-hooks/pre-commit (vp staged). Update package.json scripts to use vp commands, bump @halo-dev/theme-package-cli, replace vite with @voidzero-dev/vite-plus-core alias and add vite-plus, and add pnpm settings/overrides and packageManager update. Add VS Code recommendations and formatter settings, expose .vscode/settings.json in .gitignore, and adjust CI to use Node 24. Update README link and small formatting fixes. Regenerate pnpm lockfile to reflect dependency changes and other config updates; templates and vite config were also modified.
24 lines
380 B
Markdown
24 lines
380 B
Markdown
# Theme Vite Starter
|
|
|
|
一个集成了 Vite 的主题快速开始模板。
|
|
|
|
主题开发文档可查阅:<https://docs.halo.run/developer-guide/theme/prepare>
|
|
|
|
## 开发
|
|
|
|
```bash
|
|
git clone git@github.com:halo-dev/theme-vite-starter.git ~/halo2-dev/themes/theme-vite-starter
|
|
```
|
|
|
|
```bash
|
|
cd ~/halo2-dev/themes/theme-vite-starter
|
|
```
|
|
|
|
```bash
|
|
pnpm install
|
|
```
|
|
|
|
```bash
|
|
pnpm dev
|
|
```
|