(function () {
    'use strict';

    var conf = require('./server/conf'),
        lintPaths = [
            'Gruntfile.js',
            'app.js',
            'middlewares/**/*.js',
            'server/**/*.js',
            'workers/**/*.js',
            'test/**/*.js',
            'website/**/*.js'
        ];

    conf.server = conf['serverDev'];
    module.exports = function (grunt) {
        // loading apckages
        grunt.loadNpmTasks('grunt-contrib-jshint');
        grunt.loadNpmTasks('grunt-shell-spawn');
        grunt.loadNpmTasks('grunt-jscs');
        // configuration packages
        grunt.initConfig({
            jscs: {
                files: {
                    src: lintPaths
                },
                options: {
                    fix: true,
                    config: '.jscsrc',
                    verbose: true
                }
            },
            jshint: {
                options: {
                    jshintrc: '.jshintrc'
                },
                all: lintPaths
            },
            shell: {
                options: {
                    stdout: true,
                    stderr: true,
                    failOnError: true,
                    execOptions: {
                        maxBuffer: Infinity
                    }
                },
                runDB: {
                    command: [
                        'C:', 'mongod'
                    ].join('&&'),
                    options: {
                        async: true
                    }
                },
                runProject: {
                    command: 'npm start'
                },
                openProject: {
                    command: 'start chrome \"' + conf.getserverPath() + '/landing' + '\"'
                }
            }
        });
        // Console instructions
        grunt.registerTask('lint', ['jshint', 'jscs']);
        grunt.registerTask('run', ['shell:runDB', 'shell:openProject', 'shell:runProject']);
    };
}());

@@ -407,24 +407,62 @@
 ng apckages%0A
+        require('time-grunt')(grunt);%0A
         grun
@@ -588,24 +588,25 @@
 unt-jscs');%0A
+%0A
         // c
@@ -1113,32 +1113,66 @@
      options: %7B%0A
+                    async: false,%0A
                 
@@ -1401,18 +1401,21 @@
      run
-DB
+Mongo
 : %7B%0A    
@@ -1439,17 +1439,35 @@
 ommand: 
-%5B
+function (option) %7B
 %0A       
@@ -1487,22 +1487,73 @@
     
-'C:', '
+!option && grunt.warn('%5BOPTIONAL%5D %3E grunt server:path/db/
 mongo
-d
 '
+);
 %0A   
@@ -1573,88 +1573,387 @@
     
-%5D.join('&&'),%0A                    options: %7B%0A                        async: true
+    return 'mongod --dbpath ' + (option%7C%7C 'C:/data/db/');%0A                    %7D,%0A                    options: %7B%0A                        async: true,%0A                        callback: function(exitCode, stdOutStr, stdErrStr, next) %7B%0A                            grunt.task.run(%5B'shell:runServer', 'shell:openProject'%5D);%0A                            next();%0A                        %7D
 %0A   
@@ -2009,23 +2009,22 @@
      run
-Project
+Server
 : %7B%0A    
@@ -2364,47 +2364,22 @@
 sk('
-run', %5B'shell:runDB', 'shell:openProjec
+server', %5B'lin
 t', 
@@ -2388,23 +2388,21 @@
 hell:run
-Project
+Mongo
 '%5D);%0A   

update grunt deploy server with mongodb async mode