From f7ee1e019f9b6f0a844fc745125df59d54fa357e Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Fri, 29 Mar 2013 00:22:48 -0700 Subject: [PATCH] started adding support for downloading latests js libraries using grunt. --- package.json | 3 ++- update.js | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 update.js diff --git a/package.json b/package.json index 6428cb3c9..f96fe3748 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "grunt-contrib-watch": "*", "grunt-contrib-less": "*", "grunt-contrib-concat": "*", - "grunt-contrib-copy": "*" + "grunt-contrib-copy": "*", + "grunt-curl": "*" } } diff --git a/update.js b/update.js new file mode 100644 index 000000000..f6ccb5ec6 --- /dev/null +++ b/update.js @@ -0,0 +1,22 @@ +module.exports = function(grunt) { + + // Project configuration. + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + curl: { + 'NzbDrone.Backbone/JsLibraries/jquery.js': 'http://code.jquery.com/jquery.js', + 'NzbDrone.Backbone/JsLibraries/backbone.collectionbinder.js': 'https://raw.github.com/theironcook/Backbone.ModelBinder/master/Backbone.CollectionBinder.js', + 'NzbDrone.Backbone/JsLibraries/backbone.modelbinder.js': 'https://raw.github.com/theironcook/Backbone.ModelBinder/master/Backbone.ModelBinder.js', + 'NzbDrone.Backbone/JsLibraries/backbone.js': 'https://raw.github.com/documentcloud/backbone/master/backbone.js', + 'NzbDrone.Backbone/JsLibraries/backbone.marionette.js': 'https://raw.github.com/marionettejs/backbone.marionette/master/lib/backbone.marionette.js', + 'NzbDrone.Backbone/JsLibraries/backbone.mutators.js': 'https://raw.github.com/asciidisco/Backbone.Mutators/master/backbone.mutators.js', + } + + }); + + grunt.loadNpmTasks('grunt-curl'); + + // Default task(s). + grunt.registerTask('default', ['curl']); + +}; \ No newline at end of file