Commit 0d309c38 authored by 胡小根's avatar 胡小根

增加部署模块文档的工作

parent ccc198a8
.DS_Store
node_modules/
dist/
dist-styleguide/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
......
......@@ -37,7 +37,6 @@
### 目录结构
```bash
# 克隆项目
git clone https://github.com/PanJiaChen/vue-element-admin.git
......@@ -62,6 +61,16 @@ npm run build:sit
npm run build:prod
```
### 生成文档
```bash
# 实时预览文档
npm run styleguide
# 生成html
npm run styleguide:build
```
### 其它
```bash
# --report to build with bundle size analytics
......
......@@ -2,3 +2,6 @@
npm run build:prod
rsync -avz dist/* member@haomo-studio.com:/var/www/html/software_factory/vue-element/
npm run styleguide:build
rsync -avz dist-styleguide/* member@haomo-studio.com:/var/www/html/software_factory/vue-element/docs/
\ No newline at end of file
......@@ -13,6 +13,7 @@ function resolve(dir) {
}
module.exports = {
styleguideDir: './dist-styleguide',
components: 'src/views/haomo/components/**/[A-Z]*.vue',
ignore: [
'**/index.vue'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment