Commit Graph

2 Commits (75247dfa43f7a7780fecf47bbbe654e3b25dbf3c)

Author SHA1 Message Date
John Niang f5dcc622f8
Bump versions to 2.12.0-SNAPSHOT for next development (#4968)
#### What type of PR is this?

/kind cleanup
/area core

#### What this PR does / why we need it:

Bump versions to 2.12.0-SNAPSHOT for next development.

#### Does this PR introduce a user-facing change?

```release-note
None
```
2023-12-01 08:34:09 +00:00
Ryan Wang 927398b6bd
feat: add ui-plugin-bundler-kit package (#4916)
#### What type of PR is this?

/area console
/kind feature

#### What this PR does / why we need it:

添加 `@halo-dev/ui-plugin-bundler-kit` 包,用于向插件提供统一的 Vite 构建配置。

最终用法:

```bash
pnpm install @halo-dev/ui-plugin-bundler-kit -D
```

vite.config.ts

```ts
import { HaloUIPluginBundlerKit } from "@halo-dev/ui-plugin-bundler-kit";

export default defineConfig({
  plugins: [
    Vue(),
    Icons({ compiler: "vue3" }),
    HaloUIPluginBundlerKit(),
  ],
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", import.meta.url)),
    },
  },
});
```

#### Which issue(s) this PR fixes:

Fixes #4912 

#### Special notes for your reviewer:

测试方式:

1. 在任意支持 UI 扩展的插件中添加此包:`pnpm install path/to/halo/console/packages/ui-plugin-bundler-kit`
2. 构建插件,检查 UI 相关的构建产物以及功能是否正常。

#### Does this PR introduce a user-facing change?

```release-note
添加 `@halo-dev/ui-plugin-bundler-kit` 包,用于向插件提供统一的构建配置。
```
2023-11-27 14:06:09 +00:00