-
Notifications
You must be signed in to change notification settings - Fork 149
Using framework as a library #34
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
Comments
Yes, this is definitely not a library that you can just import and go. Nor is it light weight :) but I enjoy React because of the libraries and tools available. You could do what I do and fork the repo, keeping your projects in branches pulling in the changes when needed: https://help.github.com/en/articles/configuring-a-remote-for-a-fork I've pondered whether to wrap this up as a library, I'm sure I could write some tooling to serve the react content in a static manner (compiling it into the binary) but that would mean the UI wouldn't be customizable by importee... tricky one. |
I think the React part can be implemented as a collection of js modules without app.js (it can be provided as an example). Then the user can create their own implementation with only the required components. You can specify the folder for the user scripts and static content, and then your frontend build scripts will continue working. |
Related to: #42 |
Hi! Please take a look in this framework. It's very similar to your project and can be used as library. Maybe it can be useful reference for you. Best regards. |
I did a PR for it. Please take a look. |
Thanks for this. I agree that there would be value had in wrapping this up as a PIO (and also Arduino) library. There's enough in the framework for that to be worthwhile, but as you've pointed out there's plenty out there which does similar, so I've never felt particually compelled. A few thoughts:
It feels like any "includable library" should either be a built artefact, or a downstream project. The latter giving the flexiblity to add value as described above. |
Hi!
For now could it be solved using build flags as on framework linked above? The script will look for a "rebuild interface flag" and if it is not present will skip all build process so In this case the system will use a given fully featured Best regards. |
Hi, is there any way to use this framework as a connectable library?
I think this way it might be more convenient for users, because you can update it easily and initialize in your code only the parts that you need (thanks for the examples).
Now if I start creating a project on top of this framework, I won't be able to update its sources in the future or won't be able to use a separate git repository (because I have to use this repo to be able to update the framework sources).
I think it can be easily done for the ESP code, but I don't know how to do this for the React part (I don't have much experience with this framework).
What do you think about this idea?
The text was updated successfully, but these errors were encountered: