# Можно ли использовать компонент темы из локальной папки (как плагин) для локальной разработки?

**URL:** https://meta.discourse.org/t/is-it-possible-to-use-theme-component-from-local-folder-as-plugin-for-local-development/171983
**Category:** Development
**Created:** [02.Декабрь.2020 12:05:55 UTC](https://meta.discourse.org/t/is-it-possible-to-use-theme-component-from-local-folder-as-plugin-for-local-development/171983 "2020-12-02T12:05:55Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [02.Декабрь.2020 12:48:39 UTC](https://meta.discourse.org/t/is-it-possible-to-use-theme-component-from-local-folder-as-plugin-for-local-development/171983/2 "2020-12-02T12:48:39Z")

</div>

Конечно, вы можете использовать гем `discourse_theme`

> [@Install the Discourse Theme CLI console app to help you build themes](https://meta.discourse.org/t/discourse-theme-cli-console-app-to-help-you-build-themes/82950):
>
> The [[discourse] Discourse Theme CLI](https://github.com/discourse/discourse_theme) is a ruby gem that allows you to use your editor of choice when developing Discourse themes and theme components. As you save files the CLI will update the remote theme or component and changes to it will appear live! Installing To play with it, make sure you have Ruby 2.5 or up installed. If you are on Windows, you have 2 options: Option 1: [Windows Subsystem for Linux](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux). Windows 10 has access to a full Linux environment, you can use it to install …

Также есть руководство, которое поможет вам начать работу здесь

> [@Get started with Theme Creator and the Theme CLI](https://meta.discourse.org/t/beginners-guide-to-using-theme-creator-and-theme-cli-to-start-building-a-discourse-theme/108444):
>
> This topic will walk you through how to use the [Theme CLI](https://meta.discourse.org/t/discourse-theme-cli-console-app-to-help-you-build-themes/82950) with our [Theme Creator](https://meta.discourse.org/t/theme-creator-create-and-show-themes-without-installing-discourse/84942) site to develop a theme and preview your changes on a live Discourse site. [Sign up for an account here on Meta](https://meta.discourse.org/signup) if you haven’t already [Log in to Theme Creator](https://discourse.theme-creator.io/login) Install the Theme CLI via the [instructions here](https://meta.discourse.org/t/discourse-theme-cli-console-app-to-help-you-build-themes/82950) Create a new theme on Theme Creator by: Visiting [https://discourse.theme-creator.io/my/themes](https://discourse.theme-creator.io/my/themes) Clicking Install, and selecting the “Create New” option. Giving your theme a unique name (you can ignore…

---

_[View the full topic](https://meta.discourse.org/t/is-it-possible-to-use-theme-component-from-local-folder-as-plugin-for-local-development/171983)._
