
module.exports = function (grunt) {

  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    jshint: {
      //jshintrc: '.jshintrc',
      all: ['Grunfile.js', 'talkie.js', 'public/js/*.js', 'routes/*.js'],
      options: {
        globals: {
          'angular': true,
          '_': true,
          'console': true,
          'window': true,
          'document': true
        }
      }
    },
    uglify: {
      build: {
        src: 'public/js/src/*.js',
        dest: 'public/js/main.min.js'
      }
    },
    nodemon: {
      dev: {
        options: {
          file: 'talkie.js',
          ignoredFiles: ['README.md', 'node_modules/**'],
          watchedExtensions: ['js'],
          watchedFolders: ['public', 'routes', 'views'],
          debug: true,
          delayTime: 1,
          env: {
            PORT: 3000,
          },
          cwd: __dirname
        }
      },
      exec: {
        options: {
          exec: 'less',
        }
      }
    }
  });

  grunt.loadNpmTasks('grunt-contrib-jshint');
  //grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-nodemon');

  grunt.registerTask('default', ['jshint', 'nodemon']); // 'uglify'

};

@@ -892,24 +892,214 @@
  %7D%0A      %7D,%0A
+      prod: %7B%0A        options: %7B%0A          file: 'talkie.js',%0A          args: %5B'production'%5D,%0A          env: %7B%0A            PORT: 80,%0A          %7D,%0A          cwd: __dirname%0A        %7D%0A      %7D,%0A
       exec: 

Add production for nodemon.