Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It would be nice to have donejs rename component #174

Open
Sinjhin opened this issue Jan 17, 2017 · 1 comment
Open

It would be nice to have donejs rename component #174

Sinjhin opened this issue Jan 17, 2017 · 1 comment

Comments

@Sinjhin
Copy link
Member

Sinjhin commented Jan 17, 2017

If someone suggests a better name for a modulet it would be a big time saver to have a quick way to rename the files and component tag.

@frank-dspeed
Copy link

frank-dspeed commented Jan 19, 2017

@Sinjhin

# Find all JS files and Replace old with new tag using : as seperator for sed
find . -type f -name '*.js' -exec  sed -i  's:my-component:mynext-component:g'  {} \;

# Mass Rename files replace myname with some parts of the filename to change
find . -name '*myname*' -exec bash -c 'mv $0 ${0/myname/newname}' {} \;

if you still think we should put that into the generator ping me but i think it can be simply copy pasted into own dotfiles or own bash script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants