Skip to content

Instantly share code, notes, and snippets.

@Stanback
Last active July 11, 2019 10:30
Show Gist options
  • Save Stanback/3842c228c59c380233bd to your computer and use it in GitHub Desktop.
Save Stanback/3842c228c59c380233bd to your computer and use it in GitHub Desktop.
Convert all CoffeeScript files to Javascript (coffee2js)
#!/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