Ticket #25781: 25781.4.diff
File 25781.4.diff, 1.2 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: { … … 64 65 cwd: SOURCE_DIR, 65 66 dest: BUILD_DIR, 66 67 src: [] 68 }, 69 'qunit-compiled': { 70 files: [ 71 { 72 src: 'tests/qunit/index.html', 73 dest: 'tests/qunit/compiled.html' 74 } 75 ], options: { 76 processContent: function( src ) { 77 return src.replace( /([^\.])*\.\.\/src/ig , '/../build' ); 78 } 79 } 67 80 } 68 81 }, 69 82 cssmin: { … … 249 262 grunt.registerTask('build', ['clean:all', 'copy:all', 'cssmin:core', 'uglify:core', 250 263 'uglify:tinymce', 'concat:tinymce', 'compress:tinymce', 'clean:tinymce']); 251 264 252 // Testing task .265 // Testing tasks. 253 266 grunt.registerTask('test', ['qunit']); 267 grunt.registerTask('test:compiled', ['build', 'clean:qunit', 'copy:qunit-compiled', 'qunit']); 254 268 255 269 // Default task. 256 270 grunt.registerTask('default', ['build']);