Skip to content

Instantly share code, notes, and snippets.

@Stanback
Last active July 11, 2019 10:30
Show Gist options
  • Select an option

  • Save Stanback/3842c228c59c380233bd to your computer and use it in GitHub Desktop.

Select an option

Save Stanback/3842c228c59c380233bd to your computer and use it in GitHub Desktop.

Revisions

  1. Brian Stanback revised this gist Dec 1, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions coffee2js.sh
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@
    npm -g install coffee-script

    # Convert all coffeescript files to javascript
    find . -name "*.coffee" --exec coffee --no-header --bare -c {} \;
    find . -name "*.coffee" -exec coffee --no-header --bare -c {} \;

    # Optionally delete original coffee files
    find . -name "*.coffee" --exec rm {} \;
    find . -name "*.coffee" -exec rm {} \;
  2. Brian Stanback revised this gist Dec 1, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion coffee2js.sh
    Original file line number Diff line number Diff line change
    @@ -7,4 +7,4 @@ npm -g install coffee-script
    find . -name "*.coffee" --exec coffee --no-header --bare -c {} \;

    # Optionally delete original coffee files
    ind . -name "*.coffee" --exec rm {} \;
    find . -name "*.coffee" --exec rm {} \;
  3. Brian Stanback created this gist Dec 1, 2015.
    10 changes: 10 additions & 0 deletions coffee2js.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    #!/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
    ind . -name "*.coffee" --exec rm {} \;