def rules

ezx@1.11.0.0 · src/init/plan.bend:57

import ezx@1.11.0.0/src/init/plan.bend as Plan
import Base

57# everything ez writes into a project that is not the project's: the vendored
58# packages, the test gate's shadow and its cache all live under one `.ez/`, and
59# `ez build` drops a binary in `bin/<name>.out` (`build.named` in
60# ez/start.bend) unless it is told otherwise. A project whose first `ez check` leaves untracked output
61# is a project whose owner has to work out for themselves which of it was
62# theirs.
63#
64# `.ez/` is ignored as its contents rather than as a directory, and
65# `.ez/lib` is let back in only to have its contents ignored again. That is
66# what lets a `!.ez/lib/<hash>` line keep a vendored tree: git cannot
67# re-include a file under a directory it has excluded, so under a bare
68# `.ez/` every such line would be inert.
69def rules(+name: String) -> List<&2, String>:
70  [".ez/*", "!.ez/lib", ".ez/lib/*", "bin/" ++ name ++ ".out"]

Uses (3)

Used by (1)