-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide an array back listing the file actions and details. #35
Comments
Hi there! If you want to experiment, the array is called Let me know how it goes! |
Any luck @rainabba? |
@rainabba I'm quite interested in this if you made any discoveries. I'm closing this for now, but feel free to re-open. |
@rainabba Just to let you know this feature finally made it into the plugin. It now exports a variable on the grunt config with the list of changed files. |
Great timing for me as my work with S3 is going to resume as of about 2 hours ago so thanks! |
any examples on how to use aws_s3_changed in the gruntfile? |
Haven't used that personally, but you should be able to get what the list of files through |
Is this what you mean? invalidate_cloudfront: {
options: {
key: 'XXX',
secret: 'XXX',
distribution: 'xxx'
},
production: {
files: grunt.config.get('aws_s3_changed')
}
} |
That's what I would try first, yes. Yet, I'm not sure what format grunt-invalidate-cloudfront expects for files, but it might just work. If not, you may have to map over the array of changed files and provide the changed files. Additionally, you probably want to check that |
Here's the error that I got
Looks like it's empty. :-( |
so does this just not work? |
Well, in theory it should work, but in practice it might be hard to pass that info to another plugin if |
First thing i tried was
no dice :( |
As in, it crashes or it returns an empty array? |
It's empty. I'll do my best a little later. Been really busy. |
Sure! Thanks for testing :)
|
Dropping a breadcrumb: dynamic loading solution here |
I didn't see that this is available and admittedly haven't dug into code yet, but I wanted to get the ball rolling just in case because that output object would be very useful for other operations such as here: mllrsohn/grunt-invalidate-cloudfront#9
Accepting a callback or returning a promise that could be passed this object would be a great approach too.
The text was updated successfully, but these errors were encountered: