Make WordPress Core

Ticket #25117: 25117.diff

File 25117.diff, 1.9 KB (added by nacin, 11 years ago)
  • Gruntfile.js

     
    4040                                src: []
    4141                        },
    4242                        tinymce: ['<%= concat.tinymce.dest %>'],
    43                         qunit: ['tests/qunit/compiled.html']
     43                        qunit: ['tests/qunit/compiled.html'],
     44                        packages: ['packages/**']
    4445                },
    4546                copy: {
    4647                        files: {
     
    321322                                },
    322323                                src: '<%= concat.tinymce.dest %>',
    323324                                dest: BUILD_DIR + 'wp-includes/js/tinymce/wp-tinymce.js.gz'
     325                        },
     326                        core: {
     327                                options: {
     328                                        mode: 'zip',
     329                                        archive: 'packages/wordpress.zip',
     330                                        level: 9
     331                                },
     332                                expand: true,
     333                                cwd: BUILD_DIR,
     334                                src: [
     335                                        '**',
     336                                        '!wp-content/**',
     337                                        'wp-content/plugins/hello.php',
     338                                        'wp-content/themes/twenty{twelve,thirteen,fourteen}'
     339                                ],
     340                                dest: 'wordpress/'
     341                        },
     342                        'core-no-content': {
     343                                options: {
     344                                        mode: 'zip',
     345                                        archive: 'packages/wordpress-no-content.zip',
     346                                        level: 9
     347                                },
     348                                expand: true,
     349                                cwd: BUILD_DIR,
     350                                src: ['**', '!wp-content/**'],
     351                                dest: 'wordpress/'
     352                        },
     353                        'core-tarball': {
     354                                options: {
     355                                        mode: 'tgz',
     356                                        archive: 'packages/wordpress.tar.gz',
     357                                        level: 9
     358                                },
     359                                expand: true,
     360                                cwd: BUILD_DIR,
     361                                src: '<%= compress.core.src %>',
     362                                dest: 'wordpress/'
    324363                        }
    325364                },
    326365                jsvalidate:{
     
    407446        grunt.registerTask('build', ['clean:all', 'copy:all', 'cssmin:core', 'colors', 'rtl', 'cssmin:rtl', 'cssmin:colors',
    408447                'uglify:core', 'concat:tinymce', 'compress:tinymce', 'clean:tinymce', 'jsvalidate:build']);
    409448
     449        // Package creation task.
     450        grunt.registerTask('package', 'Create download packages, for testing purposes.',
     451                ['build', 'clean:packages', 'compress:core', 'compress:core-no-content', 'compress:core-tarball']);
     452
    410453        // Testing tasks.
    411454        grunt.registerMultiTask('phpunit', 'Runs PHPUnit tests, including the ajax and multisite tests.', function() {
    412455                grunt.util.spawn({