Skip to content

Instantly share code, notes, and snippets.

@duhast
duhast / take-coffee.sh
Created April 14, 2014 23:19
Migrate Rails project from pure JavaScript to CoffeeScript
#!/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