middleman-cloudfront icon indicating copy to clipboard operation
middleman-cloudfront copied to clipboard

Make compatible with Middleman v3 and v4

Open manuelmeurer opened this issue 8 years ago • 2 comments

After merging #23 (and doing some cleanup), the master branch currently only works with Middleman v4. I would like it to work with Middleman v3 and v4 and then release 1.0. 😄 It shouldn't be too hard, we probably only need to make sure to use the v3 syntax for loading the Extension and Invalidate classes (see lib/middleman-bootstrap-navbar/extension.rb here) First I would like to add Appraisal to test different Middleman versions and started to do so in the appraisals branch. Since I'm no good at Cucumber, I'm having a hard time writing the cukes though. 😄 If someone could help me out here, that would be fantastic. @andrusha do you have time?

manuelmeurer avatar May 05 '16 08:05 manuelmeurer

I had been using both middleman-s3_sync and this gem, but with the after_sync being removed in Middleman v4, and out of curiosity, I started looking for alternatives. I came across a gem that does not have any dependency on any specific static site generator. This means you can use it with any version of Middleman or Jekyll or any other generator. Check it out, it's really cool:

https://github.com/laurilehmijoki/s3_website

It supports S3 sync, CF invalidation, redirects, and a lot more.

monfresh avatar Jun 05 '16 16:06 monfresh

@monfresh Looks interesting, thanks for the hint! 😄

manuelmeurer avatar Jun 11 '16 15:06 manuelmeurer