cloudcc-cli 1.1.8 → 1.2.1
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 +21 -0
- package/bin/buildtag.js +7 -0
- package/bin/publishh5.js +7 -0
- package/package.json +4 -2
- package/src/buildTag.js +75 -0
- package/src/creatorTemProject.js +2 -1
- package/src/publishProject.js +4 -3
- package/src/publishProjectH5.js +179 -0
- package/template/httpjs +4 -4
- package/template/index.js +4 -0
- package/template/package-lockjson +12168 -0
- package/template/packagejson +1 -0
- package/utils/askTool.js +14 -0
- package/utils/pushCode.js +7 -0
package/template/packagejson
CHANGED
package/utils/askTool.js
CHANGED
|
@@ -18,6 +18,20 @@ let choices = [
|
|
|
18
18
|
]
|
|
19
19
|
|
|
20
20
|
module.exports = {
|
|
21
|
+
/**
|
|
22
|
+
* 询问要创建的tag名称
|
|
23
|
+
* @returns 结果
|
|
24
|
+
*/
|
|
25
|
+
askTag: (message) => {
|
|
26
|
+
const prompt = [{
|
|
27
|
+
type: 'list',
|
|
28
|
+
message,
|
|
29
|
+
name: 'type',
|
|
30
|
+
choices: choices,
|
|
31
|
+
}
|
|
32
|
+
];
|
|
33
|
+
return inquirer.prompt(prompt)
|
|
34
|
+
},
|
|
21
35
|
/**
|
|
22
36
|
* 请求版本信息
|
|
23
37
|
* @returns 结果
|