Permalink
Browse files

Merge pull request #93 from jamiter/master

Add .litcoffee support.
  • Loading branch information...
2 parents f25b014 + 573a5ce commit 2e536c2a5c0f51917daf79905e94b419e6d1ac9b @iangreenleaf iangreenleaf committed Mar 20, 2013
Showing with 9 additions and 3 deletions.
  1. +9 −3 lib/supervisor.js
View
@@ -62,14 +62,20 @@ function run (args) {
if (!extensions) {
// If no extensions passed try to guess from the program
extensions = "node|js";
- if (programExt && extensions.indexOf(programExt) == -1)
- extensions += "|" + programExt;
+ if (programExt && extensions.indexOf(programExt) == -1) {
+ // Support coffee and litcoffee extensions
+ if(programExt === "coffee" || programExt === "litcoffee") {
+ extensions += "|coffee|litcoffee";
+ } else {
+ extensions += "|" + programExt;
+ }
+ }
}
extensions = extensions.replace(/,/g, "|");
fileExtensionPattern = new RegExp("^.*\.(" + extensions + ")$");
if (!executor) {
- executor = (programExt === "coffee") ? "coffee" : "node";
+ executor = (programExt === "coffee" || programExt === "litcoffee") ? "coffee" : "node";
}
if (debugFlag) {

0 comments on commit 2e536c2

Please sign in to comment.