Something went wrong. Try again.
Porffor adapter for SvelteKit (wip)
Something went wrong. Try again.
Files
- TypeScript 87%
- Svelte 12%
- CSS 1%
- <1%
- HTML <1%
README.md
sveltekit-adapter-porffor #
A work in progress adapter for Porffor, which can compile your JavaScript to native code.
Note
It's not working properly yet, I've managed to get the adapter building the JS and then I'm manually running Porffor - but the output Porffor generates is bugged and not working correctly in most cases. It'll work soon™
Running #
You can clone this repo and run pnpm install, then switch to the playground folder and run pnpm build. Then you can either run porf native --module .svelte-kit/porffor/server.js or you can export the C code and build it yourself (what I've been testing with so far).
porf c --module .svelte-kit/porffor/server.js -o porfc
cd porfc
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
cmake --build build