From debaea75dfffd5fe4bf434b8f2ac27dd250df67f Mon Sep 17 00:00:00 2001 From: Ron Waldon Date: Thu, 8 Aug 2013 20:13:09 +1000 Subject: [PATCH] fix documentation, bump version, and prepare for `npm publish` --- README.md | 25 +++++++++++++++++++++++-- package.json | 4 ++-- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 30e29c4..9b4b890 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Synchronise a local directory with AWS CloudFront / S3, maintaining correct headers, etc. -**This project is not yet functional.** +Functionality is sufficient to replace s3cmd with better MIME detection. ## Goals @@ -96,7 +96,28 @@ _(Coming soon)_ _(Coming soon)_ ## Examples -_(Coming soon)_ + +### Example .cdn-sync.json + +``` +{ + "targets": [ + { + "type": "aws", + "options": { + "accessKeyId": "...", + "secretAccessKey": "...", + "region": "...", + "sslEnabled": true, + "Bucket": "..." + }, + "strategy": ["clone"] + } + ] +} +``` + +Note: for targets[index].options, use the options you would pass to the [AWS.S3 constructor](http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3_20060301.html#constructor-property). ## Contributing Formal styleguide for this project is JSLint. See JSLint settings at the top of diff --git a/package.json b/package.json index 6db0ead..98d5f3f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "cdn-sync", - "description": "deflate / synchronous assets to a CDN", - "version": "0.0.1", + "description": "deflate / synchronise assets to a CDN", + "version": "0.1.0", "homepage": "https://github.com/jokeyrhyme/cdn-sync", "author": { "name": "Ron Waldon",