From b335bc9f209f7201aafd87595b8945115ba72269 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Thu, 8 Jan 2015 14:07:36 +0100 Subject: [PATCH] Allow to order stylesheets --- Assetfile | 2 +- lib/travis/assets.rb | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Assetfile b/Assetfile index 850cb709..60e700a4 100644 --- a/Assetfile +++ b/Assetfile @@ -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 diff --git a/lib/travis/assets.rb b/lib/travis/assets.rb index 27160a90..4c2f6998 100644 --- a/lib/travis/assets.rb +++ b/lib/travis/assets.rb @@ -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