voidzero-dev / voidzero-dev/vite-plus

vp cli support --if-present

Aperta
#2,556 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
pending triage
Lingua principale
Rust
Stelle
5.8k
Fork
262
Merge medio
1g 34m
PR unite (30g)
135

Descrizione

### 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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Ambito
cli
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Attiva
Chiarezza
Abbastanza chiara
Idoneità per principianti
65/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.