grunt-s3
grunt-s3 copied to clipboard
Doesn't do anything
When I try to run s3 task, along with other tasks, It doesn't do anything.
$ grunt
Running "s3:prod" (s3) task
Done, without errors.
But if I run this task by specifically mentioning task name, it runs perfectly fine.
$ grunt s3:prod
Running "s3:prod" (s3) task
>> → File Exists, skipped: dist/img/42458215.user.png
>> → File Exists, skipped: dist/img/375d5fe6.horizontal-loader.gif
>> → File Exists, skipped: dist/img/565bf295.no-thumb.jpg
>> → File Exists, skipped: dist/img/72e54712.hotels.png
>> → File Exists, skipped: dist/img/cad7490a.setting.png
>> → File Exists, skipped: dist/img/b639a587.accept.png
>> → File Exists, skipped: dist/img/ed2654aa.pixel.png
>> → File Exists, skipped: dist/img/d33d6e42.copy.png
Done, without errors.
My current configuration are
s3: {
options: {
key: '<%= aws.key %>',
secret: '<%= aws.secret %>',
bucket: '<%= aws.bucket %>',
access: 'public-read',
region: 'ap-southeast-1'
},
prod: {
// These options override the defaults
options: {
maxOperations: 10
},
// Files to be uploaded.
sync: [{
src: 'dist/**/*.*',
dest: 'static/',
rel: 'dist',
options: {
gzip: true,
gzipExclude: ['.jpg', '.jpeg', '.png', '.gif', '.woff', '.wav', '.webp']
}
}]
}
}
and default grunt task is
grunt.registerTask('default', [
'clean:dist',
'less:build',
'cssmin',
'uglify',
'copy:dist',
'copy:template',
'requirejs:dist',
'useminPrepare',
'rev',
'usemin',
'cdn',
'clean:minified',
's3:prod'
]);
Same boat over here, I'm already trying a couple options. I'll let you know if something comes up.
Confirmed, same with me.
Yup, does nothing here too
run grunt s3 -v to see if module is able to select any file.
its not picking up any files as well. I tried absolute/relate/yeoman paths nothing seems to work