voidzero-dev / voidzero-dev/vite-plus

vp cli support --if-present

Offen
#2,556 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
pending triage
Vorherrschende Sprache
Rust
Sterne
5.8k
Forks
262
Ø Merge
23 Std. 41 Min.
Gemergte PRs (30 T.)
138

Beschreibung

### Description

Hello i would like to have the possibility to ignore missing script/task by using

`--if-present` flag.

What is the intended way to do it?

Should is prefer to use `vp pm run`?

Thank you

### Suggested solution

Add `--if-present` flag to run command

### Alternative

use `pm` command
however pm does not support `run` command

### Additional context

_No response_

### Validations

- [x] Read the [Contributing Guidelines](https://github.com/voidzero-dev/vite-plus/blob/main/CONTRIBUTING.md).
- [x] Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
- [x] Check that there isn't already an issue requesting the same feature.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by running the existing vp CLI run command and reading its command handling, then compare it with the mentioned vp pm run and pm command paths. Done means the run command accepts --if-present and ignores missing scripts or tasks without changing the existing behavior for present ones.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Bereich
cli
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Aktiv
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
65/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.