Update app to SvelteKit static build with Oxc tooling#2
Merged
Conversation
Deploying a4toa3 with
|
| Latest commit: |
cd9ffed
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://0f1a0da7.a4toa3.pages.dev |
| Branch Preview URL: | https://2026-04-12.a4toa3.pages.dev |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates the app from a vanilla Vite/DOM setup to a prerendered SvelteKit static build, updates the toolchain (Vite 8 / Node 22 / pnpm 10), and replaces Biome with Oxc-based formatting/linting, alongside new CI + Dependabot automation.
Changes:
- Replace the vanilla DOM UI with a SvelteKit (Svelte 5) UI, using adapter-static prerender output.
- Replace sitemap generation via Vite plugin with prerendered SvelteKit endpoints (
/robots.txt,/sitemap.xml). - Update tooling and automation: Vite 8, TypeScript 6, oxfmt/oxlint, Dependabot, and a CI workflow.
Reviewed changes
Copilot reviewed 20 out of 23 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| vite.config.ts | Switch Vite config to SvelteKit plugin. |
| tsconfig.json | Adopt SvelteKit-generated tsconfig base and simplify compiler options. |
| svelte.config.js | Configure adapter-static output to build/ with strict prerendering. |
| src/routes/+layout.ts | Enable prerendering and configure trailing slash behavior. |
| src/routes/+layout.svelte | Move global body styling into the SvelteKit layout. |
| src/routes/+page.svelte | Implement the UI in Svelte (file selection, mode selection, conversion, download). |
| src/routes/robots.txt/+server.ts | Add prerendered robots.txt endpoint. |
| src/routes/sitemap.xml/+server.ts | Add prerendered sitemap.xml endpoint. |
| src/app.html | Add SvelteKit app template (HTML shell). |
| src/core.ts / src/core.test.ts | Keep conversion logic; apply formatting-only changes in core + tests. |
| package.json / pnpm-lock.yaml | Add SvelteKit + Oxc tooling, bump Vite/TS/Vitest, set Node/pnpm engines. |
| .oxlintrc.json / .oxfmtrc.json | Add Oxlint/Oxfmt configuration (including import sorting). |
| .github/workflows/ci.yml | Add CI workflow for format/lint/typecheck. |
| .github/dependabot.yml | Add Dependabot for npm + GitHub Actions. |
| .gitignore | Ignore SvelteKit build artifacts and preview logs. |
| index.html / src/main.ts / src/style.css / biome.json | Remove legacy entrypoint/style and Biome config. |
| README.md | Minor formatting tweaks. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
robots.txtandsitemap.xmlvia prerendered SvelteKit endpoints.Testing
pnpm run format:checkpnpm run lintpnpm run checkpnpm run buildpnpm run test