module.exports = function(grunt) {

  grunt.initConfig({
    less: {
      production: {
        options: {
          paths: [ "bower_components/bootstrap/less" ],
          cleancss: true
        },
        files: {
          "css/application.min.css": "_less/application.less"
        }
      }
    },
    uglify: {
      jquery: {
        files: {
          "js/jquery.min.js": "bower_components/jquery/jquery.js"
        }
      },
      bootstrap: {
        files: {
          "js/bootstrap.min.js": [
            "bower_components/bootstrap/js/transition.js",
            "bower_components/bootstrap/js/alert.js",
            "bower_components/bootstrap/js/button.js",
            "bower_components/bootstrap/js/carousel.js",
            "bower_components/bootstrap/js/collapse.js",
            "bower_components/bootstrap/js/dropdown.js",
            "bower_components/bootstrap/js/modal.js",
            "bower_components/bootstrap/js/tooltip.js",
            "bower_components/bootstrap/js/popover.js",
            "bower_components/bootstrap/js/scrollspy.js",
            "bower_components/bootstrap/js/tab.js",
            "bower_components/bootstrap/js/affix.js"
          ]
        }
      }
    },
    copy: {
      bootstrap: {
        files: [
          {
            expand: true,
            cwd: "bower_components/bootstrap/img/",
            src: ["**"],
            dest: "assets/img/"
          }
        ]
      }
    },
    shell: {
      jekyllBuild: {
        command: "jekyll build"
      },
      jekyllServe: {
        command: "jekyll serve"
      }
    }
  });
  
  grunt.loadNpmTasks("grunt-contrib-less");
  grunt.loadNpmTasks("grunt-contrib-uglify");
  grunt.loadNpmTasks("grunt-contrib-copy");
  grunt.loadNpmTasks("grunt-shell");
   
  grunt.registerTask("default", [ "less", "uglify", "copy", "shell:jekyllBuild" ]);

};

Build and serve via Grunt.
Build and serve via Grunt.
