Nx adapter: plan `nx run-many` commands for the selected projects

Aperta
#114 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
54/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Read src/planner/test-command.ts and use the Maven planner branch as the model; then check how profiles and runner detection work in src/ci-inference/resolve.ts. Add tests for the project-level plan, file-level plan, and executors that must run the whole project. Done when Nx planning and runner detection follow the described command shapes and the Nx refusal is removed for profiles with Nx projects.

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

Descrizione

adapter enhancement help wanted

Part of #111.

  • Add a profile field (for example nxProjects) and a planner branch in planSelectiveTestCommands (src/planner/test-command.ts). The Maven branch, which maps files to modules and emits -pl x,y -am, is the closest model.
  • Default: nx run-many -t test -p <projects>. Also nx run-many -t typecheck,lint -p <projects> when those targets exist.
  • Agent pre-push only: nx run <project>:test -- <files> for executors that accept file arguments (@nx/vite:test, @nx/jest:jest, nx:run-commands wrapping vitest or jest).
  • Remove the nx refusal in runsWorkspaceScripts when the profile has Nx projects, and name nx as a known runner in src/ci-inference/resolve.ts.
  • Tests: the command shape for a project-level plan, a file-level plan, and a project whose executor can't take files (runs whole).
Lingua principale
TypeScript
Stelle
0
Fork
4
Merge medio
18h 41m
PR unite (30g)
48

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DiffCI/core

Tutte le issue di DiffCI/core

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.