Make WordPress Core

Ticket #29792: 29792.1.diff

File 29792.1.diff, 1.2 KB (added by netweb, 11 years ago)
  • Gruntfile.js

     
    44                SOURCE_DIR = 'src/',
    55                BUILD_DIR = 'build/',
    66                autoprefixer = require('autoprefixer-core'),
     7                stylelint = require('stylelint'),
     8                reporter = require('postcss-reporter'),
     9                configWordPress = require('stylelint-config-wordpress'),
    710                mediaConfig = {},
    811                mediaBuilds = ['audiovideo', 'grid', 'models', 'views'];
    912
     
    2326                postcss: {
    2427                        options: {
    2528                                processors: [
     29                                        stylelint(configWordPress),
    2630                                        autoprefixer({
    2731                                                browsers: ['Android >= 2.1', 'Chrome >= 21', 'Explorer >= 7', 'Firefox >= 17', 'Opera >= 12.1', 'Safari >= 6.0'],
    2832                                                cascade: false
     33                                        }),
     34                                        reporter({
     35                                                clearMessages: true
    2936                                        })
    3037                                ]
    3138                        },
  • package.json

     
    2929    "grunt-postcss": "~0.5.4",
    3030    "grunt-rtlcss": "~1.6.0",
    3131    "grunt-sass": "~1.0.0",
    32     "matchdep": "~0.3.0"
     32    "matchdep": "~0.3.0",
     33    "postcss-reporter": "~0.3.1",
     34    "stylelint": "~0.6.0",
     35    "stylelint-config-wordpress": "~0.1.0"
    3336  }
    3437}