module.exports = function(grunt) {
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        sass: {
            dist: {
                files: {
                    "dev/css/styles.css": "dev/scss/styles.scss"
                }
            }
        },
        watch: {
            livereload: {
                options: { livereload: true },
                files: ['dev/css/*.css', 'dev/js/*.js', 'dev/index.html']
            },
            sass: {
                files: 'dev/scss/*.scss',
                tasks: ['sass']
            },
            scripts: {
                files: 'dev/js/app/*.js',
                tasks: 'concat:watch'
            }
        },
        connect: {
            server: {
                options: {
                    port: 8888,
                    hostname: '*',
                    livereload: true,
                    open: true,
                    base: 'dev'
                }
            },
            buildTest: {
                options: {
                    port: 8888,
                    hosthame: '*',
                    open: true,
                    base: 'build',
                    keepalive: true
                }
            }
        },
    });

    grunt.loadNpmTasks('grunt-contrib-connect');
    grunt.loadNpmTasks('grunt-contrib-sass');
    grunt.loadNpmTasks('grunt-contrib-watch');

    grunt.registerTask('server', [
        'sass',
        'connect:server',
        'watch'
    ]);
};

//for zip creation
var dateHash = function() {
    var today = new Date();
    var dd = today.getDate();
    var mm = today.getMonth()+1; //January is 0!
    var yyyy = today.getFullYear();

    if(dd<10) {
        dd='0'+dd
    }

    if(mm<10) {
        mm='0'+mm
    }

    var date = yyyy + '-' + mm + '-' + dd + '.' + today.getTime();
    return date;
}

@@ -1481,364 +1481,4 @@
 %0A%7D;%0A
-%0A//for zip creation%0Avar dateHash = function() %7B%0A    var today = new Date();%0A    var dd = today.getDate();%0A    var mm = today.getMonth()+1; //January is 0!%0A    var yyyy = today.getFullYear();%0A%0A    if(dd%3C10) %7B%0A        dd='0'+dd%0A    %7D%0A%0A    if(mm%3C10) %7B%0A        mm='0'+mm%0A    %7D%0A%0A    var date = yyyy + '-' + mm + '-' + dd + '.' + today.getTime();%0A    return date;%0A%7D%0A

clean up gruntfile