Build Tools: Update grunt-rtlcss ~1.6.0 → ~2.0.1.

This updates the underlying RTLCSS framework to 2.0 which provides new options and config settings, see https://github.com/MohammadYounes/rtlcss/blob/master/CHANGELOG.md#200---18-feb-2016.

See #35104.

Build: https://build.trac.wordpress.org/changeset/36903

git-svn-id: https://develop.svn.wordpress.org/trunk@36935 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2016-03-10 16:00:11 +00:00
parent 73a88ca194
commit 307f8d8558
2 changed files with 34 additions and 25 deletions

View File

@ -210,14 +210,14 @@ module.exports = function(grunt) {
rtlcss: { rtlcss: {
options: { options: {
// rtlcss options // rtlcss options
config: { opts: {
swapLeftRightInUrl: false, clean: false,
swapLtrRtlInUrl: false, processUrls: { atrule: true, decl: false },
autoRename: false,
preserveDirectives: true,
stringMap: [ stringMap: [
{ {
name: 'import-rtl-stylesheet', name: 'import-rtl-stylesheet',
priority: 10,
exclusive: true,
search: [ '.css' ], search: [ '.css' ],
replace: [ '-rtl.css' ], replace: [ '-rtl.css' ],
options: { options: {
@ -227,9 +227,17 @@ module.exports = function(grunt) {
} }
] ]
}, },
properties : [ saveUnmodified: false,
plugins: [
{ {
name: 'swap-dashicons-left-right-arrows', name: 'swap-dashicons-left-right-arrows',
priority: 10,
directives: {
control: {},
value: []
},
processors: [
{
expr: /content/im, expr: /content/im,
action: function( prop, value ) { action: function( prop, value ) {
if ( value === '"\\f141"' ) { // dashicons-arrow-left if ( value === '"\\f141"' ) { // dashicons-arrow-left
@ -248,8 +256,9 @@ module.exports = function(grunt) {
return { prop: prop, value: value }; return { prop: prop, value: value };
} }
} }
], ]
saveUnmodified: false }
]
}, },
core: { core: {
expand: true, expand: true,

View File

@ -28,7 +28,7 @@
"grunt-legacy-util": "^0.2.0", "grunt-legacy-util": "^0.2.0",
"grunt-patch-wordpress": "~0.3.0", "grunt-patch-wordpress": "~0.3.0",
"grunt-postcss": "~0.7.1", "grunt-postcss": "~0.7.1",
"grunt-rtlcss": "~1.6.0", "grunt-rtlcss": "~2.0.1",
"grunt-sass": "~1.1.0", "grunt-sass": "~1.1.0",
"matchdep": "~1.0.0" "matchdep": "~1.0.0"
} }