Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-sass.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Mazovetskiy <glex.spb@gmail.com>2013-12-21 02:16:03 +0400
committerGleb Mazovetskiy <glex.spb@gmail.com>2013-12-21 02:20:01 +0400
commitf076f64a4a3524f6791a1d04e63a9ed107ea919a (patch)
tree94803263ee1ddfc9f62ceded4c0763cace1ac395 /Rakefile
parentf12cfb1a7088e4321875397ca53dd8674ddc2ca1 (diff)
Minor refactorings and rake less_to_scss
less_to_scss: $ echo '.p { #gradient > .horizontal(red,blue) }' | rake less_to_scss[master] .p { @include gradient-horizontal(red,blue) }
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 90158b23..e12012dd 100644
--- a/Rakefile
+++ b/Rakefile
@@ -19,8 +19,13 @@ end
desc 'Convert bootstrap to bootstrap-sass'
task :convert, :branch do |t, args|
require './tasks/converter'
- branch = args[:branch]
- Converter.new(branch).process
+ Converter.new(branch: args[:branch]).process_bootstrap
+end
+
+desc 'LESS to stdin -> Sass to stdout'
+task :less_to_scss, :branch do |t, args|
+ require './tasks/converter'
+ puts Converter.new(branch: args[:branch]).convert_less(STDIN.read)
end
desc 'Compile bootstrap-sass to tmp/ (or first arg)'