Skip to content

Commit

Permalink
fix: 1.修改打包方式因为本人太菜无法解决glub打,d,ts文件和快速打包问题
Browse files Browse the repository at this point in the history
  • Loading branch information
isMrFan committed Jul 10, 2023
1 parent 64fb7a0 commit f2a6373
Show file tree
Hide file tree
Showing 23 changed files with 356 additions and 133 deletions.
4 changes: 1 addition & 3 deletions docs/en/components/icon.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ Using an SVG icon library can reduce project size and improve loading speed.

<script setup lang="ts">
import iconDom from './vueDome/icon/index.vue'
import { svgList } from '@dk-plus/components/_icon'
const { IconWeiXin } = svgList
import svgList from 'isIcon'
const svgListLength=Object.keys(svgList).length
const expose = { IconWeiXin }
</script>
2 changes: 1 addition & 1 deletion docs/en/components/vueDome/icon/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { defineComponent } from 'vue'
import svgList from '@dk-plus/components/_icon'
import svgList from '../../../../../packages/components/_icon/index'
export default defineComponent({
name: 'VueDomeIcon',
setup() {
Expand Down
17 changes: 5 additions & 12 deletions docs/en/document/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,6 @@ If you have completed the previous preparations, you can skip ahead and start fr
├── .github # github配置文件
├── .husky # 代码提交前检测
├── .vscode # vscode配置文件
├── build #打npm包工程文件
├── ├── utils # 打包工具配置
├── ├── component.ts #文件输出配置
├── ├── full-component.ts #打包文件输出过滤设置
├── ├── gen-types.ts #gulpfile设置
├── ├── gulpfile.ts #打包启动文件
├── └─ packages.ts #专门打包util , 指令 , hook的
├── coverage #测试覆盖率
├── deploy # 远程命令SSH上传到服务器配置
├── ├── config.js # 远程命令SSH上传到服务器配置
Expand Down Expand Up @@ -132,13 +125,10 @@ If you have completed the previous preparations, you can skip ahead and start fr
├── ├── utils # 存放工具方法
├── ├── theme-chalk # 存放对应的样式,样式打包工具箱
├── ├── ├── src # 存放对应的样式
├── ├── ├── ├── mixins # 全局class命名生成方法
├── ├── ├── ├── ├── configuration # 私有组件样式配置
├── └─ └─ gulpfile.ts # 打包工具
├── ├── ├── mixins # 全局class命名生成方法
├── ├── ├── ├── configuration # 私有组件样式配置
├── ├── dk-setup-name # 根据命令生成组件文件夹 暂未实现
├── ├── dk-eslint # 项目内的eslint配置
├── ├── dk-plus # 出口文件
├── └─ utils # 项目打包辅助器
├── play # 组件调试测试项目
├── ├── node_modules # play的依赖 测试目录
├── ├── router # 路由配置
Expand Down Expand Up @@ -170,6 +160,9 @@ If you have completed the previous preparations, you can skip ahead and start fr
├── package.json # 项目配置文件
├── pnpm-lock.yaml # pnpm配置文件
├── pnpm-workspace.yaml #pnpm配置文件
├── vite.config.css.ts # 打包css文件配置
├── vite.config.theme.ts # 打包css文件配置
├── vite.config.ts # vite配置文件打包配置
└─ tsconfig.json # TS配置文件

```
Expand Down
6 changes: 3 additions & 3 deletions docs/en/document/import.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { createApp } from 'vue'
import App from './App.vue'

import dkPlus from 'dk-plus'
import 'dk-plus/theme-chalk/index.css'
import 'dk-plus/dist/index.css'

createApp(App).use(dkPlus).mount('#app')
```
Expand Down Expand Up @@ -42,7 +42,7 @@ You can also use the `UMD` mode to include `dk-plus` in your `*.html` file and q
<head>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/dk-plus/theme-chalk/index.css"
href="https://cdn.jsdelivr.net/npm/dk-plus/dist/index.css"
/>
</head>

Expand All @@ -55,7 +55,7 @@ You can also use the `UMD` mode to include `dk-plus` in your `*.html` file and q
<dk-button type="warning">Warning Button</dk-button>
</div>
<script src="https://unpkg.com/vue@next/dist/vue.global.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dk-plus"></script>
<script src="https://cdn.jsdelivr.net/npm/dk-plus/dist/index.umd.js"></script>
<script type="module">
const { createApp, ref } = Vue
const app = createApp({
Expand Down
4 changes: 4 additions & 0 deletions docs/en/document/mileage.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# milestone

## 2023-07-10

Because the next technical gulp packaging declaration file is always set doll leafing through a lot of documents failed to solve so changed to vite packaging

## 2023-06-21

dk-plus Official website home page revision
Expand Down
4 changes: 4 additions & 0 deletions docs/en/document/update.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Update log

## 1.0.22-alpha.1 (2023-07-10)

- Change the packaging method. Change the reference method. See the Getting Started documentation

## 1.0.21-alpha.1 (2023-07-07)

- BUG fix for `index.css` Style failure problem
Expand Down
6 changes: 6 additions & 0 deletions docs/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import type { UserConfigExport } from 'vite'
import { resolve } from 'path'
export default (): UserConfigExport => {
return {
server: {
port: 6099
},
resolve: {
alias: {
isIcon: resolve(__dirname, '../packages/components/_icon/index.ts')
}
},
optimizeDeps: {
exclude: ['vitepress'],
include: ['vue', '@vueuse/core']
Expand Down
4 changes: 1 addition & 3 deletions docs/zh/components/icon.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@

<script setup lang="ts">
import iconDom from './vueDome/icon/index.vue'
import { svgList } from '@dk-plus/components/_icon'
const { IconWeiXin } = svgList
import svgList from 'isIcon'
const svgListLength=Object.keys(svgList).length
const expose = { IconWeiXin }
</script>
2 changes: 1 addition & 1 deletion docs/zh/components/vueDome/icon/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { defineComponent } from 'vue'
import svgList from '@dk-plus/components/_icon'
import svgList from '../../../../../packages/components/_icon/index'
export default defineComponent({
name: 'VueDomeIcon',
setup() {
Expand Down
17 changes: 5 additions & 12 deletions docs/zh/document/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,6 @@
├── .github # github配置文件
├── .husky # 代码提交前检测
├── .vscode # vscode配置文件
├── build #打npm包工程文件
├── ├── utils # 打包工具配置
├── ├── component.ts #文件输出配置
├── ├── full-component.ts #打包文件输出过滤设置
├── ├── gen-types.ts #gulpfile设置
├── ├── gulpfile.ts #打包启动文件
├── └─ packages.ts #专门打包util , 指令 , hook的
├── coverage #测试覆盖率
├── deploy # 远程命令SSH上传到服务器配置
├── ├── config.js # 远程命令SSH上传到服务器配置
Expand Down Expand Up @@ -130,13 +123,10 @@
├── ├── utils # 存放工具方法
├── ├── theme-chalk # 存放对应的样式,样式打包工具箱
├── ├── ├── src # 存放对应的样式
├── ├── ├── ├── mixins # 全局class命名生成方法
├── ├── ├── ├── ├── configuration # 私有组件样式配置
├── └─ └─ gulpfile.ts # 打包工具
├── ├── ├── mixins # 全局class命名生成方法
├── ├── ├── ├── configuration # 私有组件样式配置
├── ├── dk-setup-name # 根据命令生成组件文件夹 暂未实现
├── ├── dk-eslint # 项目内的eslint配置
├── ├── dk-plus # 出口文件
├── └─ utils # 项目打包辅助器
├── play # 组件调试测试项目
├── ├── node_modules # play的依赖 测试目录
├── ├── router # 路由配置
Expand Down Expand Up @@ -168,6 +158,9 @@
├── package.json # 项目配置文件
├── pnpm-lock.yaml # pnpm配置文件
├── pnpm-workspace.yaml #pnpm配置文件
├── vite.config.css.ts # 打包css文件配置
├── vite.config.theme.ts # 打包css文件配置
├── vite.config.ts # vite配置文件打包配置
└─ tsconfig.json # TS配置文件

```
Expand Down
6 changes: 3 additions & 3 deletions docs/zh/document/import.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { createApp } from 'vue'
import App from './App.vue'

import dkPlus from 'dk-plus'
import 'dk-plus/theme-chalk/index.css'
import 'dk-plus/dist/index.css'

createApp(App).use(dkPlus).mount('#app')
```
Expand Down Expand Up @@ -42,7 +42,7 @@ createApp(App).use(DkIcon).use(DkShadow).use(DkButton).mount('#app')
<head>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/dk-plus/theme-chalk/index.css"
href="https://cdn.jsdelivr.net/npm/dk-plus/dist/index.css"
/>
</head>

Expand All @@ -55,7 +55,7 @@ createApp(App).use(DkIcon).use(DkShadow).use(DkButton).mount('#app')
<dk-button type="warning">警告按钮</dk-button>
</div>
<script src="https://unpkg.com/vue@next/dist/vue.global.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dk-plus"></script>
<script src="https://cdn.jsdelivr.net/npm/dk-plus/dist/index.umd.js"></script>
<script type="module">
const { createApp, ref } = Vue
const app = createApp({
Expand Down
4 changes: 4 additions & 0 deletions docs/zh/document/mileage.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 里程碑

## 2023-07-10

因为在下技术不才gulp 打包声明文件总是套娃翻阅很多文档未能解决因此改为vite 打包方式

## 2023-06-21

dk-plus 官网首页改版
Expand Down
3 changes: 3 additions & 0 deletions docs/zh/document/update.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# 更新日志

## 1.0.22-alpha.1 (2023-07-10)

- 更换打包方式引用方式调整请看快速上手文档

## 1.0.21-alpha.1 (2023-07-07)

Expand Down
Loading

0 comments on commit f2a6373

Please sign in to comment.