mirror of
https://github.com/evroon/bracket.git
synced 2026-07-31 02:10:50 -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>
64 lines
1.8 KiB
TypeScript
64 lines
1.8 KiB
TypeScript
import { Layout, Navbar } from "nextra-theme-docs";
|
|
import { Head } from "nextra/components";
|
|
import { getPageMap } from "nextra/page-map";
|
|
import "nextra-theme-docs/style.css";
|
|
|
|
import logo from "../content/img/logo.svg";
|
|
import Image from "next/image";
|
|
import { Footer } from "../components/Footer";
|
|
|
|
export const metadata = {
|
|
// Define your metadata here
|
|
// For more information on metadata API, see: https://nextjs.org/docs/app/building-your-application/optimizing/metadata
|
|
};
|
|
|
|
const navbar = (
|
|
<Navbar
|
|
logo={
|
|
<>
|
|
<Image width={36} height={36} src={logo.src} className="mr-2" alt="Preview of Bracket" />
|
|
<b className="text-3xl">Bracket</b>
|
|
</>
|
|
}
|
|
projectLink="https://github.com/evroon/bracket"
|
|
// ... Your additional navbar options
|
|
/>
|
|
);
|
|
|
|
// @ts-expect-error 123123213
|
|
export default async function RootLayout({ children }) {
|
|
return (
|
|
<html
|
|
// Not required, but good for SEO
|
|
lang="en"
|
|
// Required to be set
|
|
dir="ltr"
|
|
// Suggested by `next-themes` package https://github.com/pacocoursey/next-themes#with-app
|
|
suppressHydrationWarning
|
|
className="dark"
|
|
>
|
|
<Head>
|
|
<script
|
|
async
|
|
src="https://analytics.bracketapp.nl/script.js"
|
|
data-website-id="9c5b1839-5cbd-4d04-b95b-a217838898a9"
|
|
data-domains="docs.bracketapp.nl"
|
|
></script>
|
|
<link rel="icon" href="/favicon.svg" />
|
|
</Head>
|
|
<body>
|
|
<Layout
|
|
darkMode={true}
|
|
navbar={navbar}
|
|
pageMap={await getPageMap()}
|
|
docsRepositoryBase="https://github.com/evroon/bracket/tree/master/docs"
|
|
footer={<Footer />}
|
|
// ... Your additional layout options
|
|
>
|
|
{children}
|
|
</Layout>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|