cloudcc-cli 1.5.9 → 1.6.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 +8 -0
- package/bin/cc.js +1 -1
- package/package.json +2 -2
- package/template/Appvue +12 -9
- package/template/index.js +1 -22
- package/template/packagejson +1 -3
- package/cloudcc-cli/accessToken +0 -1
package/README.md
CHANGED
package/bin/cc.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcc-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "cloudcc-cli",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudcc",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
18
|
"cc-pull": "git fetch --tags -f && git pull",
|
|
19
|
-
"publish-lib": "npm publish --registry https://registry.npmjs.org
|
|
19
|
+
"publish-lib": "npm publish --registry https://registry.npmjs.org && curl https://npmmirror.com/sync/cloudcc-cli"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"axios": "^0.21.4",
|
package/template/Appvue
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<
|
|
2
|
+
<div class="cc-container">
|
|
3
|
+
<div>Hello CloudCC</div>
|
|
4
|
+
<div>
|
|
5
|
+
<a href="https://cloudccone.feishu.cn/wiki/JZ7CwcRfriU8taknCKCcwKEmncd">
|
|
6
|
+
开发者文档</a
|
|
7
|
+
>
|
|
8
|
+
</div>
|
|
4
9
|
</div>
|
|
5
10
|
</template>
|
|
6
11
|
|
|
7
12
|
<script>
|
|
8
|
-
/**
|
|
9
|
-
* 项目入口文件,用于测试使用
|
|
10
|
-
*/
|
|
11
|
-
import Plugin from "../plugin/index.vue";
|
|
12
13
|
export default {
|
|
13
14
|
name: "App",
|
|
14
|
-
components: {
|
|
15
|
-
Plugin,
|
|
16
|
-
},
|
|
17
15
|
};
|
|
18
16
|
</script>
|
|
19
17
|
|
|
@@ -24,4 +22,9 @@ html body {
|
|
|
24
22
|
height: 100vh;
|
|
25
23
|
width: 100%;
|
|
26
24
|
}
|
|
25
|
+
.cc-container {
|
|
26
|
+
text-align: center;
|
|
27
|
+
padding: 8px;
|
|
28
|
+
background: goldenrod;
|
|
29
|
+
}
|
|
27
30
|
</style>
|
package/template/index.js
CHANGED
|
@@ -6,24 +6,15 @@ module.exports = function (creator, options, callback) {
|
|
|
6
6
|
|
|
7
7
|
const cwd = process.cwd();
|
|
8
8
|
|
|
9
|
-
|
|
10
9
|
const projectPath = path.join(cwd, name);
|
|
11
10
|
fs.mkdirSync(projectPath)
|
|
12
11
|
|
|
13
|
-
const pluginPath = path.join(projectPath, "plugin");
|
|
14
|
-
fs.mkdirSync(pluginPath)
|
|
15
|
-
|
|
16
|
-
fs.mkdirSync(path.join(projectPath, "classes"))
|
|
17
|
-
const classesPath = path.join(projectPath, "classes/classdemo");
|
|
18
|
-
fs.mkdirSync(classesPath)
|
|
19
|
-
|
|
20
12
|
const src = path.join(projectPath, "src");
|
|
21
13
|
fs.mkdirSync(src)
|
|
22
14
|
|
|
23
15
|
const public = path.join(projectPath, "public");
|
|
24
16
|
fs.mkdirSync(public)
|
|
25
17
|
|
|
26
|
-
|
|
27
18
|
creator.copyTpl('packagejson', path.join(projectPath, "package.json"), {
|
|
28
19
|
name, description
|
|
29
20
|
})
|
|
@@ -40,27 +31,15 @@ module.exports = function (creator, options, callback) {
|
|
|
40
31
|
|
|
41
32
|
creator.copyTpl('Appvue', path.join(src, "App.vue"))
|
|
42
33
|
|
|
43
|
-
creator.copyTpl('indexvue', path.join(pluginPath, "index.vue"))
|
|
44
|
-
|
|
45
34
|
creator.copyTpl('indexhtml', path.join(public, "index.html"))
|
|
46
35
|
|
|
47
|
-
creator.copyTpl('demojava', path.join(classesPath, "demo.java"))
|
|
48
|
-
|
|
49
|
-
creator.copyTpl('javaconfigjson', path.join(classesPath, "config.json"))
|
|
50
|
-
|
|
51
36
|
|
|
52
37
|
creator.fs.commit(() => {
|
|
53
38
|
console.log();
|
|
54
39
|
console.log(`${chalk.grey(`创建项目: ${name}`)} ${chalk.green('✔ ')}`);
|
|
55
|
-
console.log(`${chalk.grey(`创建目录: ${name}/plugin`)} ${chalk.green('✔ ')}`);
|
|
56
|
-
console.log(`${chalk.grey(`创建文件: ${name}/plugin/index.vue`)} ${chalk.green('✔ ')}`);
|
|
57
|
-
|
|
58
|
-
console.log(`${chalk.grey(`创建目录: ${name}/classes/classdemo`)} ${chalk.green('✔ ')}`);
|
|
59
|
-
console.log(`${chalk.grey(`创建文件: ${name}/classdemo/demo.java`)} ${chalk.green('✔ ')}`);
|
|
60
|
-
console.log(`${chalk.grey(`创建文件: ${name}/classdemo/config.json`)} ${chalk.green('✔ ')}`);
|
|
61
40
|
|
|
62
41
|
console.log(`${chalk.grey(`创建目录: ${name}/public`)} ${chalk.green('✔ ')}`);
|
|
63
|
-
console.log(`${chalk.grey(`创建文件: ${name}/
|
|
42
|
+
console.log(`${chalk.grey(`创建文件: ${name}/public/index.html`)} ${chalk.green('✔ ')}`);
|
|
64
43
|
|
|
65
44
|
console.log(`${chalk.grey(`创建目录: ${name}/src`)} ${chalk.green('✔ ')}`);
|
|
66
45
|
console.log(`${chalk.grey(`创建文件: ${name}/src/App.vue`)} ${chalk.green('✔ ')}`);
|
package/template/packagejson
CHANGED
package/cloudcc-cli/accessToken
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJjbG91ZGNjIiwibG9naW5OYW1lIjoidGVzdHVhdEBjbG91ZGNjLmNvbSIsImJpbmRpbmciOiJjOTExNWExNC05YjUzLTRiMTQtYjc1MC01MTFkYzY1NDk4MjQiLCJDbGllbnRJZCI6IjJaTFdoZW94UWxRQTZHeU51cHdQY1BiRUciLCJleHAiOjE3MDcyNzE1ODQsIm9yZ0lkIjoib3JnMDhmODRlOWMwNTY2ZWFmMGMifQ.6WyZ2VZqNanyGYNZYKp9lPiqbf2iUSSCe86WMyQq9_k
|