Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Scaffolding Overhaul #107

Merged
merged 19 commits into from
Apr 12, 2023
Merged

Scaffolding Overhaul #107

merged 19 commits into from
Apr 12, 2023

Conversation

AngelMunoz
Copy link
Owner

This PR addresses some of the issues found in #103, #95 and #102

It is mainly aimed to enrich template related operations from creating new projects to add and show information related to existing template in perla.

This also will help to improve the workflow related to create new projects e.g.

perla new sample --template-name AngelMunoz/perla-templates/fable-feliz
perla new sample -id perla.templates.fable.feliz
perla new sample -t ff

where -id is an android-like that should be a unique identifier for each template in a repository and ff is a short name defined in the template's configuration

These changes require a little bit more of work on the template authoring experience (writing a json file) but I think it is worth it.

Also as a new option, using perla new without flags features a wizard-like experience where it will show you the existing templates in the system and which one you can pick up, it will also share with you the short command syntax for the next time you create a project

perla new sample
ce759c83-9f5c-4799-a652-787c4096e233.mp4

Lastly we've refactored a bit the contents of the Commands and separated handlers from inputs and commands themselves so we can start testing that our inputs get parsed as we intend them to use
e.g. being able to parse add package -s esm.sh and ensure we can use -s esm.sh or -s unpkg or any other alternatives we support

@AngelMunoz AngelMunoz merged commit d97d397 into dev Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant