-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Automatically build UI before compiling #3598
Conversation
Is it possible to skip "npm run build" when building for multiple environments? |
I think the best way to accomplish this is to update |
@blazoncek If you want I could modify cdata.js to do this. |
IDK. I do not understand that stuff enough to lend any guidance. |
Okay, I'll just continue developing a first prototype. Once it's ready, you'll have the opportunity to test it. In my opinion, this approach offers numerous advantages and I see no disadvantages. 😄 In the meanwhile I'll convert this PR to a draft. |
Sorry that nothing has happened here for so long. I didn't get around to continuing here because of the holidays, Christmas and New Year. I just wanted to let you know that I haven't forgotten this. 😃 |
Now, when running I also added an option to always build even if it is cached if you use the command-line parameters Let me know what you think! |
The best solutions come when people are hard pressed while being constrained. |
@WoodyLetsCode Hi, I am mostly compiling on gh and I would like very much to use the same way for automatic build of ui changes without using VSC , is that doable in the current state . I have tried few days ago but could not do it on github but was able to do the same on VSC . |
@dosipod How do you compile it on github? |
@WoodyLetsCode What i do is clone or import the repo and enable github actions ( this part works and I can compile just fine with PlatformIO CI ) , |
@dosipod I'm still not sure where you compile it. In VS Code or in Github Codespaces or somewhere else? |
@WoodyLetsCode there's something very wrong with this.
Now I cannot rebuild any file unless I remove cache file. |
It is interesting to note, that, when doing branch merge, it will not detect correctly file change when there is merge conflict in .h file. |
@blazoncek You must add Basically you have to use |
Now that this is merged, we could add the .h files to .gitignore so that we no longer have merge conflicts with these files. |
I will make a new PR for this |
Ah. Ok, I didn't know that. |
@blazoncek I opened #3666. This should also fix the problem you encountered. |
@WoodyLetsCode I can see the auto ui is working on gh when i cloned your repo so must be something with my old repo, will sort it out |
@dosipod Perfect! By the way, my name on the WLED discord is Woody. |
@blazoncek I noticed a bug in this PR. If you change inlined files like index.js, the script does not recognize the changes. I'm looking for a fix for this and will add it to #3666. |
This will automatically run
npm run build
before compiling.Now we don't have to manually run
npm run build
anymore.