Skip to content

feat: add --boilerplate flag to rc-apps create command#193

Open
dwakshar wants to merge 2 commits intoRocketChat:masterfrom
dwakshar:master
Open

feat: add --boilerplate flag to rc-apps create command#193
dwakshar wants to merge 2 commits intoRocketChat:masterfrom
dwakshar:master

Conversation

@dwakshar
Copy link
Copy Markdown

What does this PR do?

Adds a --boilerplate flag to the rc-apps create command that allows developers to automatically generate common starter templates when creating a new Rocket.Chat app.

Motivation

Currently, after running rc-apps create, developers have to manually write slash commands, API endpoints, and settings from scratch. This PR connects the existing templates in the repo to the create command, reducing boilerplate setup time especially for new contributors.

How to use

# Generate a single template
rc-apps create --name=MyApp --boilerplate slash-command

# Generate multiple templates
rc-apps create --name=MyApp --boilerplate slash-command --boilerplate settings

# All supported options
--boilerplate slash-command
--boilerplate api-endpoint
--boilerplate settings

Changes made

  • Added --boilerplate flag (with multiple: true) to src/commands/create.ts
  • Created src/misc/BoilerplateCreator.ts — handles template generation logic
  • Exported BoilerplateCreator from src/misc/index.ts

Testing

Tested locally by running:

node bin/run create --name=TestApp --boilerplate slash-command

Confirmed SlashCommand.ts was generated inside the new app folder.

Screenshots

Screenshot 2026-04-22 160144 Screenshot 2026-04-22 160304

Related issue

Closes #181

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 22, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add Boilerplate Templates to rc-apps create

2 participants