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:
parent
73a88ca194
commit
307f8d8558
57
Gruntfile.js
57
Gruntfile.js
@ -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,29 +227,38 @@ module.exports = function(grunt) {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
properties : [
|
saveUnmodified: false,
|
||||||
|
plugins: [
|
||||||
{
|
{
|
||||||
name: 'swap-dashicons-left-right-arrows',
|
name: 'swap-dashicons-left-right-arrows',
|
||||||
expr: /content/im,
|
priority: 10,
|
||||||
action: function( prop, value ) {
|
directives: {
|
||||||
if ( value === '"\\f141"' ) { // dashicons-arrow-left
|
control: {},
|
||||||
value = '"\\f139"';
|
value: []
|
||||||
} else if ( value === '"\\f340"' ) { // dashicons-arrow-left-alt
|
},
|
||||||
value = '"\\f344"';
|
processors: [
|
||||||
} else if ( value === '"\\f341"' ) { // dashicons-arrow-left-alt2
|
{
|
||||||
value = '"\\f345"';
|
expr: /content/im,
|
||||||
} else if ( value === '"\\f139"' ) { // dashicons-arrow-right
|
action: function( prop, value ) {
|
||||||
value = '"\\f141"';
|
if ( value === '"\\f141"' ) { // dashicons-arrow-left
|
||||||
} else if ( value === '"\\f344"' ) { // dashicons-arrow-right-alt
|
value = '"\\f139"';
|
||||||
value = '"\\f340"';
|
} else if ( value === '"\\f340"' ) { // dashicons-arrow-left-alt
|
||||||
} else if ( value === '"\\f345"' ) { // dashicons-arrow-right-alt2
|
value = '"\\f344"';
|
||||||
value = '"\\f341"';
|
} else if ( value === '"\\f341"' ) { // dashicons-arrow-left-alt2
|
||||||
|
value = '"\\f345"';
|
||||||
|
} else if ( value === '"\\f139"' ) { // dashicons-arrow-right
|
||||||
|
value = '"\\f141"';
|
||||||
|
} else if ( value === '"\\f344"' ) { // dashicons-arrow-right-alt
|
||||||
|
value = '"\\f340"';
|
||||||
|
} else if ( value === '"\\f345"' ) { // dashicons-arrow-right-alt2
|
||||||
|
value = '"\\f341"';
|
||||||
|
}
|
||||||
|
return { prop: prop, value: value };
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return { prop: prop, value: value };
|
]
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
saveUnmodified: false
|
|
||||||
},
|
},
|
||||||
core: {
|
core: {
|
||||||
expand: true,
|
expand: true,
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user