I know this thread is far too old, but I stumbled upon this by coincidence, so for the record in case someone reads this again:
- I have a PR to support template transforms in
codemod-cli
, usingember-template-recast
that AFAICT does a decent job at preserving formatting, however when creating new AST nodes the formatting is usually not so perfect (i.e. violates ember-template-lint rules). The PR: Add support for template codemods by simonihmig · Pull Request #81 · rwjblue/codemod-cli · GitHub - Here is a codemod for templates and ember-bootstrap based on that that I recently worked on: GitHub - ember-bootstrap/ember-bootstrap-codemods: Codemods to ease upgrading of ember-bootstrap. So it’s possible (now), but certainly way too late for the OP, sorry!