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

Templates in rekit 3? #226

Open
codeability-ab opened this issue Mar 28, 2020 · 6 comments
Open

Templates in rekit 3? #226

codeability-ab opened this issue Mar 28, 2020 · 6 comments
Labels

Comments

@codeability-ab
Copy link

codeability-ab commented Mar 28, 2020

Hello!
We're still using rekit 2.3 and rely pretty much on our customized templates for asynch actions and components.

I tried upgrading to rekit 3 but can't find the templates.

Is the "use your own templates" feature removed in rekit 3?

best regards Johan

@danielo515
Copy link

I'm also interested on this.
Rekit is probably the fastest way to get react apps created, it will be a shame it gets abandoned.

@supnate
Copy link
Owner

supnate commented Apr 18, 2020

It was designed to support custom templates in several ways: https://github.com/rekit/rekit-core/blob/master/core/template.js#L27 .

But there seems to be some bug that it doesn't work. I will fix it.

@supnate supnate added the bug label Apr 18, 2020
@codeability-ab
Copy link
Author

Thanks!
Just to clarify... with rekit 3

  • If I generate a new project, there is no template directory and no templates
  • The templates in a project generated with rekit 2.x are ignored when generating new components, actions etc

I agree with @danielo515 - Rekit is an awesome tool!

:-)

/Johan

@joacim-boive
Copy link

@supnate Any progress or ETA on this issue?

@supnate
Copy link
Owner

supnate commented Nov 13, 2020

Hey, very sorry for the delay. I will fix it together with some other small fixes in the next week.

@supnate
Copy link
Owner

supnate commented Nov 23, 2020

There's some issue on publishing a new rekit-studio version (Because I'm working on a new Rekit extension on vscode). As a workaround, you can update rekit-core to 3.0.1 in your global installed rekit-studio by:

  1. Go to global installed rekit-studio folder
  2. Run npm i rekit-core@3.0.1

Then you can define your template in your project's folder rekit-templates/rekit-react. The list of templates can be found here: https://github.com/rekit/rekit-core/tree/master/plugins/rekit-react/templates

For example, create a file in your project at: <prj-root>/rekit-templates/rekit-react/FuncComponent.js.tpl then it will be used to create a functional component.

To use a different folder, define templatesDir in rekit.json which support a template folder outside of your project.

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

No branches or pull requests

4 participants