Ticket #25117: 25117.diff
File 25117.diff, 1.9 KB (added by , 11 years ago) |
---|
-
Gruntfile.js
40 40 src: [] 41 41 }, 42 42 tinymce: ['<%= concat.tinymce.dest %>'], 43 qunit: ['tests/qunit/compiled.html'] 43 qunit: ['tests/qunit/compiled.html'], 44 packages: ['packages/**'] 44 45 }, 45 46 copy: { 46 47 files: { … … 321 322 }, 322 323 src: '<%= concat.tinymce.dest %>', 323 324 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/' 324 363 } 325 364 }, 326 365 jsvalidate:{ … … 407 446 grunt.registerTask('build', ['clean:all', 'copy:all', 'cssmin:core', 'colors', 'rtl', 'cssmin:rtl', 'cssmin:colors', 408 447 'uglify:core', 'concat:tinymce', 'compress:tinymce', 'clean:tinymce', 'jsvalidate:build']); 409 448 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 410 453 // Testing tasks. 411 454 grunt.registerMultiTask('phpunit', 'Runs PHPUnit tests, including the ajax and multisite tests.', function() { 412 455 grunt.util.spawn({