add support for Less + make compass available outside the Server class

did committed Apr 19, 2015
commit d4373db44b3544924f300c24c023e10c9f10e78f
Showing 5 changed files with 16 additions and 7 deletions
Gemfile.lock +12 -5
@@ @@ -21,6 +21,7 @@ PATH
rack_csrf (~> 2.5.0)
sanitize (~> 3.1.2)
sprockets (~> 2.12.3)
+ sprockets-less (~> 0.6.1)
sprockets-sass (~> 1.3.1)
GEM
@@ @@ -45,9 +46,10 @@ GEM
coffee-script (2.3.0)
coffee-script-source
execjs
- coffee-script-source (1.9.1)
- colorize (0.7.5)
+ coffee-script-source (1.9.1.1)
+ colorize (0.7.7)
columnize (0.9.0)
+ commonjs (0.2.7)
compass (1.0.3)
chunky_png (~> 1.2)
compass-core (~> 1.0.2)
@@ @@ -67,7 +69,7 @@ GEM
simplecov (~> 0.9.1)
term-ansicolor (~> 1.3)
thor (~> 0.19.1)
- crass (1.0.1)
+ crass (1.0.2)
daemons (1.1.9)
diff-lcs (1.2.5)
docile (1.1.5)
@@ @@ -76,7 +78,7 @@ GEM
multi_json (~> 1.0)
rack
eventmachine (1.0.4)
- execjs (2.4.0)
+ execjs (2.5.2)
ffi (1.9.8)
haml (4.0.6)
tilt
@@ @@ -94,6 +96,8 @@ GEM
multi_json (~> 1.0)
rspec (>= 2.0, < 4.0)
kramdown (1.6.0)
+ less (2.6.0)
+ commonjs (~> 0.2.7)
locomotivecms-liquid (4.0.0.alpha2)
locomotivecms-solid (4.0.0.alpha2)
locomotivecms-liquid (~> 4.0.0.alpha2)
@@ @@ -105,7 +109,7 @@ GEM
mime-types (2.4.3)
mimetype-fu (0.1.2)
mini_portile (0.6.2)
- minitest (5.5.1)
+ minitest (5.6.0)
moneta (0.8.0)
moped (2.0.4)
bson (~> 2.2)
@@ @@ -172,6 +176,9 @@ GEM
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
+ sprockets-less (0.6.1)
+ less (~> 2.4)
+ tilt (~> 1.1)
sprockets-sass (1.3.1)
sprockets (~> 2.0)
tilt (~> 1.1)
bin/steam.rb +1 -1
@@ @@ -22,7 +22,7 @@ OptionParser.new do |opts|
opts.banner = 'Usage: steam.rb [options]'
# Filesystem adapter
- opts.on('-p', '--path PATH', 'Serve a Wagon site from a path in your filesystem') do |path|
+ opts.on('--path PATH', 'Serve a Wagon site from a path in your filesystem') do |path|
options[:adapter][:path] = File.expand_path(path)
options[:asset_path] = File.expand_path(File.join(path, 'public'))
options[:database] = options[:hosts] = nil
locomotive/steam/initializers/sprockets.rb b/lib/locomotive/steam/initializers/sprockets.rb +2 -0
@@ @@ -1,6 +1,8 @@
require 'sprockets'
require 'sprockets-sass'
+ require 'sprockets-less'
require 'coffee_script'
+ require 'compass'
Sprockets::Sass.add_sass_functions = false
locomotive/steam/server.rb b/lib/locomotive/steam/server.rb +0 -1
@@ @@ -1,5 +1,4 @@
require 'haml'
- require 'compass'
require 'mimetype_fu'
require 'mime-types'
require 'mime/types'
locomotivecms_steam.gemspec +1 -0
@@ @@ -35,6 +35,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'sprockets', '~> 2.12.3'
spec.add_dependency 'sprockets-sass', '~> 1.3.1'
+ spec.add_dependency 'sprockets-less', '~> 0.6.1'
spec.add_dependency 'coffee-script', '~> 2.3.0'
spec.add_dependency 'compass', '~> 1.0.3'