Skip to content

Create a cli command for scaffolding out components #7360

@joshblack

Description

@joshblack

This issue falls under this KR

We would like to add a new command to @carbon/cli that our team, and others at IBM, could use to scaffold out a component. This scaffold should include a minimal set of conventions that we encourage for teams authoring components, in particular the folder scheme and test conventions.

In addition to generate a standalone folder as an option, this command should include a --lib option (or similarly named) for scaffolding out a component package. This option should be configurable for the following conventions:

  • Testing (Jest)
  • Building (Rollup)
  • Development (Storybook)
  • Linting (ESLint, StyleLint)
  • Commit hooks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions