We’re converting a large app from using the bootstrap jQuery plugins to use ember-bootstrap instead. There are hundreds of tooltips and other bootstrap components littered throughout the code base, so we wanted to try using a codemod to automate converting the files if possible.
I’ve seen lots of examples of how to us jscodeshift to modify the .js files in an ember app, but haven’t found any examples of codemods that work on .hbs templates. I was able to use w/ ASTExplorer to parse .hbs content and remove things like
However, I’m not sure how to add new handlebars nodes like
Any pointers in the right direction would be greatly appreciated.