Created
April 14, 2014 23:19
-
-
Save duhast/10689518 to your computer and use it in GitHub Desktop.
Migrate Rails project from pure JavaScript to CoffeeScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# install js2coffee first with `npm install js2coffee` | |
find ./app/assets/javascripts -iname "*.js" | \ | |
while read I; | |
do | |
`js2coffee ${I} > ${I}.coffee` | |
echo "$I has been coffefied" | |
`rm ${I}` | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment