Make WordPress Core

Changeset 36935


Ignore:
Timestamp:
03/10/2016 04:00:11 PM (10 years ago)
Author:
ocean90
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r36930 r36935  
    211211                        options: {
    212212                                // rtlcss options
    213                                 config: {
    214                                         swapLeftRightInUrl: false,
    215                                         swapLtrRtlInUrl: false,
    216                                         autoRename: false,
    217                                         preserveDirectives: true,
     213                                opts: {
     214                                        clean: false,
     215                                        processUrls: { atrule: true, decl: false },
    218216                                        stringMap: [
    219217                                                {
    220218                                                        name: 'import-rtl-stylesheet',
     219                                                        priority: 10,
     220                                                        exclusive: true,
    221221                                                        search: [ '.css' ],
    222222                                                        replace: [ '-rtl.css' ],
     
    228228                                        ]
    229229                                },
    230                                 properties : [
     230                                saveUnmodified: false,
     231                                plugins: [
    231232                                        {
    232233                                                name: 'swap-dashicons-left-right-arrows',
    233                                                 expr: /content/im,
    234                                                 action: function( prop, value ) {
    235                                                         if ( value === '"\\f141"' ) { // dashicons-arrow-left
    236                                                                 value = '"\\f139"';
    237                                                         } else if ( value === '"\\f340"' ) { // dashicons-arrow-left-alt
    238                                                                 value = '"\\f344"';
    239                                                         } else if ( value === '"\\f341"' ) { // dashicons-arrow-left-alt2
    240                                                                 value = '"\\f345"';
    241                                                         } else if ( value === '"\\f139"' ) { // dashicons-arrow-right
    242                                                                 value = '"\\f141"';
    243                                                         } else if ( value === '"\\f344"' ) { // dashicons-arrow-right-alt
    244                                                                 value = '"\\f340"';
    245                                                         } else if ( value === '"\\f345"' ) { // dashicons-arrow-right-alt2
    246                                                                 value = '"\\f341"';
     234                                                priority: 10,
     235                                                directives: {
     236                                                        control: {},
     237                                                        value: []
     238                                                },
     239                                                processors: [
     240                                                        {
     241                                                                expr: /content/im,
     242                                                                action: function( prop, value ) {
     243                                                                        if ( value === '"\\f141"' ) { // dashicons-arrow-left
     244                                                                                value = '"\\f139"';
     245                                                                        } else if ( value === '"\\f340"' ) { // dashicons-arrow-left-alt
     246                                                                                value = '"\\f344"';
     247                                                                        } else if ( value === '"\\f341"' ) { // dashicons-arrow-left-alt2
     248                                                                                value = '"\\f345"';
     249                                                                        } else if ( value === '"\\f139"' ) { // dashicons-arrow-right
     250                                                                                value = '"\\f141"';
     251                                                                        } else if ( value === '"\\f344"' ) { // dashicons-arrow-right-alt
     252                                                                                value = '"\\f340"';
     253                                                                        } else if ( value === '"\\f345"' ) { // dashicons-arrow-right-alt2
     254                                                                                value = '"\\f341"';
     255                                                                        }
     256                                                                        return { prop: prop, value: value };
     257                                                                }
    247258                                                        }
    248                                                         return { prop: prop, value: value };
    249                                                 }
    250                                         }
    251                                 ],
    252                                 saveUnmodified: false
     259                                                ]
     260                                        }
     261                                ]
    253262                        },
    254263                        core: {
  • trunk/package.json

    r36906 r36935  
    2929    "grunt-patch-wordpress": "~0.3.0",
    3030    "grunt-postcss": "~0.7.1",
    31     "grunt-rtlcss": "~1.6.0",
     31    "grunt-rtlcss": "~2.0.1",
    3232    "grunt-sass": "~1.1.0",
    3333    "matchdep": "~1.0.0"
Note: See TracChangeset for help on using the changeset viewer.