reactive-python / reactpy

It's React, but in Python
https://reactpy.dev
MIT License
7.89k stars 318 forks source link

Custom Component CLI #644

Open Archmonger opened 2 years ago

Archmonger commented 2 years ago

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, idom new_component <component_name>.

We most likely will implement this by using the setuptools script parameter.

Work Items

Archmonger commented 2 years ago

As this isn't a crucial feature, it'll be a v2 milestone goal.