Skip to content

Commit 2d345e8

Browse files
author
FalkWolsky
committed
fix plugin creator 3
1 parent 6d02703 commit 2d345e8

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ client/.yarn/cache/*.zip
55
server/node-service/.yarn/cache/*.zip
66
.metadata/
77
.DS_Store
8+
client/node_modules/

client/packages/create-lowcoder-plugin/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
## How to build a Component Plugin
44

5-
This script helps you to create a skeleton Lowcoder Component, which you can then publish on npm and use it as imported Plugin in any app.
5+
This script helps you to create a skeleton Lowcoder Component, which you can then publish on npm and use it as imported Plugin in any app.
66

7-
1) Navigate your terminal or bash to /client
7+
1) Navigate your terminal or bash to /client and install general dependencies
88
```bash
99
cd /client
10+
yarn install
1011
```
11-
2) execute the Plugin Builder Script. PLease name your plugin with the prefix lowcoder-comp-
12+
1) execute the Plugin Builder Script. PLease name your plugin with the prefix lowcoder-comp-
1213

1314
```bash
1415
npm create lowcoder-plugin lowcoder-comp-my-plugin

client/packages/create-lowcoder-plugin/index.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ async function isDirEmpty(dir) {
5353
async function install(dependencies) {
5454
return new Promise((resolve, reject) => {
5555

56-
console.log("install dependencies:", dependencies);
57-
5856
let cmd = "npm";
5957
let args = ["install", "--no-audit", "--save", "--save-exact", "--loglevel", "error"];
6058
if (isUsingYarn) {
@@ -69,8 +67,6 @@ async function install(dependencies) {
6967

7068
const child = spawn(cmd, args, { stdio: "inherit" });
7169

72-
console.log("spawn child process: ", child);
73-
7470
child.on("close", (code) => {
7571
if (code !== 0) {
7672
reject({
@@ -125,8 +121,6 @@ async function createProject(projectName, options) {
125121
}
126122
}
127123

128-
console.log("is using yarn:", isUsingYarn);
129-
130124
const packageJsonFile = path.resolve(root, "package.json");
131125
fs.ensureDirSync(root);
132126
process.chdir(root);
@@ -154,9 +148,6 @@ async function createProject(projectName, options) {
154148
"vite",
155149
]);
156150

157-
console.log("install packages done");
158-
console.log("Now executeNodeScript");
159-
160151
await executeNodeScript(
161152
{
162153
cwd: process.cwd(),

0 commit comments

Comments
 (0)