Skip to content

kwaa/sonik-qwik

Repository files navigation

sonik-qwik

Slow Start

Currently, it requires a local link to the latest sonik (include sonikjs/sonik#13 and manually update hono in devDeps to the latest)

git clone https://github.com/kwaa/sonik-qwik.git
cd sonik-qwik
pnpm install
pnpm link ../sonik # Your local sonik needs to install the dependencies via yarn v1... yes, it's painful.
pnpm dev # run!

How It Works

Currently this repository only works as a Demo.

Also, I haven't tested if it works in deployments.

./preset-qwik/

It's structure references @sonikjs/preset-react.

./preset-qwik/lib/render-to-string.ts

It's worth noting that qwik's renderToString function is asynchronous and requires a manifest.

Here I refer to the default settings of qwikVite plugin and @qwikdev/astro.

It just works!

SymbolMapperFn needs to get the srcDir option, here I set it to /app/.

./preset-qwik/client.ts

Since Qwik doesn't have hydration, I set it to simply () => {}.

./vite.config.ts

TODO

./app/

TODO

License

MIT

About

[Alpha] Qwik preset for the Sonik

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published