# Use ember generate to generate, say, a component?

**URL:** <https://meta.discourse.org/t/use-ember-generate-to-generate-say-a-component/208677>\
**Category:** Development\
**Created:** [November 9, 2021, 2:32pm UTC](https://meta.discourse.org/t/use-ember-generate-to-generate-say-a-component/208677 "2021-11-09T14:32:33Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [November 9, 2021, 7:34pm UTC](https://meta.discourse.org/t/use-ember-generate-to-generate-say-a-component/208677/3 "2021-11-09T19:34:06Z")

</div>

Aha! `yarn` for the win!

> [@david](#):
>
> But I don’t think there’s an easy way to do that in a plugin directory.

Well, I just spent another 10 minutes trying, and I think you’re right. When I use the rails generator for a migration, I just move it from the discourse path into the plugin, so I guess the same approach might work.

> [@david](#):
>
> That’s how I do it as well ✂ 📋

I’m often relieved–and surprised–when I discover that the practices that I’ve adopted, in what seems like isolation, end up being the same practices used by people who Know What They Are Doing.

Thanks very much!

---

_[View the full topic](https://meta.discourse.org/t/use-ember-generate-to-generate-say-a-component/208677)._
