Last active
July 11, 2019 10:30
-
-
Save Stanback/3842c228c59c380233bd to your computer and use it in GitHub Desktop.
Convert all CoffeeScript files to Javascript (coffee2js)
This file contains 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 coffee-script | |
# Convert all coffeescript files to javascript | |
find . -name "*.coffee" -exec coffee --no-header --bare -c {} \; | |
# 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