Skip to content

Update app to SvelteKit static build with Oxc tooling#2

Merged
Hashory merged 2 commits intomainfrom
2026-04-12
Apr 11, 2026
Merged

Update app to SvelteKit static build with Oxc tooling#2
Hashory merged 2 commits intomainfrom
2026-04-12

Conversation

@Hashory
Copy link
Copy Markdown
Owner

@Hashory Hashory commented Apr 11, 2026

Summary

  • Migrate the UI from vanilla DOM code to SvelteKit with static adapter output.
  • Update Vite to 8.x and declare Node >=22 with pnpm 10.33.0.
  • Replace Biome with Oxfmt/Oxlint, including import sorting configuration.
  • Add Dependabot plus CI checks for formatting, linting, and typechecking.
  • Generate static robots.txt and sitemap.xml via prerendered SvelteKit endpoints.

Testing

  • pnpm run format:check
  • pnpm run lint
  • pnpm run check
  • pnpm run build
  • pnpm run test

Copilot AI review requested due to automatic review settings April 11, 2026 16:25
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 11, 2026

Deploying a4toa3 with  Cloudflare Pages  Cloudflare Pages

Latest commit: cd9ffed
Status: ✅  Deploy successful!
Preview URL: https://0f1a0da7.a4toa3.pages.dev
Branch Preview URL: https://2026-04-12.a4toa3.pages.dev

View logs

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .github/workflows/ci.yml
Comment thread src/routes/sitemap.xml/+server.ts
Comment thread src/routes/robots.txt/+server.ts
Comment thread src/routes/+page.svelte
Comment thread package.json Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Hashory Hashory merged commit c08996e into main Apr 11, 2026
2 checks passed
@Hashory Hashory deleted the 2026-04-12 branch April 11, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants