ember-codemods / ember-angle-brackets-codemod

Codemod to convert curly braces syntax to angle brackets syntax
MIT License
60 stars 32 forks source link

Can I convert a single component at a time? #436

Closed kcarmonamurphy closed 3 years ago

kcarmonamurphy commented 3 years ago

I would like to use this codemod however I'm taking a piecemeal approach to conversion and doing it one component at a time, across all of the files in the repo. I can't find references in the docs for this kind of feature. Is it possible?

Example, i have a component called ui-text and I want to convert all instances of {{ui-text}} to <UiText /> across all files in my app. No other components should be converted.

tylerturdenpants commented 3 years ago

This would be possible if you populated the skipComponent feature. However this would be extremely tedious. Adding a config parameter to only change one component at a time could be implemented as the inverse of the skipComponent feature fairly easily. PR's are welcome!

kcarmonamurphy commented 3 years ago

PR posted: https://github.com/ember-codemods/ember-angle-brackets-codemod/pull/437 cc @tylerturdenpants

kcarmonamurphy commented 3 years ago

Closing this issue because PR was merged: https://github.com/ember-codemods/ember-angle-brackets-codemod/pull/437. Awaiting release of next version after v5.0.0 which should include these changes.

tylerturdenpants commented 3 years ago

I'm waiting on CI privileges to check the build and then I plan on releasing today. @rwjblue any ideas why I can't turn on the build in Travis for this? It says I don't have sufficient privileges.

rajasegar commented 3 years ago

@tylerturdenpants When I checked it said, the repository is not active, so I activated it, but the last build was 2 years ago as per their data. I think we should revive #239

tylerturdenpants commented 3 years ago

@rajasegar Absolutely. I will check in to that in the morning.