Skip to content

Support directory dependencies #2761

@EdAyers

Description

@EdAyers

I'm not completely sure what the right API would be. It would be nice to be able to have something like inputFileTarget but to specify a directory for whole directories.

let srcFiles := inputDirectoryTarget <| pkgDir / "widget/"

Where widget in this example is a subdirectory npm package. Ideally by default it would only depend on the files that are not git-ignored. Then when you run fileTargetWithDep jsFile srcFiles fun _srcFile => do ... it will re-run whenever any non-git-ignored file in the directory changed.

Another option would be to support globbing patterns.

Origin: #1238 (comment)_

Metadata

Metadata

Assignees

No one assigned

    Labels

    LakeLake related issueenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions