/*
 * WATCH: Run predefined tasks whenever watched file patterns are added, changed or deleted
 */
module.exports = function(grunt, options) {
    return {
        options: {
            spawn: false,
            livereload: true
        },

        boltCss: {
            files: [
                '<%= path.src.sass %>/**/*.scss'
            ],
            tasks: [
                'sass:boltCss'
            ]
        },

        boltJs: {
            files: options.files.boltJs,
            tasks: [
                'jshint:boltJs',
                'uglify:boltJs'
            ]
        },

        gruntfile: {
            files: [
                'Gruntfile.js'
            ],
            options: {
                reload: true
            }
        }
    };
};

/*
 * WATCH: Run predefined tasks whenever watched file patterns are added, changed or deleted
 */
module.exports = {
    options: {
        spawn: false,
        livereload: true
    },

    boltCss: {
        files: [
            '<%= path.src.sass %>/**/*.scss'
        ],
        tasks: [
            'sass:boltCss'
        ]
    },

    boltJs: {
        files: '<%= files.boltJs %>',
        tasks: [
            'jshint:boltJs',
            'uglify:boltJs'
        ]
    },

    gruntfile: {
        files: [
            'Gruntfile.js'
        ],
        options: {
            reload: true
        }
    }
};

Convert watch task to object style