Skip to content

Instantly share code, notes, and snippets.

@francesko
francesko / compile_js2coffee_recursively
Last active August 29, 2015 14:15
compile js files to coffee looking recursively into subdirectories and outputting to given folder
#!/bin/bash
# requires https://www.npmjs.com/package/js2coffee
INPUT_FOLDER=$1
OUTPUT_FOLDER=$2
mkdir -p ${OUTPUT_FOLDER}
JS_FILE_LIST="`find ${INPUT_FOLDER} -type f -regex ".*\.\(js\)"`"