Commit 0e87ada0 by Prem Sichanugrist

Do nested search for CoffeeScript compilation

parent 21734eb9
...@@ -24,6 +24,7 @@ import tempfile ...@@ -24,6 +24,7 @@ import tempfile
import os.path import os.path
import os import os
import errno import errno
import glob2
from path import path from path import path
############################ FEATURE CONFIGURATION ############################# ############################ FEATURE CONFIGURATION #############################
...@@ -183,8 +184,8 @@ for xmodule in XModuleDescriptor.load_classes() + [RawDescriptor]: ...@@ -183,8 +184,8 @@ for xmodule in XModuleDescriptor.load_classes() + [RawDescriptor]:
PIPELINE_JS = { PIPELINE_JS = {
'main': { 'main': {
'source_filenames': ['coffee/main.coffee', 'coffee/unit.coffee'], 'source_filenames': [pth.replace(PROJECT_ROOT / 'static/', '') for pth in glob2.glob(PROJECT_ROOT / 'static/coffee/src/**/*.coffee')],
'output_filename': 'js/main.js', 'output_filename': 'js/application.js',
}, },
'module-js': { 'module-js': {
'source_filenames': module_js_sources, 'source_filenames': module_js_sources,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment