Skip to content

Watch for changes to cached builds #324

Open
@adamsanderson

Description

@adamsanderson

If I'm reading the code correctly, it looks like backfill will run and then exit, which is great for production builds.

One use case you might consider is to allow backfill to watch the package directory for changes if it serves up a cached build and then execute the build command so that it can be used with watch scripts. This allows people to use tools like wsrun to launch watchers for many packages in dev mode, but only actually spin up the watcher on either a cache miss or a local change.

I found this approach provided a good balance of performance and developer experience in a project where I wrote some one-off build caching scripts. On the other hand, this may be either a pathological use case or overly complicated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions