From 8074b338d1a2129c8faedcf7729dda6eb8662143 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Thu, 21 Feb 2013 11:56:16 -0800 Subject: [PATCH] Fixed compress and moved build to build/openseadragon The zip and tar now go into build next to build/openseadragon --- Gruntfile.js | 24 +++++++++++++++--------- test/test.html | 2 +- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index b445f6af..5edad075 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -8,8 +8,8 @@ module.exports = function(grunt) { grunt.loadNpmTasks("grunt-contrib-connect"); grunt.loadNpmTasks("grunt-contrib-watch"); - var distribution = "build/openseadragon.js", - minified = "build/openseadragon.min.js", + var distribution = "build/openseadragon/openseadragon.js", + minified = "build/openseadragon/openseadragon.min.js", sources = [ "src/openseadragon.js", "src/eventhandler.js", @@ -60,14 +60,20 @@ module.exports = function(grunt) { }, compress: { zip: { - files: { - "openseadragon.zip": "build/**" - } + options: { + archive: "build/openseadragon.zip" + }, + files: [ + { expand: true, cwd: "build/", src: ["openseadragon/**"] } + ] }, tar: { - files: { - "openseadragon.tar": "build/**" - } + options: { + archive: "build/openseadragon.tar" + }, + files: [ + { expand: true, cwd: "build/", src: [ "openseadragon/**" ] } + ] } }, qunit: { @@ -106,7 +112,7 @@ module.exports = function(grunt) { // Copy task. grunt.registerTask("copy", function() { grunt.file.recurse("images", function(abspath, rootdir, subdir, filename) { - grunt.file.copy(abspath, "build/images/" + (subdir || "") + filename); + grunt.file.copy(abspath, "build/openseadragon/images/" + (subdir || "") + filename); }); }); diff --git a/test/test.html b/test/test.html index e7e20a45..65c6d977 100644 --- a/test/test.html +++ b/test/test.html @@ -11,7 +11,7 @@
- + \ No newline at end of file