chore: update

pull/4/MERGE
xingyu 2023-04-02 21:47:03 +08:00
parent 0d6925fe66
commit 784f27ad56
8 changed files with 12 additions and 14 deletions

View File

@ -13,11 +13,8 @@
## 开发文档 ## 开发文档
[开发文档](./dev.md) [开发文档](./dev.md)
### 说明 ## 交流群
- 本项目为ruoyi-vue-pro vue3 antdv 版本ui <img alt="index.vue" width="400px" src="./docimg/wx.jpg"></img>
- 基于vben2.9.0版本并升级到最新的依赖后续将升级antdv4
- 目前开发中
</div>
## 开发进度 ## 开发进度
- 系统管理 页面适配 99% - 系统管理 页面适配 99%
@ -94,9 +91,6 @@ pnpm front
pnpm build pnpm build
``` ```
## 交流群
<img alt="index.vue" width="400px" src="./docimg/code.jpg"></img>
## Git 贡献提交规范 ## Git 贡献提交规范
- 参考 [vue](https://github.com/vuejs/vue/blob/dev/.github/COMMIT_CONVENTION.md) 规范 ([Angular](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular)) - 参考 [vue](https://github.com/vuejs/vue/blob/dev/.github/COMMIT_CONVENTION.md) 规范 ([Angular](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular))

View File

@ -14,7 +14,7 @@ import { configVisualizerConfig } from './visualizer'
import { configThemePlugin } from './theme' import { configThemePlugin } from './theme'
import { configSvgIconsPlugin } from './svgSprite' import { configSvgIconsPlugin } from './svgSprite'
export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) { export async function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
const { VITE_BUILD_COMPRESS, VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE } = viteEnv const { VITE_BUILD_COMPRESS, VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE } = viteEnv
const vitePlugins: (PluginOption | PluginOption[])[] = [ const vitePlugins: (PluginOption | PluginOption[])[] = [

View File

@ -5,6 +5,7 @@
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons' import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
import path from 'path' import path from 'path'
import { PluginOption } from 'vite'
export function configSvgIconsPlugin(isBuild: boolean) { export function configSvgIconsPlugin(isBuild: boolean) {
const svgIconsPlugin = createSvgIconsPlugin({ const svgIconsPlugin = createSvgIconsPlugin({
@ -13,5 +14,5 @@ export function configSvgIconsPlugin(isBuild: boolean) {
// default // default
symbolId: 'icon-[dir]-[name]' symbolId: 'icon-[dir]-[name]'
}) })
return svgIconsPlugin return svgIconsPlugin as PluginOption
} }

View File

@ -3,6 +3,7 @@
*/ */
import visualizer from 'rollup-plugin-visualizer' import visualizer from 'rollup-plugin-visualizer'
import { isReportMode } from '../../utils' import { isReportMode } from '../../utils'
import { PluginOption } from 'vite'
export function configVisualizerConfig() { export function configVisualizerConfig() {
if (isReportMode()) { if (isReportMode()) {
@ -11,7 +12,7 @@ export function configVisualizerConfig() {
open: true, open: true,
gzipSize: true, gzipSize: true,
brotliSize: true brotliSize: true
}) as Plugin }) as PluginOption
} }
return [] return []
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 KiB

BIN
docimg/wx.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

View File

@ -140,8 +140,10 @@
"url": "https://github.com/xingyuv/issues" "url": "https://github.com/xingyuv/issues"
}, },
"homepage": "https://github.com/xingyuv", "homepage": "https://github.com/xingyuv",
"packageManager": "pnpm@8.1.0",
"engines": { "engines": {
"node": ">= 16.0.0" "node": ">= 16.0.0",
"pnpm": ">=7.30.0"
}, },
"lint-staged": { "lint-staged": {
"*.{js,jsx,ts,tsx}": [ "*.{js,jsx,ts,tsx}": [

View File

@ -20,7 +20,7 @@ const __APP_INFO__ = {
lastBuildTime: dayjs().format('YYYY-MM-DD HH:mm:ss') lastBuildTime: dayjs().format('YYYY-MM-DD HH:mm:ss')
} }
export default ({ command, mode }: ConfigEnv): UserConfig => { export default async ({ command, mode }: ConfigEnv): Promise<UserConfig> => {
const root = process.cwd() const root = process.cwd()
const env = loadEnv(mode, root) const env = loadEnv(mode, root)
@ -92,7 +92,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
}, },
// The vite plugin used by the project. The quantity is large, so it is separately extracted and managed // The vite plugin used by the project. The quantity is large, so it is separately extracted and managed
plugins: createVitePlugins(viteEnv, isBuild), plugins: await createVitePlugins(viteEnv, isBuild),
optimizeDeps: { include, exclude } optimizeDeps: { include, exclude }
} }