Merge pull request #353 from bhollis/minify
Minify all JS and CSS via middleware
This commit is contained in:
commit
cd89e5ffa4
16 changed files with 347 additions and 80 deletions
|
@ -68,10 +68,14 @@ Then /^I should see '([^\']*)'$/ do |expected|
|
|||
@browser.last_response.body.should include(expected)
|
||||
end
|
||||
|
||||
Then /^I should see:$/ do |expected|
|
||||
@browser.last_response.body.should include(expected)
|
||||
end
|
||||
|
||||
Then /^I should not see "([^\"]*)"$/ do |expected|
|
||||
@browser.last_response.body.should_not include(expected)
|
||||
end
|
||||
|
||||
Then /^I should see "([^\"]*)" lines$/ do |lines|
|
||||
@browser.last_response.body.chomp.split($/).length.should == lines.to_i
|
||||
end
|
||||
end
|
||||
|
|
|
@ -59,8 +59,9 @@ module Middleman::Templates
|
|||
return unless options[:bundler]
|
||||
template "shared/Gemfile.tt", File.join(location, "Gemfile")
|
||||
|
||||
say_status :run, "bundle install"
|
||||
print `cd #{location} && "#{Gem.ruby}" -rubygems "#{Gem.bin_path('bundler', 'bundle')}" install`
|
||||
inside(location) do
|
||||
run('bundle install', :capture => true)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue