reactpy icon indicating copy to clipboard operation
reactpy copied to clipboard

Custom Component CLI

Open Archmonger opened this issue 3 years ago • 0 comments
trafficstars

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

Archmonger avatar Feb 06 '22 02:02 Archmonger

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

Archmonger avatar Feb 06 '22 02:02 Archmonger