Removing compiled js files in data directories before recompiling them; this causes compilation errors to fail loudly.

This commit is contained in:
Arjun Singh
2012-08-06 05:28:19 -04:00
parent 833e7777db
commit 869e638e07

View File

@@ -457,6 +457,7 @@ if os.path.isdir(DATA_DIR):
js_timestamp = os.stat(js_dir / new_filename).st_mtime
if coffee_timestamp <= js_timestamp:
continue
os.system("rm %s" % (js_dir / new_filename))
os.system("coffee -c %s" % (js_dir / filename))
PIPELINE_COMPILERS = [