From 43c933d527428dec975a6cfe7b4a6613a3eaee8d Mon Sep 17 00:00:00 2001 From: Niklas Bergius Date: Fri, 20 May 2011 11:17:57 +0200 Subject: [PATCH] Compile and Save --- Commands/Compile and Save.tmCommand | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Commands/Compile and Save.tmCommand diff --git a/Commands/Compile and Save.tmCommand b/Commands/Compile and Save.tmCommand new file mode 100644 index 0000000..7372c60 --- /dev/null +++ b/Commands/Compile and Save.tmCommand @@ -0,0 +1,28 @@ + + + + + name + Compile and Save + uuid + 2000D73F-02FB-4EF9-895E-02AFD1FE78B9 + input + none + output + showAsTooltip + command + #!/bin/bash +PATH=/usr/local/bin:/usr/bin:/bin:$PATH +newfile=`echo ${TM_FILEPATH} | sed "s/\.coffee$/.js/"` +${TM_COFFEE:=coffee} -cp --bare ${TM_FILEPATH} > $newfile +echo Coffe `${TM_COFFEE:=coffee} -v` +echo Coffee: "${TM_FILEPATH}" +echo Compiled to: $newfile + beforeRunningCommand + saveActiveFile + scope + source.coffee + keyEquivalent + @^$s + +