Make WordPress Core

Ticket #24981: removesvn.diff

File removesvn.diff, 1.2 KB (added by jorbin, 13 years ago)
  • Gruntfile.js

     
    1414                                cwd: BUILD_DIR,
    1515                                src: []
    1616                        },
    17                         svn: [SOURCE_DIR]
    1817                },
    1918                copy: {
    2019                        all: {
     
    4645                                ]
    4746                        }
    4847                },
    49                 svn: {
    50                         core: {
    51                                 repository: 'https://core.svn.wordpress.org/trunk/',
    52                                 dest: SOURCE_DIR
    53                         }
    54                 },
    5548                uglify: {
    5649                        core: {
    5750                                expand: true,
     
    117110        grunt.registerTask('build', ['clean:all', 'copy:all', 'cssmin:core',
    118111                'uglify:core', 'uglify:tinymce']);
    119112
    120 
    121         // Add a temporary setup task for preparing the directory using existing repositories.
    122         grunt.registerTask('setup', ['clean:all', 'svn']);
    123 
    124         // Add an svn task for checking out repositories.
    125         grunt.registerMultiTask('svn', 'Check out a Subversion repository.', function() {
    126                 var done = this.async();
    127                 var args = ['checkout', '--ignore-externals', this.data.repository];
    128                 if (this.data.dest) {
    129                         args.push(this.data.dest);
    130                 }
    131 
    132                 grunt.util.spawn({
    133                         cmd: 'svn',
    134                         args: args,
    135                         opts: {stdio: 'inherit'}
    136                 }, done);
    137         });
    138 
    139113        // Default task.
    140114        grunt.registerTask('default', ['build']);
    141115