require('es6-promise').polyfill();

module.exports = function(grunt) {

  var sauceLaunchers = require('./test/sauceLaunchers');

  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    jshint: {
      files: ['Gruntfile.js', 'src/**/*.js', 'test/**/*.js'],
      options: {
        jshintrc: true
      }
    },
    mochaTest: {
      test: {
        src: ['test/**/*.spec.js']
      }
    },
    browserify: {
      dist: {
        src: ['src/index.js'],
        dest: 'dist/<%= pkg.name %>.js',
        options: {
          browserifyOptions: {
            standalone: 'Reflux'
          }
        },
      }
    },
    uglify: {
      dist: {
        src: 'dist/reflux.js',
        dest: 'dist/reflux.min.js'
      }
    },
    watch: {
      files: ['<%= jshint.files %>'],
      tasks: ['build']
    },
    karma: {
      local: {
        configFile: 'karma.conf.js',
        options: {
            browsers: ['PhantomJS']
        }
      },
      sauce: {
        configFile: 'karma.conf.js',
        options: {
          reporters: ['dots', 'saucelabs'],
          sauceLabs: {
            public: 'public',
            testName: 'RefluxJS Karma Tests',
            recordVideo: false,
            recordScreenshot: false
          },
          customLaunchers: sauceLaunchers,
          browsers: Object.keys(sauceLaunchers),
          captureTimeout: 120000
        }
      }
    }
  });

  require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

  grunt.registerTask('test', ['jshint', 'mochaTest', 'karma:local']);

  grunt.registerTask('travis', ['test', 'karma:sauce']);

  grunt.registerTask('build', ['test', 'browserify', 'uglify']);

  grunt.registerTask('default', ['watch']);

};

@@ -1054,24 +1054,16 @@
 : %5B'
-dots', '
 saucelab
 s'%5D,
@@ -1058,16 +1058,24 @@
 saucelab
+s', 'dot
 s'%5D,%0A   
@@ -1110,24 +1110,26 @@
     
+%22
 public
+%22
 : 
-'
+%22
 public
-'
+%22
 ,%0A  
@@ -1239,16 +1239,77 @@
 t: false
+,%0A            tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER
 %0A       
@@ -1440,32 +1440,33 @@
 120000%0A        %7D
+,
 %0A      %7D%0A    %7D%0A 
@@ -1644,27 +1644,29 @@
 'travis', %5B'
-tes
+jshin
 t', 'karma:s

Test conf fiddling