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

Add documentation on how to develop renin locally #72

Open
stianjensen opened this issue Oct 20, 2022 · 1 comment
Open

Add documentation on how to develop renin locally #72

stianjensen opened this issue Oct 20, 2022 · 1 comment

Comments

@stianjensen
Copy link
Member

I'm having some trouble figuring out exactly how to run renin locally to develop the UI while running it with the example-project. It would be nice with a small section describing that process in the README or somewhere appropriate.

I've tried running yarn in the example-project, and inside the example-project inside the lib-folder inside renin, with no success.

@sigvef
Copy link
Member

sigvef commented Oct 22, 2022

Yeah, there isn't any great setup for that right now :/ Before release of the cli (for npx renin init), renin and the example project was all in one big project, so there was easy default live reloading for everything. Now, since renin is only a library project, and the example project is a separate thing, then there is no real nice way to work on them together at the moment.

One workaround is to change the renin install path in example project to "file:../renin", and then rebuild renin and reinstall node_modules of the example project. That way, we can at least run example project with whatever changes we make to the renin project.

A better approach though, would be to restructure the projects a little bit so that we both get a test bench to live-reload-develop renin locally, and also have a pristine example project that we can copy-paste into new projects spawned by npx renin init.

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