supnate / rekit

IDE and toolkit for building scalable web applications with React, Redux and React-router

Home Page:http://rekit.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

create plugin does not seems to produce a proper local plugin

danielo515 opened this issue · comments

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?

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

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!

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.

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