ng2-to-s3
Simple tool to publish an Angular project to an existing AWS S3 Bucket.
Steps
npm install ng2-to-s3
Add a ng2-s3-config.json file in your project root folder containing:
{
"bucket": "",
"region": "",
"accessKeyId": "",
"secretAccessKey": "",
"distFolder": ""
}
bucket
The name of your bucket.
region
The region your bucket is in.
accessKeyId
Your AWS Access Key ID: http://docs.aws.amazon.com/general/latest/gr/managing-aws-access-keys.html
secretAccessKey
Your AWS Secret Access Key: http://docs.aws.amazon.com/general/latest/gr/managing-aws-access-keys.html
distFolder
The folder that your production version is in: For Angular CLI, it is "./dist".
On terminal, type
s3-pub
If it does not work, type npm link before.