Using Grunt, NodeJs and Express, what module(s) should I use to:
Discover all static assets (frontend JS, CSS, images) in the app, either by looking at an asset directory or parsing through the codebase
Upload assets to Amazon S3 / CloudFront, renaming each file with a unique "fingerprinted" name
Replace each asset's path in the codebase with the CloudFront URL
Invalidate old CDN assets
This is my first time using CloudFront. I am not sure if all of the above can be accomplished with Grunt, or whether it is best accomplished as a Node/Express module.
With Rails, I've read it's as easy as:
# Setup amazon CDN
config.action_controller.asset_host = "xxxxxxxxxxxxx.cloudfront.net"
and I'm looking for a similar solution for a Node stack.