[CLI] Skip interactive mapping phase using the configuration file

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

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
cli, developer-experience

Hướng nghiên cứu

Start by reading the connect command entry point and how it currently reads interactiveSetupFigmaFileUrl from the configuration. Trace the interactive discovery and mapping flow to identify which configuration shape could provide mapping decisions. Done means connect can use mappings from the config and skip the interactive mapping phase; the issue does not name specific files or tests.

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

Mô tả

feature request

When using the connect command I'd like to be able to skip the interactive mapping phase and directly provide my mapping decisions from the config file.

Rationale:

Right now the only parameter used by the connect command is interactiveSetupFigmaFileUrl.
However, for the vast majority of my components, I already know which node will be mapped to which file in my repository and asking for the acutal mapping is more of a confirmation than anything else. In the end going through the interactive discovery / mapping phase is not really required.

I know the connect command is not supposed to be run again and again but selecting the components to connect is cumbersome, time-consuming and may lead to configuration errors due to its interactive nature.

Ngôn ngữ chính
TypeScript
Star
1.6k
Fork
126
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 figma/code-connect

Tất cả issue của figma/code-connect

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.