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 +8 -0
- package/package.json +1 -1
- package/src/builderPlugin.js +2 -1
- package/src/creatorTemProject.js +1 -1
- package/template/indexvue +1 -1
- package/utils/pushCode.js +0 -3
package/README.md
CHANGED
package/package.json
CHANGED
package/src/builderPlugin.js
CHANGED
|
@@ -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
|
|
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,
|
package/src/creatorTemProject.js
CHANGED
|
@@ -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}
|
|
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
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 {
|