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 #31700
Props netweb
git-svn-id: https://develop.svn.wordpress.org/trunk@33129 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6cfda41066
commit
f86fd644e1
15
Gruntfile.js
15
Gruntfile.js
@ -3,6 +3,7 @@ module.exports = function(grunt) {
|
|||||||
var path = require('path'),
|
var path = require('path'),
|
||||||
SOURCE_DIR = 'src/',
|
SOURCE_DIR = 'src/',
|
||||||
BUILD_DIR = 'build/',
|
BUILD_DIR = 'build/',
|
||||||
|
autoprefixer = require('autoprefixer-core'),
|
||||||
mediaConfig = {},
|
mediaConfig = {},
|
||||||
mediaBuilds = ['audiovideo', 'grid', 'models', 'views'];
|
mediaBuilds = ['audiovideo', 'grid', 'models', 'views'];
|
||||||
|
|
||||||
@ -19,10 +20,14 @@ module.exports = function(grunt) {
|
|||||||
|
|
||||||
// Project configuration.
|
// Project configuration.
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
autoprefixer: {
|
postcss: {
|
||||||
options: {
|
options: {
|
||||||
browsers: ['Android >= 2.1', 'Chrome >= 21', 'Explorer >= 7', 'Firefox >= 17', 'Opera >= 12.1', 'Safari >= 6.0'],
|
processors: [
|
||||||
cascade: false
|
autoprefixer({
|
||||||
|
browsers: ['Android >= 2.1', 'Chrome >= 21', 'Explorer >= 7', 'Firefox >= 17', 'Opera >= 12.1', 'Safari >= 6.0'],
|
||||||
|
cascade: false
|
||||||
|
})
|
||||||
|
]
|
||||||
},
|
},
|
||||||
core: {
|
core: {
|
||||||
expand: true,
|
expand: true,
|
||||||
@ -577,7 +582,7 @@ module.exports = function(grunt) {
|
|||||||
grunt.registerTask('rtl', ['rtlcss:core', 'rtlcss:colors']);
|
grunt.registerTask('rtl', ['rtlcss:core', 'rtlcss:colors']);
|
||||||
|
|
||||||
// Color schemes task.
|
// Color schemes task.
|
||||||
grunt.registerTask('colors', ['sass:colors', 'autoprefixer:colors']);
|
grunt.registerTask('colors', ['sass:colors', 'postcss:colors']);
|
||||||
|
|
||||||
// JSHint task.
|
// JSHint task.
|
||||||
grunt.registerTask( 'jshint:corejs', [
|
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.', [
|
grunt.registerTask( 'precommit', 'Runs front-end dev/test tasks in preparation for a commit.', [
|
||||||
'autoprefixer:core',
|
'postcss:core',
|
||||||
'imagemin:core',
|
'imagemin:core',
|
||||||
'browserify',
|
'browserify',
|
||||||
'jshint:corejs',
|
'jshint:corejs',
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
"author": "The WordPress Contributors",
|
"author": "The WordPress Contributors",
|
||||||
"license": "GPL-2.0+",
|
"license": "GPL-2.0+",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"autoprefixer-core": "~5.2.1",
|
||||||
"grunt": "~0.4.5",
|
"grunt": "~0.4.5",
|
||||||
"grunt-autoprefixer": "~3.0.0",
|
|
||||||
"grunt-browserify": "~3.8.0",
|
"grunt-browserify": "~3.8.0",
|
||||||
"grunt-contrib-clean": "~0.6.0",
|
"grunt-contrib-clean": "~0.6.0",
|
||||||
"grunt-contrib-compress": "~0.13.0",
|
"grunt-contrib-compress": "~0.13.0",
|
||||||
@ -26,6 +26,7 @@
|
|||||||
"grunt-jsvalidate": "~0.2.2",
|
"grunt-jsvalidate": "~0.2.2",
|
||||||
"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.5.4",
|
||||||
"grunt-rtlcss": "~1.6.0",
|
"grunt-rtlcss": "~1.6.0",
|
||||||
"grunt-sass": "~1.0.0",
|
"grunt-sass": "~1.0.0",
|
||||||
"matchdep": "~0.3.0"
|
"matchdep": "~0.3.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user