Make WordPress Core

Ticket #25781: 25781.diff

File 25781.diff, 1.7 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: {
     
    137138                qunit: {
    138139                        files: ['tests/qunit/**/*.html']
    139140                },
     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        },
    140153                uglify: {
    141154                        core: {
    142155                                expand: true,
     
    237250        grunt.registerTask('build', ['clean:all', 'copy:all', 'cssmin:core', 'uglify:core',
    238251                'uglify:tinymce', 'concat:tinymce', 'compress:tinymce', 'clean:tinymce']);
    239252
    240         // Testing task.
     253        // Testing tasks.
    241254        grunt.registerTask('test', ['qunit']);
     255    grunt.registerTask('test:compiled', ['build', 'clean:qunit', 'string-replace', 'qunit']);
    242256
    243257        // Default task.
    244258        grunt.registerTask('default', ['build']);
  • package.json

     
    1919    "grunt-contrib-compress": "~0.5.2",
    2020    "grunt-contrib-concat": "~0.3.0",
    2121    "grunt-contrib-jshint": "~0.7.0",
     22    "grunt-string-replace": "~0.2.4",
    2223    "matchdep": "~0.1.2"
    2324  }
    2425}