diff Gruntfile.js @ 103:cc1f3b81364c

Better development mode: - Javascript files copied instead of being concatenated. - They have cache busting enabled again.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 06 Nov 2013 22:14:19 -0800
parents 13249e5ca51c
children f0172c5d8e2c
line wrap: on
line diff
--- a/Gruntfile.js	Tue Nov 05 08:13:53 2013 -0800
+++ b/Gruntfile.js	Wed Nov 06 22:14:19 2013 -0800
@@ -50,9 +50,12 @@
       }
     },
     copy: {
-      images: {
+      development: {
         files: [
-          {expand: true, cwd: 'static/', dest: 'build/', src: ['img/**']}
+          {expand: true, cwd: 'static/', dest: 'build/', src: ['img/**']},
+          {expand: true, cwd: 'static/', dest: 'build/', src: ['js/**']},
+          {expand: true, cwd: 'static/', dest: 'build/', src: ['tpl/**']},
+          {expand: true, cwd: 'static/', dest: 'build/', src: ['bootstrap/js/*.js']}
         ]
       },
       production: {
@@ -96,9 +99,9 @@
   grunt.loadNpmTasks('grunt-contrib-watch');
 
   // Default task(s).
-  grunt.registerTask('default', ['less:production', 'requirejs:production', 'imagemin:all', 'copy:production']);
+  grunt.registerTask('default', ['jshint', 'less:production', 'requirejs:production', 'imagemin:all', 'copy:production']);
 
   // Other tasks.
-  grunt.registerTask('dev', ['less:development', 'requirejs:development', 'copy:production', 'copy:images']);
+  grunt.registerTask('dev', ['less:development', 'copy:production', 'copy:development']);
 };