Skip to content

Svelte test fixture: remove unused demo dependencies#1654

Draft
xormania wants to merge 1 commit into
oraios:mainfrom
xormania:fix/svelte-fixture-trim
Draft

Svelte test fixture: remove unused demo dependencies#1654
xormania wants to merge 1 commit into
oraios:mainfrom
xormania:fix/svelte-fixture-trim

Conversation

@xormania

@xormania xormania commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Removes SvelteKit demo-template dependencies that no test exercises: @fontsource/fira-mono, @neoconfetti/svelte, @tailwindcss/vite, and tailwindcss, along with their only usages (the layout.css imports, the sverdle page's confetti effect, and the tailwind vite plugin).

Why

  • Smaller, more maintainable fixture: a regenerated lockfile drops from 119 to 91 package entries (−24%).
  • Less dependency surface for the fixture bootstrap — fewer packages that can break npm install / svelte-kit sync.
  • rolldown / lightningcss remain: they are vite's own dependencies, not tailwind's.

Test safety

  • Tests reference the sverdle page only as an expected member of reference/rename result sets (no position queries into that file), and its $lib imports (game.ts, Words.svelte) — which put it in those result sets — are untouched.
  • Verified locally: clean npm install + svelte-kit sync + full svelte suite (16/16) against the trimmed fixture.

Sequencing (why this is a draft)

#1648 commits a fixture package-lock.json generated from the previous dependency set; whichever change lands second must regenerate it. This PR stays a draft until #1648 merges — then it will be rebased, the regenerated (trimmed) lockfile committed here, and marked ready for review.

Checklist

  • This PR follows the guidelines in CONTRIBUTING.md regarding the scope of PRs.
  • For changes that add features or fix problems, I have added an entry to CHANGELOG.md, which concisely describes the change. (Not applicable: test-fixture-only change with no user-facing behavior — no entry added.)

@xormania

xormania commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

I looked into how you do things. I'll update PRs. BTW - I like what you're doing, you've answered some useful context issues. I get it now.

Drop the SvelteKit demo-template baggage that no test exercises:
@fontsource/fira-mono, @neoconfetti/svelte, @tailwindcss/vite and
tailwindcss, along with their only usages (the layout.css imports, the
sverdle page's confetti effect, and the tailwind vite plugin).

A regenerated lockfile shrinks from 119 to 91 package entries (-24%).
rolldown and lightningcss remain: they are vite's own dependencies, not
tailwind's. Test-relevant files are untouched: tests reference the
sverdle page only as an expected member of reference/rename result
sets, and its $lib imports (game.ts, Words.svelte) are preserved.

Verified: clean npm install + svelte-kit sync + full svelte suite
(16/16) against the trimmed fixture.

Note: oraios#1648 commits a package-lock.json generated from the previous
dependency set; whichever change lands second must regenerate it.
@xormania xormania force-pushed the fix/svelte-fixture-trim branch from d49f5d3 to c180586 Compare July 9, 2026 23:53
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.

1 participant