From b9a5a0460dbc5f11cee84d9825ccb1addfa59e15 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 23 Jul 2013 13:17:42 -0400 Subject: [PATCH] Have JSHint depend on the files it includes. Doesn't work for adding files but it helps a lot in development mode. --- test/javascripts/jshint_all.js.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/javascripts/jshint_all.js.erb b/test/javascripts/jshint_all.js.erb index 1f12744a8..3854f883e 100644 --- a/test/javascripts/jshint_all.js.erb +++ b/test/javascripts/jshint_all.js.erb @@ -165,6 +165,8 @@ var jsHintOpts = { ok = false if (filename =~ ig) end + depend_on filename + result << "qHint('#{filename}', '/assets/#{filename}', jsHintOpts);\n" if ok end