From 736553db0a535b5c1cba050637f3a1550d1ed16c Mon Sep 17 00:00:00 2001 From: Vit Brunner Date: Tue, 11 Nov 2014 23:33:45 +0100 Subject: [PATCH] Remove copy redundance --- Gruntfile.coffee | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 8d70dc0..a06da30 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -130,38 +130,26 @@ module.exports = (grunt) -> } copy: { - main_htaccess: { + main: { expand: true cwd: 'source' - src: '.htaccess' + src: [ '.htaccess', 'tests/the_raven/*' ] dest: 'build' options: { processContent: (content) -> grunt.template.process content, { data: template_data } } } - main_raven: { + min: { expand: true cwd: 'source' - src: 'tests/the_raven/*' - dest: 'build' - } - min_htaccess: { - expand: true - cwd: 'source' - src: '.htaccess' + src: [ '.htaccess', 'tests/the_raven/*' ] dest: 'build-min' options: { processContent: (content) -> grunt.template.process content, { data: template_data } } } - min_raven: { - expand: true - cwd: 'source' - src: 'tests/the_raven/*' - dest: 'build-min' - } min_fonts: { expand: true cwd: 'build/bower_components/fontawesome/fonts' @@ -248,8 +236,8 @@ module.exports = (grunt) -> grunt.loadNpmTasks('grunt-contrib-watch'); # Register tasks - grunt.registerTask 'default', [ 'coffee:main', 'copy:main_htaccess', 'copy:main_raven', 'jade:main', 'stylus:main' ] - grunt.registerTask 'min', [ 'jade:min', 'copy:min_raven', 'copy:min_fonts', 'uglify:min', 'cssmin:min' ] + grunt.registerTask 'default', [ 'coffee:main', 'copy:main', 'jade:main', 'stylus:main' ] + grunt.registerTask 'min', [ 'jade:min', 'copy:min', 'copy:min_fonts', 'uglify:min', 'cssmin:min' ] grunt.registerTask 'test', [ 'default', 'min', 'connect', 'qunit' ] grunt.registerTask 'serve', () ->