lustre/dev

Available commands

Below is a list of the available commands when running gleam run -m lustre/dev. Each command has its own CLI help text to document which flags are supported and a separate TOML reference documents additional configuration options that can be set in your gleam.toml.

add <..integrations>

Add various binary dependencies to your project. Lustre uses various external tools to provide core functionality such as bundling JavaScript with Bun or building styles with Tailwind. This command can be used to download these integrations from GitHub for dev tools to use.

Supported arguments are:

Lustre will detect which integrations your project needs based on your code and configuration, and will automatically download necessary tools when you run any of the other commands. However ou may still want to run this command manually to ensure that your project has all the necessary tools installed before you go offline, for example.

build <..entries>

Build your Gleam project and produce a JavaScript bundle ready to be served and run in a Web browser. This command accepts zero or more entry modules as arguments.

The produced JavaScript bundle(s) will be minified and written to your project’s dist directory by default. Some optimisations such as dead-code elimination may also be performed.

start

Start a development server to run your Lustre app locally. This will watch your source files for changes and automatically rebuild and reload the app in your browser.

Values

pub fn main() -> Nil
Search Document