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

增加部署模块文档的工作

parent ccc198a8
.DS_Store .DS_Store
node_modules/ node_modules/
dist/ dist/
dist-styleguide/
npm-debug.log* npm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
### 目录结构 ### 目录结构
```bash ```bash
# 克隆项目 # 克隆项目
git clone https://github.com/PanJiaChen/vue-element-admin.git git clone https://github.com/PanJiaChen/vue-element-admin.git
...@@ -62,6 +61,16 @@ npm run build:sit ...@@ -62,6 +61,16 @@ npm run build:sit
npm run build:prod npm run build:prod
``` ```
### 生成文档
```bash
# 实时预览文档
npm run styleguide
# 生成html
npm run styleguide:build
```
### 其它 ### 其它
```bash ```bash
# --report to build with bundle size analytics # --report to build with bundle size analytics
......
...@@ -2,3 +2,6 @@ ...@@ -2,3 +2,6 @@
npm run build:prod npm run build:prod
rsync -avz dist/* member@haomo-studio.com:/var/www/html/software_factory/vue-element/ 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) { ...@@ -13,6 +13,7 @@ function resolve(dir) {
} }
module.exports = { module.exports = {
styleguideDir: './dist-styleguide',
components: 'src/views/haomo/components/**/[A-Z]*.vue', components: 'src/views/haomo/components/**/[A-Z]*.vue',
ignore: [ ignore: [
'**/index.vue' '**/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