find filename.js.coffee and move to filename.coffee
example: projects.js.coffee -> projects.coffee
$ for i in $(find . -name *.js.coffee); do mv ${i} ${i%.*.*}.coffee; done
install dependencies for coffee-asset-pipeline-comments:
$ npm install line-reader
convert single line comments to block comments (since coffeescript to js doesn't keep single line comments and we need them for the asset pipeline)
$ for i in $(find . -name "*.coffee"); do node coffee-asset-pipeline-comments.js ${i}; done
convert all coffeescript files to js
example: projects.coffee -> projects.js
$ for i in $(find . -name "*.coffee"); do coffee --no-header -cb ${i}; done
congrats, you should now have a caffeine free asset pipeline!
Thanks heaps for this man! Really useful for outdated rails 4 & ember projects!