Skip to content

Vite 6 upgrade, fixes and new features#326

Open
TechAkayy wants to merge 37 commits intomainfrom
next
Open

Vite 6 upgrade, fixes and new features#326
TechAkayy wants to merge 37 commits intomainfrom
next

Conversation

@TechAkayy
Copy link
Collaborator

This next branch covers:

  1. Upgrade to vite v6.0.11 along with other required package updates.
  2. Updated twitter meta tags property to name, fixes Twitter meta tags #264.
  3. Fixes to ensure default.vue layout is optional (basic iles app errors out during development if default.vue was deleted).
  4. Makesapp.ts and site.ts optional, so users can simply add Îles to their existing project (easy onboarding).
  5. Alert user to remove redundant Vite Vue plugin when add Iles to an existing Vite project.
    image
  6. Use default title and description if user had an empty site.ts (like Vitepress). Screenshots in the end below.
  7. Support for useSeoMeta from @unhead/vue, docs updated.
  8. Support user provided index.html shell, resolves Ability to customise base HTML index.html #136 , Addin Vue UI libraries to iles #271 , Download js/css from cdn only when progressively hydrating a component (client:visible) #267
  9. enhanceIslands API for Vue Islands, delivers [Feature Request] - A new enhanceIslands hook to add plugins and other setup to Islands #277 , supersedes feat: enhance-islands API #282
  10. Support unplugin-auto-import, docs and blog updated to use it, delivers Ship unplugin-auto-import with vue & vue-router presets  #243 , supersedes refactor: use unplugin-auto-import #199
  11. Support auto-wrapping top-level await setup with suspense, added a CatDisplay.vue in the blog to illustrate, supersedes feat: make top-level await vue islands possible #178
  12. Tests updated to ensure they pass, fixed CI to pass with github runner, updated old links.
  13. docs: Added a new Static Assets page.
  14. docs: Added a recipes section to the docs menu.
  15. docs: To enhance readability, renamed and reorganised docs pages (last set of commits).

Screenshots:

Use default title & description when user has an empty site.ts.

Before:
image

After:
image

…pdates

Upgraded to vite v6.0.11 (pinned)
 vitest to latest with the same pinned vite sub-dep
 @antfu/eslint-config and other eslint plugins required update to avoid peer dependency warnings
 Turned off new eslint rules (cleanup later along with all the other escaped rules)
 Upgraded svelte@5 along with it's vite plugin v4
 Disable prettier linting to avoid formatting in local envn by prettier vs code extn
…mposables within logic folder

Renamed NavBarLinks.svelte to vue file to avoid (for now) svelte's `lifecycle_function_unavailable`
… auto-suspense

test: 🧪 Regenerated snapshots to baseline the following changes
- Suspense boundary related asset naming change from default-*.css to Island-*.css
- New /cat-zone route
- NavBarLinks.vue with the new link to /cat-zone
@nx-cloud
Copy link

nx-cloud bot commented Jan 28, 2025

View your CI Pipeline Execution ↗ for commit 661e9c0.

Command Status Duration Result
nx run-many --target=build --all --exclude docs... ✅ Succeeded 1s View ↗
nx run-many --target=lint --all ✅ Succeeded 5s View ↗

☁️ Nx Cloud last updated this comment at 2025-01-28 21:45:18 UTC

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 28, 2025

Deploying iles with  Cloudflare Pages  Cloudflare Pages

Latest commit: 661e9c0
Status:🚫  Build failed.

View logs

@dagnelies
Copy link

That looks like a monster PR. Wouldn't smaller more incremental changes be preferable?

@TechAkayy
Copy link
Collaborator Author

Thanks for your feedback @dagnelies, it's a fair point. I have been working on these commits for a long time and I have been having trouble creating disjoint PRs.

@ElMassimo, please advise if you prefer disjoint PRs for your review and I will spend effort to achieving the same.

Meanwhile, I have the docs update for all the commits in this PR deployed temporarily at https://iles.netlify.app/recipes for an easy read to feel the flow. Thanks again!

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.

Twitter meta tags Ability to customise base HTML index.html

2 participants