Custom Component CLI

Offen
#644 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
git, javascript, python
Bereich
cli, tooling

Rechercherichtung

Start by reviewing the existing template repository and how ReactPy currently exposes user-facing commands. Move the template into ReactPy core, distribute it with the project, and add a command such as reactpy js_component <component_name> that invokes cookiecutter without requiring users to fetch the Git repository. Done means both work items are implemented and a custom component project can be generated through the CLI.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

priority-3-low
Current Situation

Currently, creating a custom component requires manual steps. Namely, the developer must use the template repository and pip install cookiecutter.

Since the template repo is a Git repo, you need to have git installed when you run cookiecutter to use the template. This is an unnecessary added dependency and barrier to entry.

Proposed Actions

Create a Command Line Interface (CLI) for creating custom components.

For example, Django has it's django-admin startproject <project_name> command for users. We could implement something similar. For example, reactpy js_component <component_name>.

Work Items
  • Move the template repo into ReactPy core and distribute the template repo with the project
  • Make a CLI that calls cookiecutter on the static template repo to start a new project
Vorherrschende Sprache
Python
Sterne
8.1k
Forks
332
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus reactive-python/reactpy

Alle Issues in reactive-python/reactpy

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.