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

Đang mở
#114 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
54/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ệ
typescript
Lĩnh vực
build-system, testing

Hướng nghiên cứu

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.

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.

  • 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).
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.