Skip to content

Instantly share code, notes, and snippets.

@kuatsure
Created January 17, 2017 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuatsure/dd9d184cd4c8d9336f68007925114c22 to your computer and use it in GitHub Desktop.
Save kuatsure/dd9d184cd4c8d9336f68007925114c22 to your computer and use it in GitHub Desktop.
for f in app/models/*;
do
NAME=${f##*/}
echo mkdir "app/pods/${NAME%.*}";
echo mv "$f" "app/pods/${NAME%.*}/model.js";
done;
@kuatsure
Copy link
Author

remove echos when you're ready to commit to change

@kuatsure
Copy link
Author

you may or may not have to adjust your imports ( relative linking and all that )

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