/**
 * For the authoring tool
 */
module.exports = function(grunt) {
  grunt.registerTask('server-build', 'Builds the course without JSON [used by the authoring tool]', function(mode) {
    var requireMode = (mode === 'dev') ? 'dev' : 'compile';

    grunt.task.run([
      '_log-vars',
      'build-config',
      'copy',
      'language-data-manifests',
      'less:' + requireMode,
      'handlebars',
      'javascript:' + requireMode,
      'babel:' + requireMode,
      'replace',
      'scripts:adaptpostbuild',
      'clean:temp'
    ]);
  });
};
