module.exports = function (grunt) {
  'use strict';

  var liveReloadPort = 35729;

  require('load-grunt-tasks')(grunt);

  grunt.initConfig({
    pkg: grunt.file.readJSON('bower.json'),
    // Files to watch for changes in order to make the browser reload
    watch: {
      options: {
        livereload: liveReloadPort
      },
      livereload: {
        files: [
          'index.html',
          'src/**/*.js'
        ]
      },
    },

    // Fires up a simple connect server - useful for development
    connect: {
      options: {
        port: 9999,
        hostname: 'localhost',
        livereload: liveReloadPort
      },
      livereload: {
        options: {
          open: true,
          base: [
            // Directories to serve static files from
            '.',
            'app',
            'src',
          ]
        }
      }
    },
    uglify: {
      options: {
        preserveComments: 'some'
      },
      dist: {
        src: '<%= pkg.name %>.js',
        dest: '<%= pkg.name %>.min.js'
      }
    },
    concat: {
      options: {
        process: true
      },
      dist: {
        src: 'src/<%= pkg.name %>.js',
        dest: '<%= pkg.name %>.js'
      }
    },
    karma: {
      dist: {
        configFile: 'karma.conf.js',
        browsers: ['PhantomJS']
      },
      watch: {
        configFile: 'karma.conf.js',
        singleRun: false,
        autoWatch: true
      }
    },
    conventionalChangelog: {
      options: {
        changelogOpts: {
          // conventional-changelog options go here
          preset: 'angular'
        },
      },
      release: {
        src: 'CHANGELOG.md'
      }
    },
    ngmin: {
      dist: {
        src: '<%= pkg.name %>.js',
        dest: '<%= pkg.name %>.js'
      }
    }
  });

  grunt.registerTask('default', ['concat', 'ngmin', 'uglify']);
  grunt.registerTask('server', ['default', 'connect:livereload', 'watch']);
  grunt.registerTask('test', ['karma:dist']);
};

@@ -1652,105 +1652,8 @@
  %7D,%0A
-    ngmin: %7B%0A      dist: %7B%0A        src: '%3C%25= pkg.name %25%3E.js',%0A        dest: '%3C%25= pkg.name %25%3E.js'%0A
     

remove ngmin task