module.exports = function(grunt) {
  require('load-grunt-tasks')(grunt);
  var config = require('load-grunt-config')(grunt, {
    configPath: 'tasks/options',
    init: false
  });

  grunt.loadTasks('tasks');

  this.registerTask('default', ['build']);

// Run client-side tests on the command line.
  this.registerTask('test', 'Runs tests through the command line using PhantomJS', [
    'build', 'tests', 'connect'
  ]);

  // Run a server. This is ideal for running the QUnit tests in the browser.
  this.registerTask('server', ['build', 'tests', 'connect', 'watch:server']);


  // Build test files
  this.registerTask('tests', 'Builds the test package', ['concat:deps', 'browserify:tests',
                    'transpile:testsAmd', 'transpile:testsCommonjs', 'buildTests:dist']);

  // Build a new version of the library
  this.registerTask('build', 'Builds a distributable version of <%= cfg.name %>',
                    ['clean', 'transpile:amd', 'transpile:commonjs', 'concat:amd',
                      'concat:browser', 'browser:dist', 'jshint', 'uglify:browser']);

  // Custom phantomjs test task
  this.registerTask('test:phantom', "Runs tests through the command line using PhantomJS", [
                    'build', 'tests', 'mocha_phantomjs']);

  // Custom Node test task
  this.registerTask('test:node', ['build', 'tests', 'mochaTest']);

  this.registerTask('test', ['build', 'tests', 'mocha_phantomjs', 'mochaTest']);

  this.registerTask('release', [ 'clean:build', 'browser:distNoVersion', 'concat:amdNoVersion', 'uglify', 'release-it' ]);

  // Custom YUIDoc task
  this.registerTask('docs', ['yuidoc']);

  config.env = process.env;
  config.pkg = grunt.file.readJSON('package.json');

  // Load custom tasks from NPM
  grunt.loadNpmTasks('grunt-browserify');
  grunt.loadNpmTasks('grunt-mocha-phantomjs');
  grunt.loadNpmTasks('grunt-mocha-test');
  grunt.loadNpmTasks('grunt-contrib-yuidoc');
  grunt.loadNpmTasks('grunt-release-it');

  // Merge config into emberConfig, overwriting existing settings
  grunt.initConfig(config);
};

@@ -1455,16 +1455,22 @@
 erTask('
+build-
 release'
@@ -1472,17 +1472,16 @@
 ease', %5B
- 
 'clean:b
@@ -1486,16 +1486,73 @@
 :build',
+ 'transpile:amd', 'transpile:commonjs', 'concat:browser',
  'browse
@@ -1603,27 +1603,28 @@
 lify
-', 'release-it' 
+:browserNoVersion'
 %5D)
-;
 %0A%0A  

fix task for prebuilding the release files