-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vite 5 and updated all packages with eslint flat config #274
Conversation
One important thing - because of the peer deps issue with @mussi/eslint-config, I couldn't lint properly. |
Hi Ahmed! Appreciate you sharing this pull request. Regarding the ESLint config, I'd be ok using something like For now feel free to ignore any lint issues, or disable that workflow. I'll follow up on this when I have some time, thanks! |
…-next-line overrides
…ient changed to kebab-case
Completed my PR for the update, here is a quick summary:
Only thing I couldn't solve is - in the blog, the one-piece image doesn't seem to be optimised, probably related to the underlying vite plugin, or in its usage (was there any breaking changes @ElMassimo?) - https://github.com/ElMassimo/vite-plugin-image-presets. For the users updating iles, in their apps, with this update, they will have to:
Might be worth spinning out a prerelease verison for our users to test after your review & if it works nicely at your end. I did test on a few samples at my end, worked nicely 😄 Thanks 👍 |
…k without being stuck in interactive mode
…stallPackage added
With Vite 5 deprecating cjs node api, I have refactored Also, antfu's |
Hi @TechAkayy! Would you enable me to push updates to this branch in your fork? |
Just invited you @ElMassimo. Thanks! Good idea creating a fork without linting. Please let me know if you require anymore follow-ups from me. Cheers! |
@TechAkayy Thanks again for diving into this! I've completed the upgrades in #281, and the CI is green once again. I've cherry-picked the last 3 commits here and moved them to: so that we can define the API for |
Description 📖
This pull request updates Iles & it's packages to Vite 5 along with all it's dependencies (had partial success, but with help we can fix it).
Commit-1 - Updated dependencies along with any API changes in their major versions (not many). Also, updated to eslint 9 with a flag config
eslint.config.mjs
. Installed@vue-macros/reactivity-transform
to keep $-style APIs.Commit-2 - Minor types references updated in two packages' package.json.
Commit-3/4 - Removed
@vue-macros/reactivity-transform
and updated to standard vue APIs. This can be ignored if you want to keep the $-style APIs.There are still some minor hiccups for which I need help. Details with screenshots below.
Screenshots 📷
pnpm install
installs without any peer dependency errors except for@mussi-eslint-config
related. I guess this is your package @ElMassimo, and wondering what's the purpose of it? Is it still required in the new eslint 9 flat config way?pnpm build:all
builds fine.pnpm dev
throws some types warnings, looks harmless.The reason I removed reactivity-transform macro is because there seems to be some issue with it. Notice the missing semicolon after
.../BackTick.tsx'
. It was turned into a blocker for me.Key Issue:
Client Script Block seem to not work. When used,
I could trace it to an error logged by vue, something around missing end tag.
I have added three
// @ts-ignore
in https://github.com/TechAkayy/iles/blob/417c641586484ede92f1bf12579d517479294703/packages/iles/src/node/plugin/wrap.ts#L50 which is related to the possibility of template.ast to be undefined. Type wasn't reconciling as ast showed up as RootNode, while some functions that it was pass through was expecting ElementNode.