publish your static assets to amazon s3
$ npm install aws-publisher
aws-publisher let you upload files within a directory to your amazon s3 bucket.
- it only uploads new or modified files to your bucket.
- it sets a far expiry date and zip files
Publisher = require 'aws-publisher'# create s3 publisherpublisher = bucket: 'name'key: 'xx'secret: 'xx'# define filter closure that will only select js, png, and css file= statisDirectory or /\.$/test f# publish 'public' dir to root folder '' of the bucketpublisherpublishDir origin: 'public'dest: ''filtercb