Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move s3 publishing config from ember-publisher to ember data
- Loading branch information
1 parent
b6e5fa2
commit ebe3bc0
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
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 | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters