Package Exports
- @jefiozie/ngx-aws-deploy
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@jefiozie/ngx-aws-deploy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
NGX-AWS-DEPLOY
☁️🚀 Deploy your Angular app to Amazon S3 directly from the Angular CLI 🚀☁️
Quick Start
Install the latest version of Angular cli
yarn global add @angular/cli
Create a new Angular project
ng new hello-world --defaults cd hello-world
Add
@jefiozie/ngx-aws-deployto your projectng add @jefiozie/ngx-aws-deployYou will be prompted for a couple of questions:
- Your AWS Region
- The bucket you would like the files to be uploaded.
- The folder where the files should be uploaded (optional)
By default we will add the configuration for production setup.
After these step your
angular.jsonis update with a new builder:"deploy": { "builder": "@jefiozie/ngx-aws-deploy:deploy", "options": { "configuration": "production", "region": "YOUR REGION", "bucket": "YOUR BUCKET", }
Run
ng deployto deploy your application to Amazon S3.
🚀Happy deploying! 🚀
Security 🔑
Keep in mind that with the default config, everybody that has access to the angular.json will have your aws secret.
If you want more security, you can also use environment variable with NG_DEPLOY_AWS_ACCESS_KEY_ID, NG_DEPLOY_AWS_SECRET_ACCESS_KEY, NG_DEPLOY_AWS_BUCKET and NG_DEPLOY_AWS_REGION.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
The builder is located in the builderfolder.
The sample app is located in the builder-test folder.
Please make sure to update tests as appropriate.
License
Contributors ✨
Thanks goes to these wonderful people (emoji key):
Jeffrey Bosch 💻 🖋 👀 |
Santosh Yadav 💻 |
Nicolas Beaussart 💻 |
Stefan Nieuwenhuis 💻 |
Zack Yang 💻 |
David Houseknecht 📖 |
Brian Harris 📖 |
Michael Vogl 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!