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

grunt.initConfig({
  '6to5': {
    options: {
      sourceMap: true,
      modules: 'ignore'
    },
    dist: {
      files:  [{
        src: '.tmp/es6/concat.js',
        dest: '.tmp/es5/concat.js'
      }]
    }
  },
  concat: {
    options: {
      sourceMap: true,
      separator: '\n'
    },
    dist: {
      src: [
        'src/intro.js',
        '.tmp/es5/concat.js',
        'src/outro.js'
      ],
      dest: 'dist/chem.js'
    },
    es6: {
      src: ['src/**/*.js', '!src/intro.js', '!src/outro.js'],
      dest: '.tmp/es6/concat.js'
    }
  },
  uglify: {
    options: {
      sourceMap: true
    },
    build: {
      files: {
        'dist/chem.min.js': ['dist/chem.js']
      }
    }
  },
  watch: {
    options: {
      spawn: false
    },
    livereload: {
      files: ['src/**/*.js', 'examples/**/*'],
      options: {
        livereload: true
      }
    },
    scripts: {
      files: ['src/**/*.js'],
      tasks: ['default']
    },
    examples: {
      files: ['examples/**/*'],
      options: {
        livereload: true
      }
    },
    elements: {
      files: ['src/data/elements.json'],
      tasks: ['shell:elements']
    }
  },
  jshint: {
    options: {
      jshintrc: '.jshintrc'
    },
    allFiles: [
      'src/**/*.js', '!src/intro.js', '!src/outro.js'
    ]
  },
  clean: {
    tmp: ['.tmp']
  },
  shell: {
    options: {
      stderr: false
    },
    elements: {
      command: 'node data.js'
    }
  }
});

grunt.registerTask('default', ['clean', 'concat:es6', '6to5', 'concat:dist']);

grunt.registerTask('build', ['default', 'uglify']);
@@ -828,300 +828,73 @@
     
-livereload: %7B%0A      files: %5B'src/**/*.js', 'examples/**/*'%5D,%0A      options: %7B%0A        livereload: true%0A      %7D%0A    %7D,%0A    scripts: %7B%0A      files: %5B'src/**/*.js'%5D,%0A      tasks: %5B'default'%5D%0A    %7D,%0A    examples: %7B%0A      files: %5B'examples/**/*'%5D,%0A      options: %7B%0A        livereload: true%0A      %7D
+scripts: %7B%0A      files: %5B'src/**/*.js'%5D,%0A      tasks: %5B'default'%5D
 %0A   

Remove livereload from watch task