AngelMunoz / Perla

A cross-platform tool for unbundled front-end development that doesn't depend on Node or requires you to install a complex toolchain
https://perla-docs.web.app/
MIT License
132 stars 11 forks source link

Generate Command #26

Closed AngelMunoz closed 2 years ago

AngelMunoz commented 3 years ago

Is your feature request related to a problem? Please describe. Running perla init generates the perla.json file and that's it, it doesn't generate any extra file that might be useful for a user

Describe the solution you'd like I'd love to see a generate command for the following scenarios

perla generate --kind <kind>

Optional

Although that can be added to the init command

Describe alternatives you've considered No file generation, it's not really required but it would ease user's time when starting a new project

AngelMunoz commented 2 years ago

Also think about adding scaffolding for fable projects

AngelMunoz commented 2 years ago

Current efforts for this are in https://github.com/AngelMunoz/Clam

Once there is an extensible mechanism for scaffolding (current one just copies everything as it is), we'll move the core bits into a separate project inside the Perla Repo

# Add a new repository
perla add AngelMunoz/perla-samples
# Generate a new project from that template
perla new -t perla-samples/lit-js -n samplix
AngelMunoz commented 2 years ago

Finally moved the clam project into #55 there's some preliminary support for the commands above

AngelMunoz commented 2 years ago

released at https://github.com/AngelMunoz/Perla/releases/tag/v0.18.0