Add ordering to dashboard stylesheets

This commit is contained in:
Piotr Sarnacki 2015-01-15 13:08:50 +01:00
parent f299aceb21
commit 4fae71a002
3 changed files with 7 additions and 2 deletions

View File

@ -79,7 +79,7 @@ input assets.styles do
match 'dashboard/**/*.{scss,sass,css}' do
sass assets.production? ? { style: :compressed } : {}
concat assets.styles_order, ['dashboard.css']
concat assets.dashboard_styles_order, ['dashboard.css']
end
end

View File

@ -10,7 +10,8 @@ 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(main/tools)
STYLES_ORDER = %w(app/main/tools)
DASHBOARD_STYLES_ORDER = %w(dashboard/foundation)
attr_reader :roots, :env
@ -40,6 +41,10 @@ module Travis
STYLES_ORDER.map { |name| "#{name}.css" }
end
def dashboard_styles_order
DASHBOARD_STYLES_ORDER.map { |name| "#{name}.css" }
end
def spec_vendor_order
SPEC_VENDOR_ORDER.map { |name| "spec/vendor/#{name}.js" }
end