Merge pull request #1205 from bhollis/lazy-v3
Avoid loading middleman-core unless needed (v3)
This commit is contained in:
commit
485cf1aed0
1
Gemfile
1
Gemfile
|
@ -24,7 +24,6 @@ platforms :ruby do
|
|||
gem 'therubyracer'
|
||||
gem 'redcarpet', '~> 3.1'
|
||||
gem 'pry', :require => false, :group => :development
|
||||
gem 'pry-debugger', :require => false, :group => :development
|
||||
end
|
||||
|
||||
platforms :jruby do
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
require 'middleman-core'
|
||||
require 'middleman-core/logger'
|
||||
|
||||
require 'fileutils'
|
||||
require 'set'
|
||||
|
||||
|
@ -50,6 +47,9 @@ module Middleman::Cli
|
|||
raise Thor::Error, 'Error: Could not find a Middleman project config, perhaps you are in the wrong folder?'
|
||||
end
|
||||
|
||||
require 'middleman-core'
|
||||
require 'middleman-core/logger'
|
||||
|
||||
# Use Rack::Test for inspecting a running server for output
|
||||
require 'rack'
|
||||
require 'rack/test'
|
||||
|
|
Loading…
Reference in a new issue