A simple Luau program — a random quote generator, converted from Lua. Luau is a fast, small, gradually-typed language derived from Lua 5.1, maintained by Roblox. This project demonstrates static types, type-checking with luau-analyze, and running via the luau CLI.
- Luau (managed via mise —
aqua:luau-lang/luau, shipsluau,luau-analyze,luau-compile) - Razd CLI
# Setup project
razd
# Or run directly
razd devrazd- Setup and run the projectrazd dev- Run the quote generatorrazd run- Alias for devrazd check- Type-check the Luau source withluau-analyzerazd install- Install tools via mise
.
├── main.luau # Main program file (typed Luau)
├── Razdfile.yml # Razd task configuration
├── mise.toml # Mise tools configuration
└── README.md # This file
=== Random Quote Generator ===
1. The only way to do great work is to love what you do. - Steve Jobs
2. Code is like humor. When you have to explain it, it's bad. - Cory House
3. Success is not final, failure is not fatal. - Winston Churchill
✨ Have a great day!
- Static types —
main.luauannotates the table and locals ({ string },: number,: ()). luau-analyze— static type-checking and linting before runtime (razd check).luau— the standalone CLI to run scripts.
- Luau — language docs
- luau-lang/luau — source
- Getting Started — install and CLI usage
- Razd CLI — universal task runner
- mise — tool version manager