Allow to order stylesheets
This commit is contained in:
parent
d2faa71acc
commit
b335bc9f20
|
@ -73,7 +73,7 @@ output 'public/styles'
|
|||
input assets.styles do
|
||||
match '**/*.{scss,sass,css}' do
|
||||
sass assets.production? ? { style: :compressed } : {}
|
||||
concat [], ['app.css']
|
||||
concat assets.styles_order, ['app.css']
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ module Travis
|
|||
VENDOR_ORDER = %w(jquery.min minispade handlebars ember)
|
||||
PRODUCTION_VENDOR_ORDER = %w(jquery.min minispade handlebars ember.prod)
|
||||
SPEC_VENDOR_ORDER = %w(jasmine jasmine-html jasmine-runner sinon)
|
||||
STYLES_ORDER = %w()
|
||||
|
||||
attr_reader :roots, :env
|
||||
|
||||
|
@ -35,6 +36,10 @@ module Travis
|
|||
order.map { |name| "vendor/#{name}.js" }
|
||||
end
|
||||
|
||||
def styles_order
|
||||
STYLES_ORDER.map { |name| "#{name}.css" }
|
||||
end
|
||||
|
||||
def spec_vendor_order
|
||||
SPEC_VENDOR_ORDER.map { |name| "spec/vendor/#{name}.js" }
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user