cloudcc-cli 1.7.7 → 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 +14 -0
- package/package.json +2 -2
- package/src/plugin/create1.js +13 -5
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
|
@@ -15,11 +15,19 @@ async function create(name) {
|
|
|
15
15
|
|
|
16
16
|
<script>
|
|
17
17
|
export default {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
data() {
|
|
19
|
+
return {
|
|
20
|
+
componentInfo: {
|
|
21
|
+
|
|
22
|
+
component: "component-${name}",
|
|
23
|
+
|
|
24
|
+
compName: "compName-${name}",
|
|
25
|
+
|
|
26
|
+
compDesc: "Component description information",
|
|
27
|
+
},
|
|
20
28
|
isLock: false,
|
|
21
|
-
|
|
22
|
-
|
|
29
|
+
};
|
|
30
|
+
},
|
|
23
31
|
};
|
|
24
32
|
</script>
|
|
25
33
|
<style lang="scss" scoped>
|
|
@@ -36,7 +44,7 @@ export default {
|
|
|
36
44
|
try {
|
|
37
45
|
fs.mkdirSync(pluginPath, { recursive: true })
|
|
38
46
|
fs.writeFileSync(path.join(pluginPath, name + ".vue"), temp)
|
|
39
|
-
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"}`)
|
|
40
48
|
console.log()
|
|
41
49
|
console.log(chalk.green("Successfully Created:" + name))
|
|
42
50
|
console.log()
|