cloudcc-cli 0.9.7 → 0.9.8

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,11 @@
1
+ # ReleaseV0.9.8
2
+ #### 发布日期:2022-3-3
3
+ #### 发布范围:全量
4
+ #### 发布内容
5
+ * 优化
6
+ * 删除不必要打印信息
7
+ * 兼容vue@cli5.0
8
+
1
9
  # ReleaseV0.9.7
2
10
  #### 发布日期:2022-2-15
3
11
  #### 发布范围:全量
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudcc-cli",
3
- "version": "0.9.7",
3
+ "version": "0.9.8",
4
4
  "description": "cloudcc-cli",
5
5
  "keywords": [
6
6
  "cloudcc",
@@ -125,7 +125,7 @@ class Builder {
125
125
  */
126
126
  build(obj) {
127
127
  console.log(chalk.green('编译中,请稍后...'));
128
- let { stdout, stderr, error } = execSync('vue build -t lib -n ' + obj.compName + ' -d build plugin/plugin.js');
128
+ let { stdout, stderr, error } = execSync('npx vue-cli-service build --target lib --name ' + obj.compName + ' --dest build plugin/plugin.js');
129
129
  if (null == error) {
130
130
  console.log(chalk.green('编译成功!'));
131
131
  } else {
@@ -143,6 +143,7 @@ class Builder {
143
143
  jsContent = fs.readFileSync(this.filterFile()[0], 'utf8')
144
144
  } catch (err) {
145
145
  console.error(err)
146
+ return;
146
147
  }
147
148
  let body = {
148
149
  "compUniName": obj.compName,
@@ -69,7 +69,7 @@ class Creator {
69
69
  console.log();
70
70
  console.log(chalk.green('构建完成'));
71
71
  console.log();
72
- console.log(chalk.green(`运行项目: cd ${this.options.name} && npm install`));
72
+ console.log(chalk.green(`运行项目: \n 1:cd ${this.options.name} \n 2:code . \n 3:npm install`));
73
73
  })
74
74
  }
75
75
 
package/template/indexvue CHANGED
@@ -40,7 +40,7 @@ export default {
40
40
  * private:私有组件(自己组织可见)
41
41
  * beta:组件测试版本
42
42
  */
43
- category: "public", // public private
43
+ category: "private",
44
44
  },
45
45
  style: {
46
46
  unit: "px",
package/utils/pushCode.js CHANGED
@@ -21,14 +21,11 @@ function getNewVersionName(types) {
21
21
  version = versions.find((item) => {
22
22
  return item.includes("-V");
23
23
  })
24
- console.log("version 1", version);
25
24
  if (version) {
26
25
  // 取版本号
27
26
  version = version.split("-V")[1]
28
- console.log("version 2", version);
29
27
  // 改变版本号
30
28
  version = changeVersion.change(version, item)
31
- console.log("version 3", version);
32
29
  // 生成最后的版本号
33
30
  item = item + "-V" + version
34
31
  } else {