@dypnb/dev-tools 1.0.25 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  包含 4 个工具:
9
9
  * gen-page 生成 vue 模板
10
10
  * gen-swagger 根据 swagger 文档生成 vue 代码
11
- * publish-server 打包后将 dist 打包资源部署到服务器
11
+ * publish-server(`dyp-publish`)打包后将 dist 部署到服务器 — **完整说明见 [docs/publish-server.md](./docs/publish-server.md)**
12
12
  * wx-server-notice 企业微信信息通知
13
13
 
14
14
  ## 使用方法
@@ -67,13 +67,21 @@ export default {
67
67
  dev: 'dev-tools',
68
68
  pro: 'dev-tools',
69
69
  },
70
- serverOption: {
71
- host: ["x.x.x.x", "x.x.x.x"],
72
- port: "22", // 端口一般默认22
73
- username: "root", // 用户名
74
- password: "xxxxxxx", // 密码
75
- pathNmae: '/usr/local/dome/', // 上传到服务器的位置
76
- },
70
+ // 多服务器推荐 serverProfiles(交互选择或环境变量 DYP_PUBLISH_SERVER),详见 docs/publish-server.md
71
+ serverProfiles: [
72
+ {
73
+ key: "s1",
74
+ name: "服务器 A 说明",
75
+ serverOption: {
76
+ host: "x.x.x.x",
77
+ port: "22",
78
+ username: "root",
79
+ password: "xxxxxxx",
80
+ pathNmae: "/usr/local/dome/",
81
+ },
82
+ },
83
+ ],
84
+ // 或旧版单项:serverOption: { host: "x.x.x.x", port: "22", username, password, pathNmae },
77
85
  },
78
86
  // 微信消息通知配置
79
87
  wxServerConfig: {