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

Đang mở
#112 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
56/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
node.js, typescript
Lĩnh vực
devtools, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
TypeScript
Star
0
Fork
4
Merge trung bình
18 giờ 41 phút
Pull request đã merge (30 ngày)
48

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DiffCI/core

Tất cả issue của DiffCI/core

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.