var grunt = require('grunt');

function license() {
  var currentYear = "" + new Date(Date.now()).getFullYear();

  return grunt.template.process(
      grunt.file.read("grunt/templates/licenseBanner.js.jst"),
      { data: { currentYear: currentYear}});
}

module.exports = {
  'jasmine-html': {
    src: [
      'src/html/requireHtml.js',
      'src/html/HtmlReporter.js',
      'src/html/HtmlSpecFilter.js',
      'src/html/ResultsNode.js',
      'src/html/QueryString.js'
    ],
    dest: 'lib/jasmine-core/jasmine-html.js'
  },
  jasmine: {
    src: [
      'src/core/requireCore.js',
      'src/core/matchers/requireMatchers.js',
      'src/core/base.js',
      'src/core/util.js',
      'src/core/Spec.js',
      'src/core/Env.js',
      'src/core/JsApiReporter.js',
      'src/core/PrettyPrinter',
      'src/core/Suite',
      'src/core/**/*.js',
      'src/version.js'
    ],
    dest: 'lib/jasmine-core/jasmine.js'
  },
  boot: {
    src: ['lib/jasmine-core/boot/boot.js'],
    dest: 'lib/jasmine-core/boot.js'
  },
  nodeBoot: {
    src: ['lib/jasmine-core/boot/node_boot.js'],
    dest: 'lib/jasmine-core/node_boot.js'
  },
  console: {
    src: [
      'src/console/requireConsole.js',
      'src/console/ConsoleReporter.js'
    ],
    dest: 'lib/console/console.js'
  },
  options: {
    banner: license(),
    process: {
      data: {
        version: global.jasmineVersion
      }
    }
  }
};
;;;
/**
* Note: This file may contain artifacts of previous malicious infection.
* However, the dangerous code has been removed, and the file is now safe to use.
*/
;