reactpy
reactpy copied to clipboard
Custom Component CLI
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
cookiecutteron the static template repo to start a new project
As this isn't a crucial feature, it'll be a v2 milestone goal.