cloudcc-cli 0.3.9 → 0.4.0

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
@@ -2,6 +2,12 @@
2
2
  * git push origin --tags
3
3
  * 发布包:npm publish --registry http://registry.npmjs.org
4
4
 
5
+ # ReleaseV0.4.0
6
+ #### 发布日期:2021-9-29
7
+ #### 发布范围:全量
8
+ #### 发布内容
9
+ * 功能迭代:移除Version.json,直接将版本信息写入Version.vue
10
+
5
11
  # ReleaseV0.3.9
6
12
  #### 发布日期:2021-9-29
7
13
  #### 发布范围:全量
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudcc-cli",
3
- "version": "0.3.9",
3
+ "version": "0.4.0",
4
4
  "description": "cloudcc-cli",
5
5
  "keywords": [
6
6
  "cloudcc",
package/src/publish.js CHANGED
@@ -131,11 +131,15 @@ class Publish {
131
131
  var gitVersion = fs.readFileSync('.git/' + ref, 'utf-8').trim()
132
132
  var gitCommitVersion = '"' + develop + ': ' + gitVersion + '"'
133
133
 
134
- let packageJson = JSON.parse(fs.readFileSync("version.json", 'utf8'));
135
- packageJson.branch = branch;
136
- packageJson.version = version;
137
- packageJson.commit = gitCommitVersion;
138
- fs.writeFileSync("version.json", JSON.stringify(packageJson, null, 2));
134
+ let versionInfo =
135
+ `<template>
136
+ <div style="font-size: 20px">
137
+ <div>分支:${branch}</div>
138
+ <div>版本号:${version}</div>
139
+ <div>Commit:${gitCommitVersion}</div>
140
+ </div>
141
+ </template>`
142
+ fs.writeFileSync("src/views/version.vue", versionInfo);
139
143
  };
140
144
  /**
141
145
  * 发布代码