diff --git a/clean.sh b/clean.sh new file mode 100755 index 0000000..a525e86 --- /dev/null +++ b/clean.sh @@ -0,0 +1,2 @@ +rm -rf node_modules +npm install js2coffee diff --git a/info.plist b/info.plist index 8652427..895ad9c 100644 --- a/info.plist +++ b/info.plist @@ -17,6 +17,17 @@ + 49D05FF3-C5C8-428E-8BC1-1E07FEA36F97 + + + destinationuid + 5F358966-DBE1-4D17-AF0C-F7302F1CF9E9 + modifiers + 0 + modifiersubtext + + + 87D2CF1D-75D9-4A7A-A6CF-FFA2C087BBB8 @@ -28,6 +39,17 @@ + B6AB55D8-B838-4504-B721-FC6BA81C41DC + + + destinationuid + 49D05FF3-C5C8-428E-8BC1-1E07FEA36F97 + modifiers + 0 + modifiersubtext + + + createdby Adam Simpson @@ -85,6 +107,50 @@ version 0 + + config + + lastpathcomponent + + onlyshowifquerypopulated + + output + 0 + removeextension + + sticky + + title + JS2Coffee Restored! + + type + alfred.workflow.output.notification + uid + 5F358966-DBE1-4D17-AF0C-F7302F1CF9E9 + version + 0 + + + config + + argumenttype + 2 + keyword + js2restore + subtext + Replaces existing installation of JS2Coffee with the latest from npm + text + Restore JS2Coffee + withspace + + + type + alfred.workflow.input.keyword + uid + B6AB55D8-B838-4504-B721-FC6BA81C41DC + version + 0 + config @@ -102,6 +168,23 @@ version 0 + + config + + escaping + 4 + script + ./clean.sh + type + 5 + + type + alfred.workflow.action.script + uid + 49D05FF3-C5C8-428E-8BC1-1E07FEA36F97 + version + 0 + readme @@ -112,16 +195,31 @@ ypos 10 + 49D05FF3-C5C8-428E-8BC1-1E07FEA36F97 + + ypos + 280 + + 5F358966-DBE1-4D17-AF0C-F7302F1CF9E9 + + ypos + 130 + 87D2CF1D-75D9-4A7A-A6CF-FFA2C087BBB8 ypos - 140 + 160 A46C50B0-7456-464C-B867-EF9934808B76 ypos 10 + B6AB55D8-B838-4504-B721-FC6BA81C41DC + + ypos + 130 + webaddress http://adamsimpson.net diff --git a/js2coffee.sh b/js2coffee.sh index 302fe5d..745c193 100755 --- a/js2coffee.sh +++ b/js2coffee.sh @@ -2,7 +2,7 @@ function convertToCoffee { PATH=$(npm bin):$PATH mkdir -p alfredtmp && cd alfredtmp pbpaste > tmp.js - js2coffee tmp.js > tmp.coffee + "$(npm bin)/js2coffee" tmp.js > tmp.coffee cat tmp.coffee | pbcopy cd ../ && rm -r alfredtmp } @@ -12,4 +12,4 @@ if [ -d "node_modules" ]; then else npm install js2coffee convertToCoffee -fi \ No newline at end of file +fi