cloudcc-cli 1.5.9 → 1.6.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 CHANGED
@@ -1,3 +1,18 @@
1
+ # ReleaseV1.6.1
2
+ #### 发布日期:2023-4-24
3
+ #### 发布范围:全量
4
+ #### 发布内容
5
+ * 优化
6
+ * 修复获取baseurl逻辑
7
+
8
+ # ReleaseV1.6.0
9
+ #### 发布日期:2023-3-26
10
+ #### 发布范围:全量
11
+ #### 发布内容
12
+ * 优化
13
+ * 清理无用文件
14
+ * 配套升级vs code插件
15
+
1
16
  # ReleaseV1.5.9
2
17
  #### 发布日期:2023-3-11
3
18
  #### 发布范围:全量
package/bin/cc.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
  const chalk = require("chalk")
3
3
 
4
4
  let argvs = process.argv.splice(2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudcc-cli",
3
- "version": "1.5.9",
3
+ "version": "1.6.1",
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 --proxy http://127.0.0.1:33210 && curl https://npmmirror.com/sync/cloudcc-cli"
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",
@@ -61,7 +61,7 @@ class Builder {
61
61
  * @returns token
62
62
  */
63
63
  async getToken(devConsoleConfig) {
64
- let res = await post(this.options.devConsoleConfig.baseUrl || BaseUrl + "/sysconfig/auth/pc/1.0/post/tokenInfo", devConsoleConfig);
64
+ let res = await post((this.options.devConsoleConfig.baseUrl || BaseUrl) + "/sysconfig/auth/pc/1.0/post/tokenInfo", devConsoleConfig);
65
65
  if (res.returnCode == 200) {
66
66
  return res.data.accessToken;
67
67
  } else {
package/template/Appvue CHANGED
@@ -1,19 +1,17 @@
1
1
  <template>
2
- <div>
3
- <Plugin />
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}/plugin/index.html`)} ${chalk.green('✔ ')}`);
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('✔ ')}`);
@@ -7,9 +7,7 @@
7
7
  "secretKey": "xxxxx"
8
8
  },
9
9
  "scripts": {
10
- "serve": "vue-cli-service serve",
11
- "build-plugin": "cloudccBuild",
12
- "build-create-plugin": "cloudccCreatePlugin"
10
+ "serve": "vue-cli-service serve"
13
11
  },
14
12
  "dependencies": {
15
13
  "element-ui": "2.15.12",
@@ -1 +0,0 @@
1
- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJjbG91ZGNjIiwibG9naW5OYW1lIjoidGVzdHVhdEBjbG91ZGNjLmNvbSIsImJpbmRpbmciOiJjOTExNWExNC05YjUzLTRiMTQtYjc1MC01MTFkYzY1NDk4MjQiLCJDbGllbnRJZCI6IjJaTFdoZW94UWxRQTZHeU51cHdQY1BiRUciLCJleHAiOjE3MDcyNzE1ODQsIm9yZ0lkIjoib3JnMDhmODRlOWMwNTY2ZWFmMGMifQ.6WyZ2VZqNanyGYNZYKp9lPiqbf2iUSSCe86WMyQq9_k