Grunt now copies the images into the build folder

This commit is contained in:
Ian Gilman 2013-02-14 13:24:50 -08:00
parent 75bb765ca0
commit cd765581e6

View File

@ -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. // Default task.
grunt.registerTask("default", "lint:beforeconcat concat lint:afterconcat min"); grunt.registerTask("default", "lint:beforeconcat concat lint:afterconcat min copy");
// Test task. // Test task.
grunt.registerTask("test", "default server qunit"); grunt.registerTask("test", "default server qunit");