Feature Request: Add Boilerplate Templates to rc-apps create

Offen
#181 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

@ShubhamS2005 arbeitet bereits daran.

Seit 17.3.2026.

  • #182 von @ShubhamS2005 — offen
  • #193 von @dwakshar — offen

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
typescript

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
49
Forks
40
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus RocketChat/Rocket.Chat.Apps-cli

Alle Issues in RocketChat/Rocket.Chat.Apps-cli

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.