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 +6 -0
- package/package.json +1 -1
- package/src/publish.js +9 -5
package/README.md
CHANGED
package/package.json
CHANGED
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
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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
|
* 发布代码
|