Feature Request: Add Boilerplate Templates to rc-apps create

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

@ShubhamS2005 đang làm issue này rồi.

Từ ngày 17/3/2026.

  • #182 của @ShubhamS2005 — đang mở
  • #193 của @dwakshar — đang mở

Đá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
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript
Lĩnh vực
cli, developer-experience

Hướng nghiên cứu

Start with the rc-apps create command and inspect the existing templates folder to understand how generated app files are selected and copied. Define how the --boilerplate option handles slash-command, api-endpoint, and settings, then verify that each selected option produces the corresponding template file in the new app.

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

Mô tả

Problem
When developers create a new Rocket.Chat app using the rc-apps create command, the generated project only contains the basic app structure. Developers often need to manually create common components such as:

  • Slash Commands
  • API Endpoints
  • App Settings

This requires additional manual setup and boilerplate code.

Proposed Solution

Add a --boilerplate flag to the create command that allows users to automatically generate common starter templates during app creation.

Example usage:

rc-apps create --name=MyApp --boilerplate slash-command

Supported options could include:

  • slash-command
  • api-endpoint
  • settings

The CLI would then generate the corresponding template file inside the newly created app.

Benefits

  • Reduces manual setup for developers
  • Improves developer experience
  • Helps new developers start building Rocket.Chat apps faster

Additional Notes

The boilerplate templates already exist in the repository under the templates folder, so the feature mainly connects them to the create command.

I would be happy to work on implementing this feature.

Ngôn ngữ chính
TypeScript
Star
49
Fork
40
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 RocketChat/Rocket.Chat.Apps-cli

Tất cả issue của RocketChat/Rocket.Chat.Apps-cli

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.