Scripts to help upgrading from Ember 1.x to 2x
replace-bind-attr
: Replace bind-attrreplace-controller-needs
: Replace controller needsreplace-each
: Replace each syntaxreplace-binding-assignments
: Replace binding assignments in handlebars templates
command <file>
Commands will output the transformed contents to STDOUT.
You can process multiple files with something like this:
find . -iname '*.hbs*' -exec sh -c 'replace-bind-attr.rb "$1" | sponge "$1"' -- {} \;