Make WordPress Core

Changeset 25243


Ignore:
Timestamp:
09/04/2013 08:50:29 PM (12 years ago)
Author:
nacin
Message:

Use matchdep for Grunt tasks.

props kadamwhite.
fixes #24980.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r25200 r25243  
    44    var SOURCE_DIR = 'src/';
    55    var BUILD_DIR = 'build/';
     6
     7    // Load tasks.
     8    require('matchdep').filterDev('grunt-*').forEach( grunt.loadNpmTasks );
    69
    710    // Project configuration.
     
    155158    });
    156159
    157     // Load tasks.
    158     grunt.loadNpmTasks('grunt-contrib-clean');
    159     grunt.loadNpmTasks('grunt-contrib-copy');
    160     grunt.loadNpmTasks('grunt-contrib-cssmin');
    161     grunt.loadNpmTasks('grunt-contrib-qunit');
    162     grunt.loadNpmTasks('grunt-contrib-uglify');
    163     grunt.loadNpmTasks('grunt-contrib-watch');
    164     grunt.loadNpmTasks('grunt-contrib-compress');
    165     grunt.loadNpmTasks('grunt-contrib-concat');
    166 
    167160    // Register tasks.
    168161    grunt.registerTask('build', ['clean:all', 'copy:all', 'cssmin:core', 'uglify:core',
  • trunk/package.json

    r25188 r25243  
    1818    "grunt-contrib-watch": "~0.5.1",
    1919    "grunt-contrib-compress": "~0.5.2",
    20     "grunt-contrib-concat": "~0.3.0"
     20    "grunt-contrib-concat": "~0.3.0",
     21    "matchdep": "~0.1.2"
    2122  }
    2223}
Note: See TracChangeset for help on using the changeset viewer.