Ticket #26669: 26669-gruntfile.diff
File 26669-gruntfile.diff, 1.7 KB (added by , 11 years ago) |
---|
-
Gruntfile.js
65 65 } 66 66 ] 67 67 }, 68 rtl: { 69 options: { 70 processContent: function( src ) { 71 return src.replace( /\.css/g, '-rtl.css' ); 72 } 73 }, 74 files: [ 75 { 76 src: SOURCE_DIR + 'wp-admin/css/wp-admin.css', 77 dest: BUILD_DIR + 'wp-admin/css/wp-admin-rtl.css' 78 } 79 ] 80 }, 68 81 version: { 69 82 options: { 70 83 processContent: function( src ) { … … 114 127 dest: BUILD_DIR, 115 128 ext: '.min.css', 116 129 src: [ 117 'wp-admin/css/*.css', 130 'wp-admin/css/wp-admin.css', 131 'wp-admin/css/color-picker.css', 132 'wp-admin/css/customize-controls.css', 133 'wp-admin/css/deprecated-media.css', 134 'wp-admin/css/ie.css', 135 'wp-admin/css/install.css', 118 136 'wp-includes/css/*.css', 119 // Exceptions120 '!wp-admin/css/farbtastic.css'121 137 ] 122 138 }, 123 139 rtl: { … … 126 142 dest: BUILD_DIR, 127 143 ext: '.min.css', 128 144 src: [ 129 'wp-admin/css/*-rtl.css', 145 'wp-admin/css/wp-admin-rtl.css', 146 'wp-admin/css/color-picker-rtl.css', 147 'wp-admin/css/customize-controls-rtl.css', 148 'wp-admin/css/deprecated-media-rtl.css', 149 'wp-admin/css/ie-rtl.css', 150 'wp-admin/css/install-rtl.css', 130 151 'wp-includes/css/*-rtl.css' 131 152 ] 132 153 }, … … 391 412 // Register tasks. 392 413 393 414 // Copy task. 394 grunt.registerTask('copy:all', ['copy:files', 'copy: version']);415 grunt.registerTask('copy:all', ['copy:files', 'copy:rtl', 'copy:version']); 395 416 396 417 // RTL task. 397 418 grunt.registerTask('rtl', ['cssjanus:core', 'cssjanus:colors']);