From cd765581e6fd13842c745d8f318909edc23c05fb Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Thu, 14 Feb 2013 13:24:50 -0800 Subject: [PATCH] Grunt now copies the images into the build folder --- grunt.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/grunt.js b/grunt.js index 68e45efb..cfc199b1 100644 --- a/grunt.js +++ b/grunt.js @@ -86,8 +86,15 @@ 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); + }); + }); + // Default task. - grunt.registerTask("default", "lint:beforeconcat concat lint:afterconcat min"); + grunt.registerTask("default", "lint:beforeconcat concat lint:afterconcat min copy"); // Test task. grunt.registerTask("test", "default server qunit");