diff options
author | Chris Rebert <code@rebertia.com> | 2014-03-06 23:37:32 +0400 |
---|---|---|
committer | Chris Rebert <code@rebertia.com> | 2014-03-07 00:31:28 +0400 |
commit | 56a5d93b821b547924858628eb7c2fc7518879ce (patch) | |
tree | a181459345a2520cd5ae5fb8715b04bda5d2425a /grunt | |
parent | af5a2197183754629a8ff09c23b043c3c9711a1f (diff) |
switch to grunt-css-flip for RTL CSS generation
Diffstat (limited to 'grunt')
-rw-r--r-- | grunt/tasks/css-flip.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/grunt/tasks/css-flip.js b/grunt/tasks/css-flip.js deleted file mode 100644 index 29cfb4038b..0000000000 --- a/grunt/tasks/css-flip.js +++ /dev/null @@ -1,27 +0,0 @@ -/*! - * Bootstrap Grunt task for generating RTL CSS from LTR CSS using css-flip - * http://getbootstrap.com - * Copyright 2014 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - */ -'use strict'; - -var flip = require('css-flip'); - - -module.exports = function(grunt) { - grunt.registerMultiTask('cssFlip', 'Generates RTL CSS from LTR CSS using css-flip', function () { - this.files.forEach(function (f) { - var unflippedCss = grunt.file.read(f.src); - var flippedCss = null; - try { - flippedCss = flip(unflippedCss); - } - catch (err) { - grunt.fail.warn(err); - } - grunt.file.write(f.dest, flippedCss); - grunt.log.writeln('File ' + f.dest.cyan + ' created.'); - }); - }); -}; |