module.exports = function(grunt) {
  // Project configuration.
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    jshint: {
      src: {
        options: {
            jshintrc: '.jshintrc',
        },
        src: ['www/**/*.js', 'src/**/*.js']
      },
      build: {
        options: {
            jshintrc: '.jshintrc',
        },
        src: ['platform_www/**/*.js']
      },
      testrunner: {
        options: {
            jshintrc: '.jshintrc',
        },
        src: ['cordova-test-runner/**/*.js']
      }
    },
    jscs: {
      src: {
        options: {
            config: '.jscsrc',
        },
        src: ['www/**/*.js', 'src/**/*.js']
      },
      build: {
        options: {
            config: '.jscsrc',
        },
        src: ['platform_www/**/*.js']
      },
      testrunner: {
        options: {
            config: '.jscsrc',
        },
        src: ['cordova-test-runner/**/*.js']
      }
    },
    compile: {
      "sectv-orsay": {
          //dest: "platform_www/sectv-orsay/toast.js" // default
      },
      "sectv-tizen": {
          //dest: "platform_www/sectv-tizen/toast.js" // default
      }
    },
    watch: {
      'sectv-orsay': {
        files: ['www/**/*.js', 'src/sectv-orsay/*.js'],
        tasks: ['jshint:src', 'compile:sectv-orsay']
      },
      'sectv-tizen': {
        files: ['www/**/*.js', 'src/sectv-tizen/*.js'],
        tasks: ['jshint:src', 'compile:sectv-tizen']
      }
    }
  });

  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-jscs');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadTasks('tasks');

  // Default task(s).
  grunt.registerTask('default', ['jshint:src', 'compile', 'jshint:build', 'jshint:testrunner', 'jscs']);
};

@@ -605,34 +605,33 @@
 onfig: '.jscsrc'
-,
 %0A
+
         %7D,%0A     
@@ -682,131 +682,8 @@
  %7D,%0A
-      build: %7B%0A        options: %7B%0A            config: '.jscsrc',%0A        %7D,%0A        src: %5B'platform_www/**/*.js'%5D%0A      %7D,%0A
     
@@ -709,32 +709,32 @@
      options: %7B%0A
+
             conf
@@ -746,17 +746,16 @@
 .jscsrc'
-,
 %0A       
@@ -1570,60 +1570,213 @@
 ', '
-compile', 'jshint:build', 'jshint:testrunner', 'jscs
+jscs:src', 'jshint:testrunner', 'jscs:testrunner', 'compile', 'jshint:build'%5D);%0A  grunt.registerTask('precommit', %5B'jshint:src', 'jscs:src', 'jshint:testrunner', 'jscs:testrunner', 'compile', 'jshint:build
 '%5D);

Add precommit task for contributors