Commit fb28384d by Calen Pennington

Use local install of coffee

parent 4a397972
......@@ -93,7 +93,7 @@ end
def template_jasmine_runner(lib)
coffee_files = Dir["#{lib}/**/js/**/*.coffee", "common/static/coffee/src/**/*.coffee"]
if !coffee_files.empty?
sh("coffee -c #{coffee_files.join(' ')}")
sh("node_modules/.bin/coffee -c #{coffee_files.join(' ')}")
end
phantom_jasmine_path = File.expand_path("common/test/phantom-jasmine")
common_js_root = File.expand_path("common/static/js")
......@@ -128,7 +128,7 @@ def compile_assets(watch=false, debug=false)
--command='#{xmodule_cmd}' \
common/lib/xmodule"
end
coffee_cmd = "coffee #{watch ? '--watch' : ''} --compile */static"
coffee_cmd = "node_modules/.bin/coffee #{watch ? '--watch' : ''} --compile */static"
sass_cmd = "sass #{debug ? '--debug-info' : '--style compressed'} " +
"--load-path ./common/static/sass " +
"--require ./common/static/sass/bourbon/lib/bourbon.rb " +
......@@ -155,6 +155,20 @@ default_options = {
:cms => '8001',
}
task :install_prereqs => [:install_node_prereqs, :install_ruby_prereqs, :install_python_prereqs]
task :install_node_prereqs do
sh('npm install')
end
task :install_ruby_prereqs do
sh('bundle install')
end
task :install_python_prereqs do
sh('pip install -r requirements.txt')
end
task :predjango do
sh("find . -type f -name *.pyc -delete")
sh('pip install -q --no-index -r local-requirements.txt')
......
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