Skip to content

RFC: better swizzle cli #2984

@slorber

Description

@slorber

🚀 Feature

The swizzle cli experience works, but is a but rough and could be improved

Pitch

Here I'm using yarn workspace docusaurus-2-website swizzle ... in the screeshots (as I'm using D2 website for testing), but replace in your mind with yarn swizzle ...

Here are some suggestions


Display all the installed theme names with yarn swizzle, instead of:

image


On theme name typo, better error with theme name suggestions:

image


Do not swizzle the whole theme files with yarn swizzle @docusaurus/theme-classic, insead display available names to swizzle. (breaking change)

image


Typo on swizzle component name: same as theme, suggest valid names instead o:

image


Allow swizzling the whole theme files with an --all option: yarn swizzle @docusaurus/theme-classic --all

Metadata

Metadata

Assignees

No one assigned

    Labels

    mlhMajor League Hacking FellowshipproposalThis issue is a proposal, usually non-trivial change

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions