cloudcc-cli 1.7.8 → 1.7.9
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 +7 -0
- package/package.json +2 -2
- package/src/plugin/create1.js +3 -3
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcc-cli",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.9",
|
|
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
|
|
19
|
+
"publish-lib": "npm publish --registry https://registry.npmjs.org && git add . && git commit -m '发布新版' && git push && curl https://npmmirror.com/sync/cloudcc-cli"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"axios": "^0.21.4",
|
package/src/plugin/create1.js
CHANGED
|
@@ -19,9 +19,9 @@ data() {
|
|
|
19
19
|
return {
|
|
20
20
|
componentInfo: {
|
|
21
21
|
|
|
22
|
-
component: "
|
|
22
|
+
component: "component-${name}",
|
|
23
23
|
|
|
24
|
-
compName: "
|
|
24
|
+
compName: "compName-${name}",
|
|
25
25
|
|
|
26
26
|
compDesc: "Component description information",
|
|
27
27
|
},
|
|
@@ -44,7 +44,7 @@ data() {
|
|
|
44
44
|
try {
|
|
45
45
|
fs.mkdirSync(pluginPath, { recursive: true })
|
|
46
46
|
fs.writeFileSync(path.join(pluginPath, name + ".vue"), temp)
|
|
47
|
-
fs.writeFileSync(path.join(pluginPath, "config.json"), `{"component":"
|
|
47
|
+
fs.writeFileSync(path.join(pluginPath, "config.json"), `{"component":"component-${name}","compName":"compName-${name}","compDesc":"Component description information"}`)
|
|
48
48
|
console.log()
|
|
49
49
|
console.log(chalk.green("Successfully Created:" + name))
|
|
50
50
|
console.log()
|