Skip to content

max-legrand/flint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flint

Flint is a task runner and file watcher built with Zig. Users provide a flint.zon file which defines the tasks to run and the files to watch.

Dependencies

flint depends on watchexec to handle file watching. It must be available on your PATH. This is the only runtime dependency.

Usage

Example flint.zon file:

.{
    .tasks = .{
        .{
            .name = "build",
            .cmd = "zig build --release=safe --summary all",
            .watcher = .{
                "src/.*\\.zig",
            }
            .deps = .{
                "clean",
            }
        },
        .{
            .name = "clean",
            .cmd = "rm -rf zig-out",
        }
    },
}

In this example, running flint watch build will re-run the build command every time a file in /src is changed.

Flint uses file polling to provide fast results with an emphasis on cross-platform compatibility.

About

A small task runner triggered via file watching

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors