diff --git a/rakefile b/rakefile index 1f60a18486..fb9fcd833b 100644 --- a/rakefile +++ b/rakefile @@ -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')