An example of weblit on luvi and luvit.
Find a file
n f8cd7320f3
Some checks failed
/ build (push) Has been cancelled
Testing workflow
2025-02-21 22:56:19 -03:00
.forgejo/workflows Testing workflow 2025-02-21 22:56:19 -03:00
.gitignore Upload files. 2025-02-21 22:43:52 -03:00
app.lua Upload files. 2025-02-21 22:43:52 -03:00
main.lua Upload files. 2025-02-21 22:43:52 -03:00
package.lua Fix the URL mess :( 2025-02-21 22:51:27 -03:00
README.md Fix the URL mess :( 2025-02-21 22:51:27 -03:00

luddite

An example of a weblit app that works for both luvi and luvit, using the lit package manager on the same codebase.

Mostly this was just an experiment, and I did it to figure this out for my bigger project, napkin.

Setting it up

# Set luvi, luvit and lit up
curl -L https://github.com/luvit/lit/raw/master/get-lit.sh | sh
cp luvi luvit lit ~/.local/bin

# Get the repo
git clone https://kitsunes.dev/n/luddite
cd luvi-luvit-example

# Install dependencies
lit install

# Run with Luvit
luvit main.lua

# Run with Luvi
luvi .

# Build with luvi
luvi . -o luddite