https://github.com/kdesp73/janitor.zig
Clean up your build.zig
https://github.com/kdesp73/janitor.zig
build-system zig
Last synced: 9 months ago
JSON representation
Clean up your build.zig
- Host: GitHub
- URL: https://github.com/kdesp73/janitor.zig
- Owner: KDesp73
- License: mit
- Created: 2025-07-20T15:00:29.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-16T15:13:52.000Z (10 months ago)
- Last Synced: 2025-08-16T17:23:28.005Z (10 months ago)
- Topics: build-system, zig
- Language: Zig
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# janitor.zig
Clean up your `build.zig`
## Usage
```zig
const std = @import("std");
const Janitor = @import("janitor.zig");
pub fn build(b: *std.Build) void {
var j = Janitor.init(b);
j.exe("my_project");
j.dep("dep1");
j.dep("dep2");
j.install();
j.step(.run);
j.step(.clean);
j.customStep("custom-step", "This is a custom step", makeCustomStep);
}
fn makeCustomStep(step: *std.Build.Step, _: std.Build.Step.MakeOptions) anyerror!void {
// Your code
}
```
## License
[MIT](./LICENSE)