mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-25 18:51:30 +00:00
23 lines
419 B
Text
23 lines
419 B
Text
|
#!/bin/bash
|
||
|
set -e;
|
||
|
|
||
|
COFFEE=node_modules/.bin/coffee
|
||
|
|
||
|
echo Compiling app.coffee;
|
||
|
$COFFEE -c app.coffee;
|
||
|
|
||
|
echo Compiling app/coffee;
|
||
|
$COFFEE -o app/js -c app/coffee;
|
||
|
|
||
|
for dir in modules/*;
|
||
|
do
|
||
|
if [ -d $dir/app/coffee ]; then
|
||
|
echo Compiling $dir/app/coffee;
|
||
|
$COFFEE -o $dir/app/js -c $dir/app/coffee;
|
||
|
fi
|
||
|
|
||
|
if [ -e $dir/index.coffee ]; then
|
||
|
echo Compiling $dir/index.coffee;
|
||
|
$COFFEE -c $dir/index.coffee;
|
||
|
fi
|
||
|
done
|