Ticket #25781: 25781.diff
File 25781.diff, 1.7 KB (added by , 12 years ago) |
---|
-
Gruntfile.js
23 23 BUILD_DIR + 'wp-includes/js/tinymce/wp-tinymce-schema.min.js', 24 24 BUILD_DIR + 'wp-includes/js/tinymce/mark_loaded.js' 25 25 ] 26 } 26 }, 27 qunit:[ 'tests/qunit/compiled.html' ] 27 28 }, 28 29 copy: { 29 30 files: { … … 137 138 qunit: { 138 139 files: ['tests/qunit/**/*.html'] 139 140 }, 141 'string-replace': { 142 qunit: { 143 files: { 144 'tests/qunit/compiled.html' : 'tests/qunit/index.html' 145 }, options: 146 {replacements:[{ 147 pattern: /([^\.])*\.\.\/src/ig , 148 replacement: '/../build' 149 }] 150 } 151 } 152 }, 140 153 uglify: { 141 154 core: { 142 155 expand: true, … … 237 250 grunt.registerTask('build', ['clean:all', 'copy:all', 'cssmin:core', 'uglify:core', 238 251 'uglify:tinymce', 'concat:tinymce', 'compress:tinymce', 'clean:tinymce']); 239 252 240 // Testing task .253 // Testing tasks. 241 254 grunt.registerTask('test', ['qunit']); 255 grunt.registerTask('test:compiled', ['build', 'clean:qunit', 'string-replace', 'qunit']); 242 256 243 257 // Default task. 244 258 grunt.registerTask('default', ['build']); -
package.json
19 19 "grunt-contrib-compress": "~0.5.2", 20 20 "grunt-contrib-concat": "~0.3.0", 21 21 "grunt-contrib-jshint": "~0.7.0", 22 "grunt-string-replace": "~0.2.4", 22 23 "matchdep": "~0.1.2" 23 24 } 24 25 }