Remove temporary svn task from Gruntfile.js. props jorbin, fixes #24981.

git-svn-id: https://develop.svn.wordpress.org/trunk@25012 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-08-07 17:34:05 +00:00
parent 5891d79a14
commit 302824ce0c
1 changed files with 0 additions and 26 deletions

View File

@ -14,7 +14,6 @@ module.exports = function(grunt) {
cwd: BUILD_DIR,
src: []
},
svn: [SOURCE_DIR]
},
copy: {
all: {
@ -46,12 +45,6 @@ module.exports = function(grunt) {
]
}
},
svn: {
core: {
repository: 'https://core.svn.wordpress.org/trunk/',
dest: SOURCE_DIR
}
},
uglify: {
core: {
expand: true,
@ -117,25 +110,6 @@ module.exports = function(grunt) {
grunt.registerTask('build', ['clean:all', 'copy:all', 'cssmin:core',
'uglify:core', 'uglify:tinymce']);
// Add a temporary setup task for preparing the directory using existing repositories.
grunt.registerTask('setup', ['clean:all', 'svn']);
// Add an svn task for checking out repositories.
grunt.registerMultiTask('svn', 'Check out a Subversion repository.', function() {
var done = this.async();
var args = ['checkout', '--ignore-externals', this.data.repository];
if (this.data.dest) {
args.push(this.data.dest);
}
grunt.util.spawn({
cmd: 'svn',
args: args,
opts: {stdio: 'inherit'}
}, done);
});
// Default task.
grunt.registerTask('default', ['build']);