From d947b0ecc886a36f716f175d83b7e15b871322aa Mon Sep 17 00:00:00 2001 From: Will Daly Date: Mon, 12 Aug 2013 09:26:22 -0400 Subject: [PATCH] Coffee compile command now executes for just *.coffee items. This resolves an error that would sometimes occur on Mac OS X: "Error: EMFILE, too many open files" --- rakelib/assets.rake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rakelib/assets.rake b/rakelib/assets.rake index ccf9121695..6b2ce4bef5 100644 --- a/rakelib/assets.rake +++ b/rakelib/assets.rake @@ -30,7 +30,11 @@ def coffee_cmd(watch=false, debug=false) end end - "node_modules/.bin/coffee --compile #{watch ? '--watch' : ''} ." + if watch + "node_modules/.bin/coffee --compile --watch . " + else + "node_modules/.bin/coffee --compile `find . -name *.coffee` " + end end def sass_cmd(watch=false, debug=false)