@@ -182,7 +182,6 @@ module.exports = function(grunt) {
182182 grunt . loadNpmTasks ( 'grunt-contrib-concat' ) ;
183183 grunt . loadNpmTasks ( 'grunt-yui-compressor' ) ;
184184 grunt . loadNpmTasks ( 'grunt-aws' ) ;
185- grunt . loadNpmTasks ( 'grunt-cloudfront' ) ;
186185 grunt . loadNpmTasks ( 'grunt-browserify' ) ;
187186 grunt . loadNpmTasks ( 'intern' ) ;
188187 grunt . loadNpmTasks ( 'grunt-lodash' ) ;
@@ -232,27 +231,22 @@ module.exports = function(grunt) {
232231
233232 grunt . config ( 'cloudfront' , {
234233 options : {
235- region : 'eu-east-1' ,
236- distributionId : '<%= aws.distribution %>' ,
237- listInvalidations : true ,
238- listDistributions : true ,
239- credentials : {
240- accessKeyId : '<%= aws.key %>' ,
241- secretAccessKey : '<%= aws.secret %>'
242- }
234+ accessKeyId : '<%= aws.key %>' ,
235+ secretAccessKey : '<%= aws.secret %>' ,
236+ distributionId : '<%= aws.distribution %>'
243237 } ,
244238 not_pinned : {
245- CallerReference : Date . now ( ) . toString ( ) ,
246- Paths : {
247- Quantity : 1 ,
248- Items : [ '/<%= pkg.version %>/sp.js' ]
239+ options : {
240+ invalidations : [
241+ '/<%= pkg.version %>/sp.js'
242+ ]
249243 }
250244 } ,
251245 pinned : {
252- CallerReference : Date . now ( ) . toString ( ) ,
253- Paths : {
254- Quantity : 1 ,
255- Items : [ '/<%= pkg.pinnedVersion %>/sp.js' ]
246+ options : {
247+ invalidations : [
248+ '/<%= pkg.pinnedVersion %>/sp.js'
249+ ]
256250 }
257251 }
258252 } ) ;
0 commit comments