-
Notifications
You must be signed in to change notification settings - Fork 218
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
chore: make UI dev easier #1478
Conversation
@@ -1,13 +1,28 @@ | |||
<!DOCTYPE html> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is simply to get unit tests/etc to pass as our build expects this file to be here. it will get overwritten during the mage
or mage dev
tasks and is added to .gitignore so any changes will not be committed to git
Codecov Report
@@ Coverage Diff @@
## main #1478 +/- ##
=======================================
Coverage 77.77% 77.77%
=======================================
Files 44 44
Lines 3402 3402
=======================================
Hits 2646 2646
Misses 603 603
Partials 153 153 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR changes
index.html
for the UI to be a template that is rendered differently if we are building for 'release' mode or 'development' mode.If in development mode, it proxies all UI requests to the
npm dev
server which allows for hot reloading via vite: https://vitejs.dev/guide/backend-integration.htmlAlso updates to include better instructions on what to do when running
mage
ormage dev