vault/ui/scripts/codemods
Vault Automation 0c6c13dd38
license: update headers to IBM Corp. (#10229) (#10233)
* license: update headers to IBM Corp.
* `make proto`
* update offset because source file changed

Signed-off-by: Ryan Cragun <me@ryan.ec>
Co-authored-by: Ryan Cragun <me@ryan.ec>
2025-10-21 15:20:20 -06:00
..
hds license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
dropdown-transform.js license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
icon-transform.js license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
inject-service.js license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
jscodeshift-babylon-parser.js license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
linkto-with-on-modifier.js license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
no-quoteless-attributes.js license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
README.md Ember Upgrade to 3.24 (#13443) 2021-12-16 20:44:29 -07:00
transform-deprecated-args.js license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00

Running Codemods

The handlebars codemods use ember-template-recast and can be run with the following:

  • navigate to the UI directory of the Vault project
  • execute npx ember-template-recast "**/*.hbs" -t ./path/to/transform-file.js

This will run the transform on all .hbs files within the ui directory which covers the app and all addons. The terminal will output the number of files processed as well as the number of changed, unchanged, skipped and errored files. It's a good idea to validate the output to ensure that the intended transforms have taken place. If there are issues with some of the files, simply revert the changes via git, tweak the codemod and run again.

Example

npx ember-template-recast "**/*.hbs" -t ./scripts/codemods/no-quoteless-attributes.js