diff options
author | Gleb Mazovetskiy <glex.spb@gmail.com> | 2013-12-21 02:16:03 +0400 |
---|---|---|
committer | Gleb Mazovetskiy <glex.spb@gmail.com> | 2013-12-21 02:20:01 +0400 |
commit | f076f64a4a3524f6791a1d04e63a9ed107ea919a (patch) | |
tree | 94803263ee1ddfc9f62ceded4c0763cace1ac395 /Rakefile | |
parent | f12cfb1a7088e4321875397ca53dd8674ddc2ca1 (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-- | Rakefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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)' |