Ticket #24980: matchdep2.diff
| File matchdep2.diff, 1.7 KB (added by , 13 years ago) |
|---|
-
package.json
3 3 "version": "3.7.0", 4 4 "description": "WordPress is web software you can use to create a beautiful website or blog.", 5 5 "repository": { 6 "type": "svn",7 "url": "https://develop.svn.wordpress.org/trunk"6 "type": "svn", 7 "url": "https://develop.svn.wordpress.org/trunk" 8 8 }, 9 9 "author": "The WordPress Contributors", 10 10 "license": "GPLv2 or later", 11 11 "devDependencies": { 12 "grunt": "~0.4.1", 13 "grunt-contrib-clean": "~0.5.0", 14 "grunt-contrib-copy": "~0.4.1", 15 "grunt-contrib-cssmin": "~0.6.1", 16 "grunt-contrib-uglify": "~0.2.2", 17 "grunt-contrib-watch": "~0.5.1" 12 "grunt": "~0.4.1", 13 "matchdep": "~0.1.2", 14 "grunt-contrib-clean": "~0.5.0", 15 "grunt-contrib-copy": "~0.4.1", 16 "grunt-contrib-cssmin": "~0.6.1", 17 "grunt-contrib-uglify": "~0.2.2", 18 "grunt-contrib-watch": "~0.5.1" 18 19 } 19 20 } -
Gruntfile.js
4 4 var SOURCE_DIR = 'src/'; 5 5 var BUILD_DIR = 'build/'; 6 6 7 // Load tasks. 8 require('matchdep').filterDev('grunt-*').forEach( grunt.loadNpmTasks ); 9 10 7 11 // Project configuration. 8 12 grunt.initConfig({ 9 13 clean: { … … 106 110 } 107 111 }); 108 112 109 // Load tasks.110 grunt.loadNpmTasks('grunt-contrib-clean');111 grunt.loadNpmTasks('grunt-contrib-copy');112 grunt.loadNpmTasks('grunt-contrib-cssmin');113 grunt.loadNpmTasks('grunt-contrib-uglify');114 grunt.loadNpmTasks('grunt-contrib-watch');115 113 116 114 // Register tasks. 117 115 grunt.registerTask('build', ['clean:all', 'copy:all', 'cssmin:core',