module.exports = function(revision, tag, date){
  return {
    'ember-data.js': fileObject('ember-data', '.js', 'text/javascript', revision, tag, date),
    'ember-data.min.js': fileObject('ember-data.min', '.js', 'text/javascript', revision, tag, date),
    'ember-data.prod.js': fileObject('ember-data.prod', '.js', 'text/javascript', revision, tag, date)
  }
}

function fileObject(baseName, extension, contentType, currentRevision, tag, date) {
  var fullName = "/" + baseName + extension;
  return {
    contentType: contentType,
    destinations: {
      canary: [
        'canary' + fullName,
        'canary/daily/' + date + fullName,
        'canary/shas/' + currentRevision + fullName
      ],
      stable: [
        'stable' + fullName,
        'stable/daily/' + date + fullName,
        'stable/shas/' + currentRevision + fullName
      ],
      beta: [
        'beta' + fullName,
        'beta/daily/' + date + fullName,
        'beta/shas/' + currentRevision + fullName
      ]
    }
  }
}

@@ -95,20 +95,16 @@
 ber-data
-', '
 .js', 't
@@ -134,32 +134,131 @@
 on, tag, date),%0A
+    'ember-data.js.map': fileObject('ember-data.js.map', 'application/json', revision, tag, date),%0A
     'ember-data.
@@ -292,20 +292,16 @@
 data.min
-', '
 .js', 't
@@ -392,20 +392,16 @@
 ata.prod
-', '
 .js', 't
@@ -469,28 +469,17 @@
 ect(
-bas
+fil
 eName,
- extension,
  con
@@ -522,53 +522,8 @@
 ) %7B%0A
-  var fullName = %22/%22 + baseName + extension;%0A
   re
@@ -611,27 +611,27 @@
 'canary' + f
-ull
+ile
 Name,%0A      
@@ -650,35 +650,35 @@
 ily/' + date + f
-ull
+ile
 Name,%0A        'c
@@ -703,35 +703,35 @@
 rentRevision + f
-ull
+ile
 Name%0A      %5D,%0A  
@@ -760,27 +760,27 @@
 'stable' + f
-ull
+ile
 Name,%0A      
@@ -799,35 +799,35 @@
 ily/' + date + f
-ull
+ile
 Name,%0A        's
@@ -852,35 +852,35 @@
 rentRevision + f
-ull
+ile
 Name%0A      %5D,%0A  
@@ -905,27 +905,27 @@
   'beta' + f
-ull
+ile
 Name,%0A      
@@ -946,27 +946,27 @@
 ' + date + f
-ull
+ile
 Name,%0A      
@@ -1005,11 +1005,11 @@
  + f
-ull
+ile
 Name

Include ember-data.js.map in S3 upload