Ticket #31700: 31700.2.diff
File 31700.2.diff, 2.2 KB (added by , 10 years ago) |
---|
-
Gruntfile.js
4 4 SOURCE_DIR = 'src/', 5 5 BUILD_DIR = 'build/', 6 6 mediaConfig = {}, 7 mediaBuilds = ['audiovideo', 'grid', 'models', 'views']; 7 mediaBuilds = ['audiovideo', 'grid', 'models', 'views'], 8 autoprefixer = require('autoprefixer-core'); 8 9 9 10 // Load tasks. 10 11 require('matchdep').filterDev(['grunt-*', '!grunt-legacy-util']).forEach( grunt.loadNpmTasks ); … … 19 20 20 21 // Project configuration. 21 22 grunt.initConfig({ 22 autoprefixer: {23 postcss: { 23 24 options: { 24 browsers: ['Android >= 2.1', 'Chrome >= 21', 'Explorer >= 7', 'Firefox >= 17', 'Opera >= 12.1', 'Safari >= 6.0'], 25 cascade: false 25 processors: [ 26 autoprefixer({ 27 browsers: ['Android >= 2.1', 'Chrome >= 21', 'Explorer >= 7', 'Firefox >= 17', 'Opera >= 12.1', 'Safari >= 6.0'], 28 cascade: false 29 }) 30 ] 26 31 }, 27 32 core: { 28 33 expand: true, … … 577 582 grunt.registerTask('rtl', ['rtlcss:core', 'rtlcss:colors']); 578 583 579 584 // Color schemes task. 580 grunt.registerTask('colors', ['sass:colors', ' autoprefixer:colors']);585 grunt.registerTask('colors', ['sass:colors', 'postcss:colors']); 581 586 582 587 // JSHint task. 583 588 grunt.registerTask( 'jshint:corejs', [ … … 606 611 } ); 607 612 608 613 grunt.registerTask( 'precommit', 'Runs front-end dev/test tasks in preparation for a commit.', [ 609 ' autoprefixer:core',614 'postcss:core', 610 615 'imagemin:core', 611 616 'browserify', 612 617 'jshint:corejs', -
package.json
9 9 "author": "The WordPress Contributors", 10 10 "license": "GPL-2.0+", 11 11 "devDependencies": { 12 "autoprefixer-core": "~5.2.1", 12 13 "grunt": "~0.4.5", 13 "grunt-autoprefixer": "~3.0.0",14 14 "grunt-browserify": "~3.8.0", 15 15 "grunt-contrib-clean": "~0.6.0", 16 16 "grunt-contrib-compress": "~0.13.0", … … 26 26 "grunt-jsvalidate": "~0.2.2", 27 27 "grunt-legacy-util": "^0.2.0", 28 28 "grunt-patch-wordpress": "~0.3.0", 29 "grunt-postcss": "^0.5.4", 29 30 "grunt-rtlcss": "~1.6.0", 30 31 "grunt-sass": "~1.0.0", 31 32 "matchdep": "~0.3.0"