// Generated on 2014-05-23 using generator-wix-angular 0.1.50
'use strict';

module.exports = function (grunt) {
  var unitTestFiles = [];
  require('./karma.conf.js')({set: function (karmaConf) {
    unitTestFiles = karmaConf.files.filter(function (value) {
      return value.indexOf('bower_component') !== -1;
    });
  }});
  require('wix-gruntfile')(grunt, {
    port: 9000,
    preloadModule: 'angularWidgetApp',
    unitTestFiles: unitTestFiles,
    protractor: true
  });

  var yeoman = grunt.config('yeoman');
  yeoman.local =  'http://localhost:<%= connect.options.port %>/';
  grunt.config('yeoman', yeoman);

  var karma = grunt.config('karma');
  karma.teamcity.coverageReporter = {dir : 'coverage/', type: 'lcov'};
  grunt.config('karma', karma);

  var uglify = grunt.config('uglify');
  uglify.options =  {mangle: false, compress: false, beautify: true};
  grunt.config('uglify', uglify);

  var copy = grunt.config('copy');
  copy.js =  {
    expand: true,
    cwd: 'dist/scripts',
    dest: '',
    src: 'angular-widget.js'
  };
  grunt.config('copy', copy);

  grunt.renameTask('build', 'build.old');
  grunt.registerTask('build', ['build.old', 'copy:js']);
};

@@ -470,72 +470,83 @@
 true
+,
 %0A  
-%7D);%0A%0A  var yeoman = grunt.config('yeoman');%0A  yeoman.
+  bowerComponent: true%0A  %7D);%0A%0A  grunt.modifyTask('yeoman', %7B%0A    
 local
- = 
+:
  'ht
@@ -593,99 +593,68 @@
 %25%3E/'
-;
 %0A  
-grunt.config('yeoman', yeoman);%0A%0A  var karma = grunt.config('karma');%0A  karma.teamcity.
+%7D);%0A%0A  grunt.modifyTask('karma', %7B%0A    teamcity: %7B%0A      
 cove
@@ -665,18 +665,17 @@
 Reporter
- =
+:
  %7Bdir : 
@@ -704,237 +704,63 @@
 ov'%7D
-;
 %0A  
-grunt.config('karma', karma);%0A%0A  var uglify = grunt.config('uglify');%0A  uglify.options =  %7Bmangle: false, compress: false, beautify: true%7D;%0A  grunt.config('uglify', uglify);%0A%0A  var copy = grunt.config('copy');%0A  copy.js =  %7B%0A
+  %7D%0A  %7D);%0A%0A  grunt.modifyTask('copy', %7B%0A    js: %7B%0A  
     
@@ -769,24 +769,26 @@
 pand: true,%0A
+  
     cwd: 'di
@@ -804,16 +804,18 @@
 s',%0A    
+ 
+ 
 dest: ''
@@ -816,16 +816,18 @@
 st: '',%0A
+  
     src:
@@ -853,38 +853,15 @@
 '%0A  
-%7D;%0A  grunt.config('copy', copy
+  %7D%0A  %7D
 );%0A%0A
@@ -872,14 +872,12 @@
 unt.
-rename
+hook
 Task
@@ -888,68 +888,15 @@
 ild'
-, 'build.old');%0A  grunt.registerTask('build', %5B'build.old', 
+).push(
 'cop
@@ -904,11 +904,11 @@
 :js'
-%5D
 );%0A
+%0A
 %7D;%0A

fix gruntfile