# 使用 \`create-discourse-plugin\` gem 自动化 Discourse 插件设置

**URL:** https://meta.discourse.org/t/automating-discourse-plugin-setup-with-create-discourse-plugin-gem/315013
**Category:** Developers
**Created:** [2024年七月4日 13:53 UTC](https://meta.discourse.org/t/automating-discourse-plugin-setup-with-create-discourse-plugin-gem/315013 "2024-07-04T13:53:41Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![gabriel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gabriel/32/367911_2.png) [@gabriel](https://meta.discourse.org/u/gabriel)
#### Post date: [2024年八月12日 20:22 UTC](https://meta.discourse.org/t/automating-discourse-plugin-setup-with-create-discourse-plugin-gem/315013/6 "2024-08-12T20:22:52Z")

</div>

> [@david](#):
>
> 你觉得把它作为一个 rake 任务整合到核心中怎么样？比如
> 
> ```plaintext
> bin/rake plugin:create
> 
> ```

我觉得有道理！大家已经测试过了，我也收到了一些抱怨和反馈并进行了一些调整。我认为它已经准备得很充分，可以正式发布了。我会在接下来的几天内努力将其添加到核心中。

我同意使用 gh 并不是理想的解决方案，我会想办法解决的。也许 `discourse_theme new` 的做法正是我想要的……

---

_[View the full topic](https://meta.discourse.org/t/automating-discourse-plugin-setup-with-create-discourse-plugin-gem/315013)._
