Allow to order stylesheets

This commit is contained in:
Piotr Sarnacki 2015-01-08 14:07:36 +01:00
parent d2faa71acc
commit b335bc9f20
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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