Make WordPress Core

Ticket #25781: 25781.4.diff

File 25781.4.diff, 1.2 KB (added by kadamwhite, 12 years ago)

Cleaned up spacing in 25781.3.diff, removed spaces-to-tabs conversion within a comment

  • 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: []
     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                                }
    6780                        }
    6881                },
    6982                cssmin: {
     
    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']);