Skip to content

Commit

Permalink
rake file will now produce an unminfied "latest"
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickarlt committed Dec 21, 2011
1 parent b76d379 commit 82873f9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Rakefile
Expand Up @@ -9,10 +9,11 @@ rescue Bundler::BundlerError => e
end
require 'rake'

VERSION = "1.2.2"
VERSION = "1.2.3"
BOOTSTRAP_CSS = "bootstrap-#{VERSION}.css"
BOOTSTRAP_MIN_CSS = "bootstrap-#{VERSION}.min.css"
BOOTSTRAP_LATEST = "bootstrap-latest.min.css"
BOOTSTRAP_LATEST = "bootstrap-latest.css"
BOOTSTRAP_MIN_LATEST = "bootstrap-latest.min.css"

SASS_COMMAND = "sass --load-path lib --style"

Expand All @@ -27,12 +28,16 @@ task BOOTSTRAP_MIN_CSS do |target|
sh "#{SASS_COMMAND} compressed lib/bootstrap.scss:#{target}"
end

task BOOTSTRAP_LATEST do |target|
task BOOTSTRAP_MIN_LATEST do |target|
sh "#{SASS_COMMAND} compressed lib/bootstrap.scss:#{target}"
end

task BOOTSTRAP_LATEST do |target|
sh "#{SASS_COMMAND} expanded lib/bootstrap.scss:#{target}"
end

desc "build regular and compresed versions of bootstrap"
task :build => [BOOTSTRAP_CSS, BOOTSTRAP_MIN_CSS, BOOTSTRAP_LATEST]
task :build => [BOOTSTRAP_CSS, BOOTSTRAP_MIN_CSS, BOOTSTRAP_LATEST, BOOTSTRAP_MIN_LATEST]

desc "rebuild regular version of bootstrap when modifications are made"
task :watch do
Expand Down

0 comments on commit 82873f9

Please sign in to comment.