module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    hb: 'bower_components/handlebars/handlebars.runtime.js',
    kernel: 'bower_components/kerneljs/kernel.js',
    modules: 'js/modules/*.js',
    hubs: 'js/hubs/*.js',
    kernels: 'js/kernels/*.js',
    template: 'js/build/templates.js',
    templates: 'js/templates/*.hbs',
    application: 'js/app.js',
    files: ['<%= hb %>','<%= kernel %>','<%= template %>','<%= kernels %>', '<%= hubs %>', '<%= modules %>','<%= application %>'],

    watch: {
      src: {
        files: '<%= files %>',
	      tasks: ['build']
      }
    },

      exec: {
          xbuild: 'xbuild'
      },


    concat: {
      dist: {
        src: '<%= files %>',
	dest: 'Content/<%= pkg.name %>.min.js'
      }
    },
    handlebars: {
      compile : {
        options : {
          namespace: 'Handlebars',
	  processName: function (filePath) {
	    var filename = filePath.replace(/^.*[\\\/]/,'')	  
	    return filename.split('.')[0];
	  }
	},
        files: {
      	  "<%= template %>": ['<%= templates %>']
        }
      }
    }
  });

  grunt.loadNpmTasks('grunt-contrib-concat');
  grunt.loadNpmTasks('grunt-contrib-handlebars');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-exec');

  // Default task(s).
//  grunt.registerTask('default', ['uglify']);
    grunt.registerTask('build', ['handlebars','concat', 'exec']);

};

@@ -398,24 +398,51 @@
 tes/*.hbs',%0A
+    views: 'views/*.html',%0A
     applicat
@@ -455,24 +455,24 @@
 js/app.js',%0A
-
     files: %5B
@@ -728,16 +728,146 @@
 'xbuild'
+,%0A          kill: %22$(ps -aux %7C grep %5Be%5Dlephanet-demo.exe %7C awk '%7Bprint $2%7D')%22,%0A          restart: './bin/Debug/elephanet-demo.exe'
 %0A      %7D
@@ -1111,16 +1111,16 @@
 Path) %7B%0A
+
 %09    var
@@ -1163,19 +1163,16 @@
 %5C/%5D/,'')
-%09  
 %0A%09    re

add in task to kill and restart the webserver on build