Skip to content

Build playground options automatically #3352

@duailibe

Description

@duailibe

Recently after every a new option or a new language we have to manually add it to playground. @suchipi suggested building the HTML automatically and that would be nice. I've created this issue just so we don't forget it.

To keep in mind: we are now using the dist code to bundle the playground so we don't have access to the cli-constant.js at this point. We could get it from src/ but that would mean exposing unsupported options. Another options is having a similar getSupportInfo but for options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:playgroundIssues about the playground (https://prettier.io/playground)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.status:needs discussionIssues needing discussion and a decision to be made before action can be takentype:infraIssues about CI, publishing to npm, or similar

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions