Skip to content

max-legrand/flint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 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 currently depends on fswatch to handle file watching. This is the only dependency.

Usage

Example flint.zon file:

.{
    .tasks = .{
        .{
            .name = "build",
            .cmd = "zig build --release=safe --summary all",
            .watcher = .{
                "src/*",
            }
            .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

No packages published

Languages