Make WordPress Core

Ticket #25117: 25117.2.diff

File 25117.2.diff, 2.6 KB (added by netweb, 9 years ago)
  • .

  • .gitignore

    Property changes on: .
    ___________________________________________________________________
    Modified: svn:ignore
    ## -4,3 +4,4 ##
     node_modules
     npm-debug.log
     build
    +packages
     
    1515/npm-debug.log
    1616/build
    1717/tests/phpunit/build
     18/packages
    1819
    1920# Files and folders that get created in wp-content
    2021/src/wp-content/blogs.dir
  • Gruntfile.js

     
    4242                                src: []
    4343                        },
    4444                        tinymce: ['<%= concat.tinymce.dest %>'],
    45                         qunit: ['tests/qunit/compiled.html']
     45                        qunit: ['tests/qunit/compiled.html'],
     46                        packages: ['packages/**']
    4647                },
    4748                copy: {
    4849                        files: {
     
    377378                                },
    378379                                src: '<%= concat.tinymce.dest %>',
    379380                                dest: BUILD_DIR + 'wp-includes/js/tinymce/wp-tinymce.js.gz'
     381                        },
     382                        core: {
     383                                options: {
     384                                        mode: 'zip',
     385                                        archive: 'packages/wordpress.zip',
     386                                        level: 9
     387                                },
     388                                expand: true,
     389                                cwd: BUILD_DIR,
     390                                src: [
     391                                        '**',
     392                                        '!wp-content/**',
     393                                        'wp-content/**/index.php',
     394                                        'wp-content/{plugins,themes}/index.php',
     395                                        'wp-content/plugins/hello.php',
     396                                        'wp-content/themes/twenty{twelve,thirteen,fourteen}'
     397                                ],
     398                                dest: 'wordpress/'
     399                        },
     400                        'core-no-content': {
     401                                options: {
     402                                        mode: 'zip',
     403                                        archive: 'packages/wordpress-no-content.zip',
     404                                        level: 9
     405                                },
     406                                expand: true,
     407                                cwd: BUILD_DIR,
     408                                src: ['**', '!wp-content/**'],
     409                                dest: 'wordpress/'
     410                        },
     411                        'core-tarball': {
     412                                options: {
     413                                        mode: 'tgz',
     414                                        archive: 'packages/wordpress.tar.gz',
     415                                        level: 9
     416                                },
     417                                expand: true,
     418                                cwd: BUILD_DIR,
     419                                src: '<%= compress.core.src %>',
     420                                dest: 'wordpress/'
    380421                        }
    381422                },
    382423                jsvalidate:{
     
    466507        grunt.registerTask('build', ['clean:all', 'copy:all', 'cssmin:core', 'colors', 'rtl', 'cssmin:rtl', 'cssmin:colors',
    467508                'uglify:core', 'concat:tinymce', 'compress:tinymce', 'clean:tinymce', 'jsvalidate:build']);
    468509
     510        // Package creation task.
     511        grunt.registerTask('package', 'Create download packages, for testing purposes.',
     512                ['build', 'clean:packages', 'compress:core', 'compress:core-no-content', 'compress:core-tarball']);
     513
    469514        // Testing tasks.
    470515        grunt.registerMultiTask('phpunit', 'Runs PHPUnit tests, including the ajax and multisite tests.', function() {
    471516                grunt.util.spawn({