Skip to:
Content

BuddyPress.org

Ticket #7926: 7926.grunt.diff

File 7926.grunt.diff, 2.1 KB (added by boonebgorges, 7 years ago)
  • Gruntfile.js

    diff --git Gruntfile.js Gruntfile.js
    index d3126cf1c..b9bfc8a67 100644
    module.exports = function( grunt ) { 
    241241                                src: [ '**/*.scss' ]
    242242                        }
    243243                },
     244                phplint: {
     245                        good: ['**/*.php'].concat( BP_EXCLUDED_MISC )
     246                },
    244247                postcss: {
    245248                        options: {
    246249                                map: false,
    module.exports = function( grunt ) { 
    329332         * Register tasks.
    330333         */
    331334        grunt.registerTask( 'src',     ['checkDependencies', 'jsvalidate:src', 'jshint', 'stylelint', 'sass', 'postcss', 'rtlcss'] );
    332         grunt.registerTask( 'commit',  ['src', 'checktextdomain', 'imagemin'] );
     335        grunt.registerTask( 'commit',  ['src', 'checktextdomain', 'imagemin','phplint'] );
    333336        grunt.registerTask( 'build',   ['commit', 'clean:all', 'copy:files', 'uglify', 'jsvalidate:build', 'cssmin', 'makepot', 'exec:bpdefault', 'exec:cli'] );
    334337        grunt.registerTask( 'release', ['build'] );
    335338
  • package.json

    diff --git package.json package.json
    index cff46529d..033954271 100644
     
    66        "description": "BuddyPress adds community features to WordPress. Member Profiles, Activity Streams, Direct Messaging, Notifications, and more!",
    77        "devDependencies": {
    88                "@wordpress/browserslist-config": "~2.1.4",
    9                 "autoprefixer": "~8.5.1",
    10                 "grunt": "^1.0.2",
     9                "autoprefixer": "^8.5.2",
     10                "grunt": "^1.0.3",
    1111                "grunt-check-dependencies": "~1.0.0",
    1212                "grunt-checktextdomain": "~1.0.1",
    1313                "grunt-contrib-clean": "~1.1.0",
     
    1616                "grunt-contrib-imagemin": "~1.0.1",
    1717                "grunt-contrib-jshint": "~1.1.0",
    1818                "grunt-contrib-uglify": "~3.0.1",
    19                 "grunt-contrib-watch": "~1.0.0",
     19                "grunt-contrib-watch": "^1.0.1",
    2020                "grunt-exec": "~2.0.0",
    2121                "grunt-jsvalidate": "~0.2.2",
    22                 "grunt-legacy-util": "^1.0.0",
     22                "grunt-legacy-util": "^1.1.1",
    2323                "grunt-patch-wordpress": "~0.4.2",
     24                "grunt-phplint": "~0.1.0",
    2425                "grunt-postcss": "~0.9.0",
    2526                "grunt-rtlcss": "~2.0.1",
    2627                "grunt-sass": "~2.0.0",
    2728                "grunt-stylelint": "^0.8.0",
    2829                "grunt-wp-i18n": "^1.0.2",
    2930                "matchdep": "~1.0.1",
    30                 "postcss-scss": "~1.0.5",
     31                "postcss-scss": "^1.0.6",
    3132                "stylelint": "~7.10.1",
    3233                "stylelint-config-wordpress": "~11.0.0"
    3334        },