Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create plugin does not seems to produce a proper local plugin #211

Open
danielo515 opened this issue Jan 13, 2020 · 4 comments
Open

create plugin does not seems to produce a proper local plugin #211

danielo515 opened this issue Jan 13, 2020 · 4 comments

Comments

@danielo515
Copy link

Hello.
I tried to create a local plugin, but the thing is that it does not seems to work.
I want to change the template for the async actions, but when I create a plugin it just creates a new command. If I change the code to add an action then it is ignored, and if I change the file name to be named as action.js then it fails.

What is the correct approach?

@supnate
Copy link
Owner

supnate commented Jan 13, 2020

Are you using 3.0 beta or 2.x? If 2.x please upgrade to 3.0 beta by npm install -g rekit@next

@danielo515
Copy link
Author

I am using 2.X
I can not ugrade to 3.0 because I'm in the middle of a project that already uses 2.X
In any case, I was going to say that I figured it out. I forgot to save my edits to config.js
So the steps are:

  1. Update config.js to add action as supported command
  2. Rename the other file named the same as the plugin to action.js
  3. Profit

Maybe the plugin generator can ask you if you want to generate a new command or override an existing one, like action.

Thanks for this awesome tool!

@supnate
Copy link
Owner

supnate commented Jan 13, 2020

That's great. But I still recommend to use 3.0 because it's compatible with 2.x. You can try:

npm i -g rekit-studio@next
cd <your project root>
rekit-studio -p 3001

Then you can access your project with Rekit 3.0.

@danielo515
Copy link
Author

You mean rekit studio only or rekit itself?
When I was starting the project I tried latest rekit, but I had problems with the css of some of the existing components, so I didn't used it at the end. Wich is a shame because I really wanted to use the new templates 😭.
I'll try latest rekit studio to see if it works.
Thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants