Nx adapter: map files and test files to Nx projects from `nx graph`

Abierto
#112 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
56/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
node.js, typescript
Área
devtools, testing

Línea de trabajo

Start with the adapter interface in src/repo/adapters/types.ts and trace how repository adapters assign test files and package dependencies. Check how verify and observe --no-send handle repository analysis before deciding where the Nx graph can be used safely. Add a small Nx fixture with one inferred and one explicit test target; done means ownership and dependency edges are covered, and graph failures follow the stated blocker behavior.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

adapter enhancement help wanted

Part of #111.

  • Detect Nx: nx.json at the root and nx in the root manifest.
  • Run the repository's own Nx: node_modules/.bin/nx graph --file=<tmp>.json with NX_DAEMON=false, NX_NO_CLOUD=true and a timeout. Plugin-inferred targets (@nx/vite/plugin, @nx/jest/plugin) only exist after Nx evaluates its plugins, so reading project.json alone would miss them.
  • Running Nx executes plugin code. verify may do it. observe --no-send should use the graph only from a cache for the same tree, or with an explicit flag.
  • Contribute through the adapter interface (src/repo/adapters/types.ts):
    • project ownership of test files (testPackages, deepest project root wins);
    • implicitDependencies and Nx-detected project dependencies as package-level edges.
  • Blockers: Nx fails to produce a graph (global); a target with an executor DiffCI can't narrow (scoped to that project).
  • Fixture: a small Nx workspace with one inferred and one explicit test target.
Lenguaje dominante
TypeScript
Estrellas
0
Forks
4
Merge medio
18 h 41 min
PR fusionados (30 d)
48

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de DiffCI/core

Todos los issues de DiffCI/core

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.