Make WordPress Core

Ticket #25781: 25781.2.diff

File 25781.2.diff, 1.4 KB (added by jorbin, 12 years ago)
  • Gruntfile.js

     
    2323                                        BUILD_DIR + 'wp-includes/js/tinymce/wp-tinymce-schema.min.js',
    2424                                        BUILD_DIR + 'wp-includes/js/tinymce/mark_loaded.js'
    2525                                ]
    26                         }
     26                        },
     27            qunit:[ 'tests/qunit/compiled.html' ]
    2728                },
    2829                copy: {
    2930                        files: {
     
    6465                                cwd: SOURCE_DIR,
    6566                                dest: BUILD_DIR,
    6667                                src: []
    67                         }
     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                }
     80            }
    6881                },
    6982                cssmin: {
    7083                        core: {
     
    249262        grunt.registerTask('build', ['clean:all', 'copy:all', 'cssmin:core', 'uglify:core',
    250263                'uglify:tinymce', 'concat:tinymce', 'compress:tinymce', 'clean:tinymce']);
    251264
    252         // Testing task.
     265        // Testing tasks.
    253266        grunt.registerTask('test', ['qunit']);
     267    grunt.registerTask('test:compiled', ['build', 'clean:qunit', 'copy:qunit-compiled', 'qunit']);
    254268
    255269        // Default task.
    256270        grunt.registerTask('default', ['build']);