# blogdev **Repository Path**: dXmo/blogdev ## Basic Information - **Project Name**: blogdev - **Description**: 我的博客开发端 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-03-21 - **Last Updated**: 2021-05-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 项目Vue前端 ## 介紹 自己做的erp管理系统项目前端。 ## 架構 VuePress + VuePress-theme-reco + gitee ## 安裝教程 ```bash npm install ``` ## 使用說明 ### 热启动 (只能实时更新 md 文档的内容部分,如果修改 md 文档头或修改 config.js 需要重启) ```bash npm run dev ``` ### 构建 构建目录为 posts/.vuepress/dist ```bash npm run build ``` ### gitee部署 你需要在 gitee 上首先创建有仓库,具体细节见(Xmo博客)[https://dxmo.gitee.io/blog/],此处仅说明部署脚本。 你可以使用该脚本进行Windows端的gitee部署(github类似): **你应当将下述脚本中的git地址改为你的git地址** ```bash npm run build cd posts\.vuepress\dist git init git add . git commit -m 'deploy' git push -f https://gitee.com/dXmo/blog.git master cd ..\..\ ``` 该脚本分为三步: 1. 执行构建行为,并进入构建文件夹 2. 初始化构建文件夹的git属性。 3. 将构建后文件**强制推送**到远端gitee仓库中。 (然后返回原始目录) 当然,我已经替你将脚本文件写好,放在了 deploy.bat 中,你可以直接运行它,或者你可以在根目录下运行 ```bash npm run d ``` 这一行为实际上就是在运行该脚本。