Upgrade to Svelte 5.45.8 and migrate from Snowpack to Vite - #4
Conversation
Co-authored-by: caged <25+caged@users.noreply.github.com>
Co-authored-by: caged <25+caged@users.noreply.github.com>
|
@copilot update the testing libraries like puppeteer and related code. |
- @web/test-runner: 0.12.17 → 0.20.2 - chai: 4.2.0 → 6.2.1 - mocha: 9.2.2 → 11.7.5 All tests passing with updated versions. Co-authored-by: caged <25+caged@users.noreply.github.com>
Updated testing libraries to latest versions in commit 9811d1c:
All 12 tests passing with the updated versions. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot update the github actions and ci code until the build succeeds and the tests pass. |
- Replace puppeteer with playwright for better CI reliability - Update @web/test-runner config to use playwrightLauncher - Simplify CI workflow: remove manual system dependencies - Use `npx playwright install --with-deps chromium` - Only deploy on main branch pushes - Update package.json: - Remove: puppeteer, @web/test-runner-puppeteer - Add: playwright@1.49.1, @web/test-runner-playwright@0.11.1 Build and all tests passing locally with Playwright. Co-authored-by: caged <25+caged@users.noreply.github.com>
Fixed GitHub Actions CI configuration in commit 0c0706b: Changes made:
Testing:
The CI should now build and test successfully on GitHub Actions. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot deploy this branch to github pages. |
Modified GitHub Actions workflow to deploy from copilot/upgrade-to-latest-svelte branch in addition to main branch. This allows testing the deployment before merging to main. Co-authored-by: caged <25+caged@users.noreply.github.com>
Enabled GitHub Pages deployment from this branch in commit b7f5d77. The GitHub Actions workflow will now automatically deploy to GitHub Pages when you push to this branch. The workflow will:
The deployment should start automatically with the latest push. You can monitor the progress in the Actions tab of the repository. |
Upgrades from Svelte 3.46.4 to 5.45.8. Snowpack is deprecated and incompatible with Svelte 5, requiring migration to Vite.
Changes
Build system: Snowpack → Vite 6.0.11
vite.config.jsindex.htmlto rootpostcss.config.jsandtailwind.config.jsto ES modulesDependencies:
svelte: 3.46.4 → 5.45.8svelte-select: 3.17.0 → 5.8.3@sveltejs/vite-plugin-svelte@5.0.4svelte-preprocess,@snowpack/*packagesTesting libraries (updated to latest versions):
@web/test-runner: 0.12.17 → 0.20.2chai: 4.2.0 → 6.2.1mocha: 9.2.2 → 11.7.5playwright@1.49.1,@web/test-runner-playwright@0.11.1CI/CD:
npx playwright install --with-deps chromiumCode updates:
Screenshot
Application running on Svelte 5:
Notes
createEventDispatcher,on:directives) which work in Svelte 5> [!WARNING]
>
>
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.