Proposal: framework-aware application commands
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 28/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- nuxt, rust, typescript
- Ambito
- backend-api-design, cli, tooling
Direzione di ricerca
Start with the vp dev, vp build, and vp preview command-routing entry points and the package-level configuration API used by vite.config.ts. Trace how project-level .bin binaries are currently discovered by vp exec, then define how a framework adapter supplies and receives command arguments. Done means framework commands such as nuxt dev run transparently, including help and passed arguments, while framework configuration remains owned by its own config.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Today's vp dev, vp build and vp preview are hard-written to run Vite+'s own vite, vite build, and vite preview. Users of meta frameworks like Nuxt have to use nuxt cli to start a dev server.
I propose introducing a framework-aware application commands, configured through a package-level framework API in vite.config.ts:
defineConfig({
framework: nuxt(),
fmt: { semi: false },
/* ... */
})
Inside, nuxt(), it returns the correct command that vp dev should run, like nuxt dev. It would find binaries under project-level .bin, similar to vp exec.
| Vite+ command | Framework command |
|---|---|
| vp dev | nuxt dev |
| vp build | nuxt build |
| vp preview | nuxt preview |
This means Vite+ passes all arguments to the underlying commands themselves. The usage of vp dev would be the same as nuxt dev, vp dev --help also has the same output as nuxt --help.
Framework-specific configuration would remain in the framework‘s own config file. For example, nuxt.config.ts#vite would still be the source of truth for nuxt features. Vite+ would not automatically merge them from vite.config.ts, we may even consider printing warnings for this case.
Alternative: Why not swtich modes by reading nuxt.config.ts automatically
What we hope to do is not simply nuxt support. There are hundreds of active meta frameworks on the market. Relying entirely on Vite+ to handle the logic would be extremely centralized and difficult to maintain. (Even if doing so could reduce the likelihood of AI agents making mistakes)
Why does this matter, and why is this different from raw vite
In my opinion, Vite+ is the entry point of all development process, vp lint, vp check etc. For Nuxt users, vite cli is almost Invisible, because they have their own oxlint cli and may completely skip vite cli command. When developers and agents are already familiar with vp workflow, changing to nuxt or other cli is a significant change in habits.
- Lingua principale
- Rust
- Stelle
- 6.3k
- Fork
- 283
- Merge medio
- 1g 16h
- PR unite (30g)
- 214
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di voidzero-dev/vite-plus
-
pending triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
voidzero-dev/vite-plus#2882 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
voidzero-dev/vite-plus#2097 · 10 commenti · 2 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
defineConfig drops own properties of Promise plugins (breaks Vike discovery)Forse già presa @liangmiQwQ l’ha presa oggi. Apertabug
voidzero-dev/vite-plus#3152 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
vpx: watch reports for `vpx --watch`, and `vpx watch` on oxc-node's watcherForse già presa @fengmk2 l’ha presa 1 giorno fa. Aperta
voidzero-dev/vite-plus#3141 · 1 reazione · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Document cross-platform `FOO=bar cmd` in task commands and scriptsForse già presa @hyunbinseo l’ha presa 1 giorno fa. Apertadocumentation
voidzero-dev/vite-plus#3140 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di voidzero-dev/vite-plus
Issue simili
-
corro-client drops the last byte of a response line that has no trailing newlineForse già presa @RaphaelFakhri l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
proxy: include denial_category in the "proxy request denied" log lineForse già presa @sreyas-endor l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
nolabs-ai/nono#2172 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
metasequoiaime/msime#9113 ·
I maintainer di solito rispondono entro 1 giorno
-
area:desktop priority:p2 type:chore
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
area: supply-chain
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 73/100
I maintainer di solito rispondono entro 1 giorno