'use strict';

module.exports = function(grunt) {
    grunt.config.init({
        watch:{
            files: ['gruntfile.js', './**/*.js', 'test/**/*.js'],
            tasks: ['eslint', 'mochaTest']
        },
        eslint: {
          src: ['.']
        },
        mochaTest: {
          test: {
            options: {
              reporter: 'list'
            },
            src: ['test/**/*.js']
          }
        }
      });
      grunt.loadNpmTasks('grunt-contrib-watch');
      grunt.loadNpmTasks('grunt-contrib-compass');
      grunt.loadNpmTasks('gruntify-eslint');
      grunt.loadNpmTasks('grunt-mocha-test');
    };

'use strict';

module.exports = function(grunt) {
    grunt.config.init({
        watch:{
            files: ['gruntfile.js', './**/*.js', 'test/**/*.js', './**/*.scss'],
            tasks: ['compass:clean', 'compass:compileDevelopment', 'eslint', 'mochaTest']
        },
        eslint: {
          src: ['.']
        },
        mochaTest: {
          test: {
            options: {
              reporter: 'list'
            },
            src: ['test/**/*.js']
          }
        },
        compass: {
          clean: {
            options: {
              sassDir: 'resource-bundles',
              cssDir: 'resource-bundles',
              clean: true
            }
          },
          compileDevelopment: {
            options: {
              sassDir: 'resource-bundles',
              cssDir: 'resource-bundles',
              environment: 'development'
            }
          },
          watch: {
            options: {
              sassDir: 'resource-bundles',
              cssDir: 'resource-bundles',
              watch: true
            }
          }
        },
        exec: {
          command: 'electron main.js',
          stdout: true,
          stderr: true
        }
      });

      grunt.loadNpmTasks('grunt-contrib-watch');
      grunt.loadNpmTasks('grunt-contrib-compass');
      grunt.loadNpmTasks('gruntify-eslint');
      grunt.loadNpmTasks('grunt-mocha-test');
      grunt.loadNpmTasks('grunt-exec');

      grunt.registerTask('default', ['compass:clean', 'compass:compileDevelopment', 'eslint', 'mochaTest', 'exec']);
      grunt.registerTask('development', ['compass:clean', 'compass:compileDevelopment', 'eslint', 'mochaTest', 'exec']);
    };

Add grunt configuration #6