mirror of
https://github.com/evroon/bracket.git
synced 2026-07-31 10:16:46 -04:00
This PR migrates formatting in `frontend/` from Prettier to `oxfmt`,
including script wiring and dependency cleanup. It removes the Prettier
plugin/config path so formatting is handled by a single tool.
- **Script migration**
- Renamed/rewired formatting scripts in `frontend/package.json`:
- `prettier:check` → `format:check` (`oxfmt --check .`)
- `prettier:write` → `format:write` (`oxfmt .`)
- Updated dependent scripts:
- `test` now runs `pnpm run format:write`
- `openapi-ts` now runs `pnpm run format:write` after generation
- **Dependency cleanup**
- Removed `prettier-plugin-organize-imports` from `dependencies`
- Removed `prettier` from `devDependencies`
- Added `oxfmt` (latest stable at update time)
- **Config removal**
- Deleted `frontend/.prettierrc.js` (no longer used after migration)
- **Lockfile alignment**
- Updated `frontend/pnpm-lock.yaml` to reflect the dependency and script
ecosystem change
```json
{
"scripts": {
"format:check": "oxfmt --check .",
"format:write": "oxfmt .",
"openapi-ts": "openapi-ts && pnpm run format:write",
"test": "tsc && pnpm run format:write"
}
}
```
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Erik Vroon <11857441+evroon@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
56 lines
1.6 KiB
Plaintext
56 lines
1.6 KiB
Plaintext
---
|
|
title: Cloud services
|
|
---
|
|
|
|
import { Callout } from "nextra/components";
|
|
|
|
# Cloud services
|
|
|
|
The frontend of Bracket is powered by Vite and can be simply statically hosted on any cloud
|
|
service, such as Vercel or Cloudflare. Vite's [documentation](https://vite.dev/guide/static-deploy)
|
|
provides detailed instructions on how to deploy your Vite application.
|
|
|
|
<Callout type="info">
|
|
Essentially, the only thing you (or a cloud provider) needs to do is to run `pnpm run build` to
|
|
generate a production build, and then serve the contents of the `dist` directory to the internet.
|
|
</Callout>
|
|
|
|
## Cloudflare
|
|
|
|
To deploy the frontend to Cloudflare, go to `Workers & Pages` and click on
|
|
`Import an existing Git repository`.
|
|
|
|
Make sure to:
|
|
|
|
- Select `React (Vite)` as framework
|
|
- Select the `frontend` directory as root directory
|
|
|
|
## GitHub Pages
|
|
|
|
To deploy the frontend to GitHub Pages, follow the steps outlined in
|
|
Vite's [docs](https://vite.dev/guide/static-deploy#github-pages).
|
|
|
|
## Vercel
|
|
|
|
To deploy the frontend to Vercel, use the following link:
|
|
|
|
```text
|
|
https://vercel.com/new/project?template=https://github.com/evroon/bracket
|
|
```
|
|
|
|
Make sure to:
|
|
|
|
- Select `Vite` as framework
|
|
- Select the `frontend` directory as root directory
|
|
|
|
This should work. If it fails, Vercel didn't automatically detect the right build settings.
|
|
Change the following settings under `Build and Output settings`:
|
|
|
|
- Set the build command to `pnpm run build`
|
|
- Set the install command to `pnpm install`
|
|
|
|
## Other cloud providers
|
|
|
|
Vite's [documentation](https://vite.dev/guide/static-deploy)
|
|
provides detailed instructions on how to deploy your Vite application.
|