cloudcc-cli 1.1.2 → 1.1.3
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 +7 -0
- package/package.json +1 -1
- package/src/publishProject.js +6 -0
package/README.md
CHANGED
package/package.json
CHANGED
package/src/publishProject.js
CHANGED
|
@@ -69,6 +69,12 @@ class Publish {
|
|
|
69
69
|
console.log(chalk.green('待发布版本:' + version));
|
|
70
70
|
console.log();
|
|
71
71
|
|
|
72
|
+
// 3.1:将版本信息写入env文件中,公其他业务使用
|
|
73
|
+
try {
|
|
74
|
+
fs.writeFileSync(".env.production", "VUE_APP_PROJECT_VERSION = " + version, 'utf-8')
|
|
75
|
+
} catch (error) {
|
|
76
|
+
}
|
|
77
|
+
|
|
72
78
|
// 4:如果存在多语言配置,则更新多语言
|
|
73
79
|
if (projectConfig.config && projectConfig.config["language-config"]) {
|
|
74
80
|
// 询问是否更新多语言
|