@winner-fed/winner-deploy 2.0.12 → 2.0.13
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 +1 -0
- package/package.json +1 -1
- package/src/winner-deploy.js +4 -2
package/README.md
CHANGED
|
@@ -40,6 +40,7 @@ python2 对应 template/1.x
|
|
|
40
40
|
}
|
|
41
41
|
* @param copyFiles {Array<string>} 不包含在 manifest.json 配置的文件,直接拷贝到 see 包里。文件路径是相对于项目根目录的路径+文件名,比如 dist/子包/version.js,那么 copyFiles: ['version.js']
|
|
42
42
|
* @param description {string} 发布包说明
|
|
43
|
+
* @param seePackageName {string} see发布物的包名,也就是 zip 包的命名,默认为 `${system}-${name}-${version}`
|
|
43
44
|
* @param cb {function} 回调函数,用于处理在组装 see 包后,压缩成 zip 包前可以自定义执行的动作
|
|
44
45
|
*/
|
|
45
46
|
exports.generateSeePackageZip = function generateSeePackageZip({system, type, name, appType, version, configName, templateFunc, variablesFunc, copyFiles, description}, cb) {
|
package/package.json
CHANGED
package/src/winner-deploy.js
CHANGED
|
@@ -65,6 +65,7 @@ function genManifest (type, name) {
|
|
|
65
65
|
}
|
|
66
66
|
* @param copyFiles {Array<string>} 不包含在 manifest.json 配置的文件,直接拷贝到 see 包里。文件路径是相对于项目根目录的路径+文件名,比如 dist/子包/version.js,那么 copyFiles: ['version.js']
|
|
67
67
|
* @param description {string} 发布包说明
|
|
68
|
+
* @param seePackageName {string} see发布物的包名,也就是 zip 包的命名,默认为 `${system}-${name}-${version}`
|
|
68
69
|
* @param cb {function} 回调函数,用于处理在组装 see 包后,压缩成 zip 包前可以自定义执行的动作
|
|
69
70
|
*/
|
|
70
71
|
exports.generateSeePackageZip = function generateSeePackageZip ({
|
|
@@ -77,7 +78,8 @@ exports.generateSeePackageZip = function generateSeePackageZip ({
|
|
|
77
78
|
templateFunc,
|
|
78
79
|
variablesFunc,
|
|
79
80
|
copyFiles,
|
|
80
|
-
description
|
|
81
|
+
description,
|
|
82
|
+
seePackageName
|
|
81
83
|
}, cb) {
|
|
82
84
|
if (!name || !version) {
|
|
83
85
|
throw new Error('应用名称和应用版本不能缺失~')
|
|
@@ -110,7 +112,7 @@ exports.generateSeePackageZip = function generateSeePackageZip ({
|
|
|
110
112
|
}
|
|
111
113
|
|
|
112
114
|
genSeePackage(
|
|
113
|
-
`${system}-${name}-${version}`,
|
|
115
|
+
seePackageName || `${system}-${name}-${version}`,
|
|
114
116
|
{
|
|
115
117
|
system,
|
|
116
118
|
type,
|