-
-
Save burisu/a9daa438ba8f31591a71fa1976e9ab06 to your computer and use it in GitHub Desktop.
Convert all CoffeeScript files to Javascript (coffee2js)
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/sh | |
# Install coffeescript cli | |
npm -g install decaffeinate | |
# Convert all coffeescript files to javascript | |
find . -name "*.coffee" -exec decaffeinate --use-cs2 --disable-suggestion-comment {} \; | |
# Optionally delete original coffee files | |
find . -name "*.coffee" -exec rm {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment