0.2.0 • Published 2 months ago

@hashicorp/design-system-codemods v0.2.0

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
2 months ago

codemods

A collection of codemods for Helios components.

Usage

To run a specific codemod (for example the v3/dropdown) in your project using npx, you would run the following:

npx @hashicorp/design-system-codemods v3/dropdown path/to/some/glob/**/*.hbs

Local usage

To run a specific codemod (for example the v3/dropdown) in this repository (even before publishing it), you would run the following from the root directory of this repository:

node ./packages/codemods/bin/cli.js v3/dropdown path/to/some/glob/**/*.hbs

Transforms

v3

v4

Contributing

Installation

  • clone the repo
  • change into the repo directory
  • yarn

Running tests

  • yarn test

Update documentation

  • yarn update-docs