voidzero-dev / voidzero-dev/vite-task

Proposal: `vp run --watch` (re-run tasks on changes) leveraging existing tracking/caching

Open
#276 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
466
Forks
42
Avg merge
1d 15h
Merged PRs (30d)
19

Description

Problem

In monorepos, a common workflow is “run lint/tests/build continuously as files change.”
mise provides mise watch as a first-class feature. Vite Tasks already has planning/caching and (in the broader Vite+ ecosystem) file dependency ideas, so watch-mode could be especially powerful.

Evidence (primary)

  • Vite Tasks CLI currently exposes run and cache ... commands; no watch flag/subcommand is visible in the CLI definition.

Proposed behavior (Unspecified)

  • vp run --watch <task> or vp watch <task> (syntax unspecified)
  • On file changes, rerun the task (possibly only the necessary affected subtasks)
  • Provide debounce/throttle config (unspecified)

Backward compatibility

  • Additive feature; no change to current behavior unless used.

Minimal implementation suggestion (MVP)

  • Start with a basic file watcher over a configured path set.
  • Iterate to use tracked inputs/outputs to narrow watch scope, and integrate with caching.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Vite Tasks CLI definition and existing run and cache commands to understand where a watch mode could fit. Review the proposed MVP for watching configured paths, then establish the command syntax, rerun behavior, and debounce expectations; the work is done when the agreed watch interface and basic file-change reruns are implemented without changing normal behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.