36539c8e1c
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [vite](https://togithub.com/vitejs/vite/tree/main/#readme) ([source](https://togithub.com/vitejs/vite)) | [`4.3.3` -> `4.3.4`](https://renovatebot.com/diffs/npm/vite/4.3.3/4.3.4) | [![age](https://badges.renovateapi.com/packages/npm/vite/4.3.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/vite/4.3.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/vite/4.3.4/compatibility-slim/4.3.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/vite/4.3.4/confidence-slim/4.3.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitejs/vite</summary> ### [`v4.3.4`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small434-2023-05-02-small) [Compare Source](https://togithub.com/vitejs/vite/compare/v4.3.3...v4.3.4) - fix(define): incorrect raw expression value type in build ([#​13003](https://togithub.com/vitejs/vite/issues/13003)) ([8f4cf07](https://togithub.com/vitejs/vite/commit/8f4cf07)), closes [#​13003](https://togithub.com/vitejs/vite/issues/13003) - fix(importAnalysisBuild): support parsing '**VITE_PRELOAD**' ([#​13023](https://togithub.com/vitejs/vite/issues/13023)) ([447df7c](https://togithub.com/vitejs/vite/commit/447df7c)), closes [#​13023](https://togithub.com/vitejs/vite/issues/13023) - fix(server): should respect hmr port when middlewareMode=false ([#​13040](https://togithub.com/vitejs/vite/issues/13040)) ([1ee0014](https://togithub.com/vitejs/vite/commit/1ee0014)), closes [#​13040](https://togithub.com/vitejs/vite/issues/13040) - fix(ssr): track for statements as block scope ([#​13021](https://togithub.com/vitejs/vite/issues/13021)) ([2f8502f](https://togithub.com/vitejs/vite/commit/2f8502f)), closes [#​13021](https://togithub.com/vitejs/vite/issues/13021) - chore: add changelog for vite 4.2.2 and 3.2.6 ([#​13055](https://togithub.com/vitejs/vite/issues/13055)) ([0c9f1f4](https://togithub.com/vitejs/vite/commit/0c9f1f4)), closes [#​13055](https://togithub.com/vitejs/vite/issues/13055) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/Unleash/unleash). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS43NS4wIiwidXBkYXRlZEluVmVyIjoiMzUuNzUuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
||
---|---|---|
.. | ||
cypress | ||
public | ||
scripts | ||
src | ||
.editorconfig | ||
.gitignore | ||
.nvmrc | ||
.prettierignore | ||
.prettierrc | ||
cypress.config.ts | ||
cypress.d.ts | ||
index.html | ||
index.js | ||
orval.config.js | ||
package.json | ||
README.md | ||
tsconfig.json | ||
tsconfig.node.json | ||
vercel.json | ||
vite.config.ts | ||
yarn.lock |
frontend
This directory contains the Unleash Admin UI frontend app.
Run with a local instance of the unleash-api
First, start the unleash-api backend on port 4242. Then, start the frontend dev server:
cd ./frontend
yarn install
yarn run start
Run with a sandbox instance of the Unleash API
Alternatively, instead of running unleash-api on localhost, you can use a remote instance:
cd ./frontend
yarn install
yarn run start:sandbox
Running end-to-end tests
We have a set of Cypress tests that run on the build before a PR can be merged so it's important that you check these yourself before submitting a PR. On the server the tests will run against the deployed Heroku app so this is what you probably want to test against:
yarn run start:sandbox
In a different shell, you can run the tests themselves:
yarn run e2e:heroku
If you need to test against patches against a local server instance, you'll need to run that, and then run the end to end tests using:
yarn run e2e
You may also need to test that a feature works against the enterprise version of unleash. Assuming the Heroku instance is still running, this can be done by:
yarn run start:enterprise
yarn run e2e
Generating the OpenAPI client
The frontend uses an OpenAPI client generated from the backend's OpenAPI spec. Whenever there are changes to the backend API, the client should be regenerated:
./scripts/generate-openapi.sh
This script assumes that you have a running instance of the enterprise backend at http://localhost:4242
.
The new OpenAPI client will be generated from the runtime schema of this instance.
The target URL can be changed by setting the UNLEASH_OPENAPI_URL
env var.
Analyzing bundle size
npx vite-bundle-visualizer
in the root of the frontend directory