Skip to content

Commit f2a6373

Browse files
committed
fix: 1.修改打包方式因为本人太菜无法解决glub打,d,ts文件和快速打包问题
1 parent 64fb7a0 commit f2a6373

File tree

23 files changed

+356
-133
lines changed

23 files changed

+356
-133
lines changed

docs/en/components/icon.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ Using an SVG icon library can reduce project size and improve loading speed.
7878

7979
<script setup lang="ts">
8080
import iconDom from './vueDome/icon/index.vue'
81-
import { svgList } from '@dk-plus/components/_icon'
82-
const { IconWeiXin } = svgList
81+
import svgList from 'isIcon'
8382
const svgListLength=Object.keys(svgList).length
84-
const expose = { IconWeiXin }
8583
</script>

docs/en/components/vueDome/icon/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts">
22
import { defineComponent } from 'vue'
3-
import svgList from '@dk-plus/components/_icon'
3+
import svgList from '../../../../../packages/components/_icon/index'
44
export default defineComponent({
55
name: 'VueDomeIcon',
66
setup() {

docs/en/document/contributing.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@ If you have completed the previous preparations, you can skip ahead and start fr
3333
├── .github # github配置文件
3434
├── .husky # 代码提交前检测
3535
├── .vscode # vscode配置文件
36-
├── build #打npm包工程文件
37-
├── ├── utils # 打包工具配置
38-
├── ├── component.ts #文件输出配置
39-
├── ├── full-component.ts #打包文件输出过滤设置
40-
├── ├── gen-types.ts #gulpfile设置
41-
├── ├── gulpfile.ts #打包启动文件
42-
├── └─ packages.ts #专门打包util , 指令 , hook的
4336
├── coverage #测试覆盖率
4437
├── deploy # 远程命令SSH上传到服务器配置
4538
├── ├── config.js # 远程命令SSH上传到服务器配置
@@ -132,13 +125,10 @@ If you have completed the previous preparations, you can skip ahead and start fr
132125
├── ├── utils # 存放工具方法
133126
├── ├── theme-chalk # 存放对应的样式,样式打包工具箱
134127
├── ├── ├── src # 存放对应的样式
135-
├── ├── ├── ├── mixins # 全局class命名生成方法
136-
├── ├── ├── ├── ├── configuration # 私有组件样式配置
137-
├── └─ └─ gulpfile.ts # 打包工具
128+
├── ├── ├── mixins # 全局class命名生成方法
129+
├── ├── ├── ├── configuration # 私有组件样式配置
138130
├── ├── dk-setup-name # 根据命令生成组件文件夹 暂未实现
139131
├── ├── dk-eslint # 项目内的eslint配置
140-
├── ├── dk-plus # 出口文件
141-
├── └─ utils # 项目打包辅助器
142132
├── play # 组件调试测试项目
143133
├── ├── node_modules # play的依赖 测试目录
144134
├── ├── router # 路由配置
@@ -170,6 +160,9 @@ If you have completed the previous preparations, you can skip ahead and start fr
170160
├── package.json # 项目配置文件
171161
├── pnpm-lock.yaml # pnpm配置文件
172162
├── pnpm-workspace.yaml #pnpm配置文件
163+
├── vite.config.css.ts # 打包css文件配置
164+
├── vite.config.theme.ts # 打包css文件配置
165+
├── vite.config.ts # vite配置文件打包配置
173166
└─ tsconfig.json # TS配置文件
174167

175168
```

docs/en/document/import.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { createApp } from 'vue'
99
import App from './App.vue'
1010

1111
import dkPlus from 'dk-plus'
12-
import 'dk-plus/theme-chalk/index.css'
12+
import 'dk-plus/dist/index.css'
1313

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

@@ -55,7 +55,7 @@ You can also use the `UMD` mode to include `dk-plus` in your `*.html` file and q
5555
<dk-button type="warning">Warning Button</dk-button>
5656
</div>
5757
<script src="https://unpkg.com/vue@next/dist/vue.global.js"></script>
58-
<script src="https://cdn.jsdelivr.net/npm/dk-plus"></script>
58+
<script src="https://cdn.jsdelivr.net/npm/dk-plus/dist/index.umd.js"></script>
5959
<script type="module">
6060
const { createApp, ref } = Vue
6161
const app = createApp({

docs/en/document/mileage.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# milestone
22

3+
## 2023-07-10
4+
5+
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
6+
37
## 2023-06-21
48

59
dk-plus Official website home page revision

docs/en/document/update.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Update log
22

3+
## 1.0.22-alpha.1 (2023-07-10)
4+
5+
- Change the packaging method. Change the reference method. See the Getting Started documentation
6+
37
## 1.0.21-alpha.1 (2023-07-07)
48

59
- BUG fix for `index.css` Style failure problem

docs/vite.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
import type { UserConfigExport } from 'vite'
2+
import { resolve } from 'path'
23
export default (): UserConfigExport => {
34
return {
45
server: {
56
port: 6099
67
},
8+
resolve: {
9+
alias: {
10+
isIcon: resolve(__dirname, '../packages/components/_icon/index.ts')
11+
}
12+
},
713
optimizeDeps: {
814
exclude: ['vitepress'],
915
include: ['vue', '@vueuse/core']

docs/zh/components/icon.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@
7878

7979
<script setup lang="ts">
8080
import iconDom from './vueDome/icon/index.vue'
81-
import { svgList } from '@dk-plus/components/_icon'
82-
const { IconWeiXin } = svgList
81+
import svgList from 'isIcon'
8382
const svgListLength=Object.keys(svgList).length
84-
const expose = { IconWeiXin }
8583
</script>

docs/zh/components/vueDome/icon/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts">
22
import { defineComponent } from 'vue'
3-
import svgList from '@dk-plus/components/_icon'
3+
import svgList from '../../../../../packages/components/_icon/index'
44
export default defineComponent({
55
name: 'VueDomeIcon',
66
setup() {

docs/zh/document/contributing.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,6 @@
3131
├── .github # github配置文件
3232
├── .husky # 代码提交前检测
3333
├── .vscode # vscode配置文件
34-
├── build #打npm包工程文件
35-
├── ├── utils # 打包工具配置
36-
├── ├── component.ts #文件输出配置
37-
├── ├── full-component.ts #打包文件输出过滤设置
38-
├── ├── gen-types.ts #gulpfile设置
39-
├── ├── gulpfile.ts #打包启动文件
40-
├── └─ packages.ts #专门打包util , 指令 , hook的
4134
├── coverage #测试覆盖率
4235
├── deploy # 远程命令SSH上传到服务器配置
4336
├── ├── config.js # 远程命令SSH上传到服务器配置
@@ -130,13 +123,10 @@
130123
├── ├── utils # 存放工具方法
131124
├── ├── theme-chalk # 存放对应的样式,样式打包工具箱
132125
├── ├── ├── src # 存放对应的样式
133-
├── ├── ├── ├── mixins # 全局class命名生成方法
134-
├── ├── ├── ├── ├── configuration # 私有组件样式配置
135-
├── └─ └─ gulpfile.ts # 打包工具
126+
├── ├── ├── mixins # 全局class命名生成方法
127+
├── ├── ├── ├── configuration # 私有组件样式配置
136128
├── ├── dk-setup-name # 根据命令生成组件文件夹 暂未实现
137129
├── ├── dk-eslint # 项目内的eslint配置
138-
├── ├── dk-plus # 出口文件
139-
├── └─ utils # 项目打包辅助器
140130
├── play # 组件调试测试项目
141131
├── ├── node_modules # play的依赖 测试目录
142132
├── ├── router # 路由配置
@@ -168,6 +158,9 @@
168158
├── package.json # 项目配置文件
169159
├── pnpm-lock.yaml # pnpm配置文件
170160
├── pnpm-workspace.yaml #pnpm配置文件
161+
├── vite.config.css.ts # 打包css文件配置
162+
├── vite.config.theme.ts # 打包css文件配置
163+
├── vite.config.ts # vite配置文件打包配置
171164
└─ tsconfig.json # TS配置文件
172165

173166
```

0 commit comments

Comments
 (0)