Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
elm-make one by one
# make sure every time only one file is re-compiled
echo "time\t\tlines\timports\tfile"
for f in `find src -name *.elm`
do
elm-make $f --output=/dev/null > /dev/null
sleep 1
touch $f
a=`wc -l $f | awk '{print $1}'`
b=`cat $f | grep -e "^import " -c`
c=`{ time elm-make $f --output=/dev/null ; } 2>&1 | grep real | awk '{print $2}'`
echo "$c\t$a\t$b\t$f"
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.