module.exports = function(grunt) {

  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),

    watch: {
      options: {
        livereload: true
      },
      less: {
        files: [
          'src/styles/*.less'
        ],
        tasks: ['less:assets']
      },
      all: {
        files: [
          'src/*.js',
          'src/main.css'
        ],
        tasks: ['browserify']
      },
      html : {
        files: ["index.html"]
      }
    },

    less: {
      options: {
        compress: true
      },
      assets: {
        files: {
          'src/main.css': 'src/styles/main.less'
        }
      }
    },

    browserify: {
      all: {
        files: {
          'bundle.js': ['src/*.js'],
        },
      }
    },

    connect: {
      server: {
        options: {
          port: 9000,
        }
      }
    }
  });

  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-contrib-less');
  grunt.loadNpmTasks('grunt-browserify');
  grunt.loadNpmTasks('grunt-contrib-connect');

  grunt.registerTask('default', ["less", "browserify", "connect", "watch"]);

};

@@ -722,24 +722,113 @@
 %0A        %7D,%0A
+      %7D,%0A      options : %7B%0A        %22bundleOptions%22 : %7B%0A          %22debug%22: true%0A        %7D%0A
       %7D%0A    

add debug option to gruntfile