An example of weblit on luvi and luvit.
|
||
---|---|---|
.forgejo/workflows | ||
.gitignore | ||
app.lua | ||
main.lua | ||
package.lua | ||
README.md |
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