Remove grunt-autoprefixer in favor of grunt-postcss with autoprefixer

grunt-autoprefixer was deprecated - e020f878d5
None of the autoprefixer tasks should have been called directly, so they are now removed.  `grunt precommit` and `grunt build` still work exactly as they should.  This change doesn't affect the output of our builds.

An NPM install is required after you have updated after this change.

See 
Props netweb



git-svn-id: https://develop.svn.wordpress.org/trunk@33129 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Aaron Jorbin 2015-07-08 19:53:22 +00:00
parent 6cfda41066
commit f86fd644e1
2 changed files with 12 additions and 6 deletions

@ -3,6 +3,7 @@ module.exports = function(grunt) {
var path = require('path'),
SOURCE_DIR = 'src/',
BUILD_DIR = 'build/',
autoprefixer = require('autoprefixer-core'),
mediaConfig = {},
mediaBuilds = ['audiovideo', 'grid', 'models', 'views'];
@ -19,10 +20,14 @@ module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
autoprefixer: {
postcss: {
options: {
processors: [
autoprefixer({
browsers: ['Android >= 2.1', 'Chrome >= 21', 'Explorer >= 7', 'Firefox >= 17', 'Opera >= 12.1', 'Safari >= 6.0'],
cascade: false
})
]
},
core: {
expand: true,
@ -577,7 +582,7 @@ module.exports = function(grunt) {
grunt.registerTask('rtl', ['rtlcss:core', 'rtlcss:colors']);
// Color schemes task.
grunt.registerTask('colors', ['sass:colors', 'autoprefixer:colors']);
grunt.registerTask('colors', ['sass:colors', 'postcss:colors']);
// JSHint task.
grunt.registerTask( 'jshint:corejs', [
@ -606,7 +611,7 @@ module.exports = function(grunt) {
} );
grunt.registerTask( 'precommit', 'Runs front-end dev/test tasks in preparation for a commit.', [
'autoprefixer:core',
'postcss:core',
'imagemin:core',
'browserify',
'jshint:corejs',

@ -9,8 +9,8 @@
"author": "The WordPress Contributors",
"license": "GPL-2.0+",
"devDependencies": {
"autoprefixer-core": "~5.2.1",
"grunt": "~0.4.5",
"grunt-autoprefixer": "~3.0.0",
"grunt-browserify": "~3.8.0",
"grunt-contrib-clean": "~0.6.0",
"grunt-contrib-compress": "~0.13.0",
@ -26,6 +26,7 @@
"grunt-jsvalidate": "~0.2.2",
"grunt-legacy-util": "^0.2.0",
"grunt-patch-wordpress": "~0.3.0",
"grunt-postcss": "~0.5.4",
"grunt-rtlcss": "~1.6.0",
"grunt-sass": "~1.0.0",
"matchdep": "~0.3.0"