From 85865f9ad92b48d08717f93f49210e5bfd6631e5 Mon Sep 17 00:00:00 2001 From: Andrew Feng Date: Sat, 10 Aug 2013 00:22:05 +1000 Subject: [PATCH] add support for out directory setting --- CoffeeScript.py | 1 + CoffeeScript.sublime-settings | 1 + 2 files changed, 2 insertions(+) diff --git a/CoffeeScript.py b/CoffeeScript.py index 7cb5429..4a01603 100755 --- a/CoffeeScript.py +++ b/CoffeeScript.py @@ -68,6 +68,7 @@ def run(self, *args, **kwargs): args = ['-c', self.view.file_name()] if no_wrapper: args = ['-b'] + args + args = ['-o', settings.get('outDir', '.')] + args result = run("coffee", args=args) if result['okay'] is True: diff --git a/CoffeeScript.sublime-settings b/CoffeeScript.sublime-settings index 97cd80d..c0ae671 100644 --- a/CoffeeScript.sublime-settings +++ b/CoffeeScript.sublime-settings @@ -11,6 +11,7 @@ */ , "libDir": "" , "srcDir": "" +, "outDir": "." /* Compile without the top-level function wrapper (coffee -b).