0.5.1 • Published 9 months ago
@hashicorp/design-system-codemods v0.5.1
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/**/*.hbsLocal 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/**/*.hbsTransforms
v3
v4
Contributing
Installation
- clone the repo
- change into the repo directory
yarn
Running tests
yarn test
Update documentation
yarn update-docs