From 24f97d29db6d7c425dc78a375b43440d99b1b634 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Mon, 22 Apr 2013 08:02:09 -0400 Subject: [PATCH] Add sass sourcemaps back into the debug build --- package.json | 5 +++++ rakefile | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 package.json diff --git a/package.json b/package.json new file mode 100644 index 0000000000..4ce95d04ce --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "name": "mitx", + "version": "0.1.0", + "dependencies": { "coffee-script": "1.6.x"} +} \ No newline at end of file diff --git a/rakefile b/rakefile index fa135844ff..ae5dab2bb8 100644 --- a/rakefile +++ b/rakefile @@ -119,7 +119,7 @@ def report_dir_path(dir) return File.join(REPORT_DIR, dir.to_s) end -def compile_assets(watch=false) +def compile_assets(watch=false, debug=false) xmodule_cmd = 'xmodule_assets common/static/xmodule' if watch xmodule_cmd = "watchmedo shell-command \ @@ -129,7 +129,7 @@ def compile_assets(watch=false) common/lib/xmodule" end coffee_cmd = "coffee #{watch ? '--watch' : ''} --compile */static" - sass_cmd = "sass --style compressed " + + sass_cmd = "sass #{debug ? '--debug-info' : '--style compressed'} " + "--load-path ./common/static/sass " + "--require ./common/static/sass/bourbon/lib/bourbon.rb " + "#{watch ? '--watch' : '--update --force'} */static" @@ -245,8 +245,8 @@ end desc task system, [:env, :options] => [:predjango] do |t, args| args.with_defaults(:env => 'dev', :options => default_options[system]) - compile_assets(watch=false) - compile_assets(watch=true) + compile_assets(watch=false, debug=true) + compile_assets(watch=true, debug=true) sh(django_admin(system, args.env, 'runserver', args.options)) end