Ticket #25781: 25781.3.diff
File 25781.3.diff, 1.4 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: { … … 125 138 eqeqeq: false 126 139 }, 127 140 // Limit JSHint's run to a single specified file 128 // 141 // grunt jshint:core --file=filename.js 129 142 filter: function( filepath ) { 130 143 var file = grunt.option( 'file' ); 131 144 … … 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']);