mantrajs / mantra-cli

Command line interface for building Meteor apps with Mantra
MIT License
135 stars 34 forks source link

Feature Request: rename #90

Open PolGuixe opened 8 years ago

PolGuixe commented 8 years ago

It would be handy to have a possibility to rename certain modules, containers, components, etc. Doing it manually tends to produce human errors :)

sungwoncho commented 8 years ago

There were definitely moments when I thought such feature would be useful. I suppose we can add a command:

mantra rename [type] [original name] [new name]

For each types, we will need to change:

Changing variable names is kind of tricky. Currently we are using this function, but I have seen some edge cases. We need more thorough testing.

I think it is not an easy feature, but is worth implementing.

PolGuixe commented 8 years ago

Let me know if you need help implementing it or testing it

macrozone commented 7 years ago

This would be indeed very handy, though, its not completly trivial. Maybe we should start with renaming all files and imports (that's the easy part). Changing variable names is more tricky, as @sungwoncho stated.

oracle000 commented 7 years ago

+1 for this. Renaming component, container or other types would be a great feature