Skip to content

feat: add --boilerplate option to rc-apps create command#182

Open
ShubhamS2005 wants to merge 1 commit intoRocketChat:masterfrom
ShubhamS2005:feature/add-create-boilerplate
Open

feat: add --boilerplate option to rc-apps create command#182
ShubhamS2005 wants to merge 1 commit intoRocketChat:masterfrom
ShubhamS2005:feature/add-create-boilerplate

Conversation

@ShubhamS2005
Copy link

Description

This PR adds support for a --boilerplate option in the rc-apps create command.

The flag allows developers to generate commonly used Rocket.Chat app components when creating a new app.

Supported boilerplates:

  • Slash Command
  • API Endpoint
  • Settings

Example:

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

This will generate a starter Slash Command template inside the created app.

Changes

  • Added --boilerplate flag to the create command
  • Integrated existing boilerplate templates
  • Added validation for supported boilerplate options
  • Automatically generates corresponding template files

Testing

Tested locally by creating apps with each boilerplate option:

rc-apps create --name=TestApp --boilerplate slash-command
rc-apps create --name=TestApp --boilerplate api-endpoint
rc-apps create --name=TestApp --boilerplate settings

All templates were generated correctly and packaging works as expected.

The Below image shows the creation of starter , using the boiler code
Screenshot 2026-03-17 231233

This PR automatically closes #181

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

1 participant