import { Ningen } from "https://deno.land/x/ningen@0.0.6/mod.ts";
Methods
Constructs a File object from the given filename. If {@code filename} is a relative path, uses {@code directory} as the root directory.
Constructs a list of File objects from the given filenames. You can supply either an array of filenames, or a vararg list of filenames.
generate(unnamed 0?: { inputs?: Files; output?: File; enableGeneratorRule?: boolean; generatorRule?: Rule; })
Generates the build.ninja
file. Filename can be overridden.
generateToString(unnamed 0: { inputs?: Files; output?: File; enableGeneratorRule?: boolean; generatorRule?: Rule; }): string
Returns contents of generated ninja file. Use only for testing.
Returns all files matching the given glob(s). Optionally can supply other globs to exclude certain paths.
Supply either a single string, e.g. glob("*.jpg")
, or an array of
strings, e.g. glob(["*.jpg", "*.png"])
.
reset()
Clears all defined rules and targets. Use only for testing.