Make WordPress Core

Changeset 33129


Ignore:
Timestamp:
07/08/2015 07:53:22 PM (9 years ago)
Author:
jorbin
Message:

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

grunt-autoprefixer was deprecated - https://github.com/nDmitry/grunt-autoprefixer/commit/e020f878d5fe1a3f9f15bc7533b31c12ffa74799
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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r32806 r33129  
    44        SOURCE_DIR = 'src/',
    55        BUILD_DIR = 'build/',
     6        autoprefixer = require('autoprefixer-core'),
    67        mediaConfig = {},
    78        mediaBuilds = ['audiovideo', 'grid', 'models', 'views'];
     
    2021    // Project configuration.
    2122    grunt.initConfig({
    22         autoprefixer: {
     23        postcss: {
    2324            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                ]
    2631            },
    2732            core: {
     
    578583
    579584    // Color schemes task.
    580     grunt.registerTask('colors', ['sass:colors', 'autoprefixer:colors']);
     585    grunt.registerTask('colors', ['sass:colors', 'postcss:colors']);
    581586
    582587    // JSHint task.
     
    607612
    608613    grunt.registerTask( 'precommit', 'Runs front-end dev/test tasks in preparation for a commit.', [
    609         'autoprefixer:core',
     614        'postcss:core',
    610615        'imagemin:core',
    611616        'browserify',
  • trunk/package.json

    r32988 r33129  
    1010  "license": "GPL-2.0+",
    1111  "devDependencies": {
     12    "autoprefixer-core": "~5.2.1",
    1213    "grunt": "~0.4.5",
    13     "grunt-autoprefixer": "~3.0.0",
    1414    "grunt-browserify": "~3.8.0",
    1515    "grunt-contrib-clean": "~0.6.0",
     
    2727    "grunt-legacy-util": "^0.2.0",
    2828    "grunt-patch-wordpress": "~0.3.0",
     29    "grunt-postcss": "~0.5.4",
    2930    "grunt-rtlcss": "~1.6.0",
    3031    "grunt-sass": "~1.0.0",
Note: See TracChangeset for help on using the changeset viewer.