Lissome.GleamReloader (Lissome v0.3.1)

View Source

A GenServer to watch for changes to Gleam files and recompile them.

This module requires the FileSystem package, which is not included with Lissome. In typical Phoenix projects, FileSystem is already available in the :dev environment through phoenix_live_reload.

Summary

Functions

Registers a new target for the Gleam reloader to watch and compile.

Starts the Gleam reloader GenServer.

Functions

handle_info(arg, state)

init(args)

register_target(target, path \\ nil)

Registers a new target for the Gleam reloader to watch and compile.

This function starts a new reloader GenServer if one doesn't exist, or adds the target to an existing GenServer.

start_link(args)

Starts the Gleam reloader GenServer.