Open aabounegm opened 2 years ago
Docs available on https://illright.github.io/attractions/349/
any updates on sveltekit migration"?
Hello @metaory, sorry for the delays from my side, but I just finished my final exams (at uni) today. I plan to come back to this issue soon, but I was also hoping to get more feedback on #360 first
Is there anything you're blocked on in terms of getting this in?
I feel like this task has maybe become too large. I think migrating only the docs first as https://github.com/illright/attractions/pull/312 was doing might have been more approachable vs trying to boil the ocean. But given how much progress has been made with this approach, maybe it could just be merged with a few things broken and some cleanup can happen later?
Well, the main issue is that both maintainers (me and @illright) got busy with other things in their lives, be it study or work or both. Still, I wanted to continue with the migration because it didn't seem so difficult. The main stopping point was #360, in which we decided to move away from Sass to CSS with variables (custom properties), but SCSS/CSS are not really my strong point. I did some work in the sass-migration branch but it's far from complete.
TL;DR: I need to muster up some energy to continue the CSS migration and the rest should be straightforward
A previous PR (#312) was made with the target of rewriting the docs in SvelteKit. It quickly became outdated and was only targeting the docs, so this PR supersedes it since it started from a fresh SvelteKit template and targets the entire app (not just docs).
Important tasks
The migration is large and some of the tasks may be split into other smaller PRs. The general outline of the tasks is as follows:
:global
selectors are not working as they shouldAdditional tasks
These are the nice-to-haves that theoretically shouldn't block the migration to SvelteKit, but also make use of some features that were not possible/easy before.
right
andtop
props inDropdown
)Blocking issues
The PR is currently blocked by sveltejs/kit#4528 and theUpdate: This turned out to be feasible. I was initially under the impression that{base}/...
workaround is not practical. Some links cannot be transformed that way (ex: ones inside CHANGELOG.md). Since<base href="/" />
is allowed (and actually fixes the problem), I'm wondering whybase: '/'
is not allowed.kit.paths.base
would add thebase
tag as Sapper did, but that turned out to not be the case. It was definitely tiresome but possible to update all URLs everywhere.Other issues
<slot name="loading-options" slot="loading-options">
) are detected as taking a slot prop calledslot
in the generated types.import pkg from './package.json' assert { type: 'json' }
) even with latest Node.js installed Update: Doesn't matter any more since I moved the package import tovite.config.js
Closes #311