cibernox/ember-cpm

View on GitHub
bin/s3-config.js

Summary

Maintainability
A
0 mins
Test Coverage
/*eslint-disable no-undef */
module.exports = function(revision, tag){
  var names = ['ember-cpm-latest.js', 'ember-cpm-' + revision + '.js'];
  if (tag) {
    names.push('ember-cpm-' + tag + '.js')
  }
  return {
    'named-amd/ember-cpm.js': {
      contentType: 'text/javascript',
      destinations: {
        canary: names.map(function(name) { return 'named-amd/' + name })
      }
    },

    'globals/ember-cpm.js': {
      contentType: 'text/javascript',
      destinations: {
        canary: names.map(function(name) { return 'globals/' + name })
      }
    }
  };
};