{"_id":"@ascentio/nx-aws-s3-code-deploy","_rev":"2-f97d98acb1c60fb6115fc3bbaeaf4334","name":"@ascentio/nx-aws-s3-code-deploy","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@ascentio/nx-aws-s3-code-deploy","version":"1.0.0","description":"Deploy your applicaton through CodeDeploy using nx deploy","main":"src/index.js","builders":"./builders.json","schematics":"./collection.json","ng-add":{"save":"devDependencies"},"keywords":["angular","schematics","cli","angular-cli","amazon","aws","deploy","codedeploy","ng deploy","nx deploy"],"private":false,"author":{"name":"Daan van Hulst"},"license":"MIT","dependencies":{"@angular-devkit/architect":">=0.901.0","@angular-devkit/core":">=8.0.0","@angular-devkit/schematics":">=8.0.0","archiver":"^5.1.0","aws-sdk":"^2.599.0","glob":"^7.1.6","mime-types":"^2.1.26"},"typings":"src/index.d.ts","_id":"@ascentio/nx-aws-s3-code-deploy@1.0.0","_nodeVersion":"14.2.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-eg8cB3BYwPw7FgGXdJtoMp3r7bx6cPo8kHgJUNJxzWH0aOvwkgnOw+BFGL5XeeVlzua7X86cT5KBJTkeUJ+1dw==","shasum":"0862c380fdb6bd2328650fbcf14310b7021325f7","tarball":"https://registry.npmjs.org/@ascentio/nx-aws-s3-code-deploy/-/nx-aws-s3-code-deploy-1.0.0.tgz","fileCount":29,"unpackedSize":41577,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf7JbKCRA9TVsSAnZWagAA9oQP/RqS/quKWM95SAyWVZJz\nuYQixz9BxzFc3p0F9JfFYjATiDxRvo70Q3pMQnUk8nX9OfSsb8/PoyXl4A/z\nz+hx0xUKJh8dDxfHNZ2ymh8uAoltmA7QJPXIXUrdKfp99L/7l1V3ucL/bcQZ\nYt8J/xtVyf+Ng6zP2hhcU/Ic3empFuor+o7ZDdVVS4EbHdbiC12mX5jaX1re\nZNqbvQ3jBwB+zlzg2YCTKLwRdja6UWrBzrhrqm0MwPQOghS0u/ZfXvVYDoVT\n1DT0Qb7xipOXO8vfcLPgzvboDZAtMimx6Aou9iLsU2V+GIZQFJQ41KmxgZsn\nVTaUte6x7+icE04L/5g53yxUcdifQFgXPfJRZkhlARseVjpjoEdHW0xpNSJG\n6fVUpzRrg77i9h5ffQHh9st+tM/2rRGulSc3WmGmEIrTNeNaoM7U62pUK+41\noBqUSr8mL+L7VW2h7Ibnj8JYsVhC6QP0cSEfZ+BnvJ42XOoCQwl5lNLWihXO\n8n23pp4o34drI8Pwu1HY0QPpIapLYjdAySbeIwjh1ld5aDjIqasFWVdwPeb3\nbqzQJr8od9zuw0bSxKIcuZXiExpjrrVWahv0CW04UB9v/7Szj5TuTqD/DchO\nDd9WE4/vT4uUbNUqobAOqtr5UEXs7ijwZtFiQFnA/gyv6lrd2xiADtpeuc81\noVgZ\r\n=OUVr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDKEvpiTD2QdUYm3H+GwV6+n0YfCdEQf76bIDK7/MJ0hAiEAwupsOBMCWUp/UONSbeqPMfvZ03eNtBuj8IyNCOOUG2E="}]},"_npmUser":{"name":"daanvanhulst","email":"daan.van.hulst@ascentio.nl"},"directories":{},"maintainers":[{"name":"daanvanhulst","email":"daan.van.hulst@ascentio.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nx-aws-s3-code-deploy_1.0.0_1609340617704_0.005618729676708734"},"_hasShrinkwrap":false},"1.0.1":{"name":"@ascentio/nx-aws-s3-code-deploy","version":"1.0.1","description":"Deploy your applicaton through CodeDeploy using nx deploy","main":"src/index.js","builders":"./builders.json","schematics":"./collection.json","ng-add":{"save":"devDependencies"},"keywords":["angular","schematics","cli","angular-cli","amazon","aws","deploy","codedeploy","ng deploy","nx deploy"],"repository":{"type":"git","url":"git+https://github.com/daanvanhulst/nx-aws-s3-code-deploy.git"},"private":false,"author":{"name":"Daan van Hulst"},"license":"MIT","dependencies":{"@angular-devkit/architect":">=0.901.0","@angular-devkit/core":">=8.0.0","@angular-devkit/schematics":">=8.0.0","archiver":"^5.1.0","aws-sdk":"^2.599.0","glob":"^7.1.6","mime-types":"^2.1.26"},"typings":"src/index.d.ts","bugs":{"url":"https://github.com/daanvanhulst/nx-aws-s3-code-deploy/issues"},"homepage":"https://github.com/daanvanhulst/nx-aws-s3-code-deploy#readme","_id":"@ascentio/nx-aws-s3-code-deploy@1.0.1","_nodeVersion":"14.2.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-KVz2De47vmkZtWy2bce0JXIWmR74LMfGHEtAOMOAczZGVvUH98CKlysD/wQVnNagalb+2kOJ/DPb3exGm8b10w==","shasum":"8ee67e00e126a9c12934be8e38cfbc1cfe7fef63","tarball":"https://registry.npmjs.org/@ascentio/nx-aws-s3-code-deploy/-/nx-aws-s3-code-deploy-1.0.1.tgz","fileCount":29,"unpackedSize":38303,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf7J6VCRA9TVsSAnZWagAAjKcP/3rOH8YsmAM7BHH2tKR7\ng9dJ3e6orOi6leLIdH74eJHd2hkN6YgmonA0+2t7AWmEEqhpSPGKwuRg4z44\nGlhu9vksd2UXztn8mhcq9u62HSjNpkF2YdHXgawcs3MIxbo4GfZnDZpqUssG\nE6kad1S23CBzNhQXmdQOuTKDwc3Rxefl7jiFOmLRx+kVT/PK8DLFUqBSzB3F\nZtmU1w+p22m//mQxi6s1tA6w55dcA1NkdIB6HhyzjBlYynhXyJq+YtkR+qFt\nuV3pGdfLf3iOJ+5uUqv7C1Zn5vw/hzSYjE/Hmq0ANO/EHvimXZzQqHCUScsu\nnda/IZZZxju0j1cS8uFoHbXZZ+eZrPtjUKQ9m3wbiiZTTAPffQmpiWFHR9+f\nmTAdiIDGoGxVLr2IMRJujThKa1sklJpU1b+J2K+h9S0/9MX/4ADafHm7czgh\nwDG24qzZDtCRHp/V8L0VIpWzJxBwB9WibOuUUKiezbR/sSO/u8/K3FtdKqOO\nmRCaDORr05LZrDG5GZHMjlIMuzkOCnyD4Ei0asCkMEI6a9Tm64CeImgxWVYP\n3G/T6aiq7BqqcmhMBspJoDoqSIBsQ1IQJlRqKB31hg0+NDQY+UQMsaMlZdeE\ngz+dz8yKDdloC7StruMENPrF7nict/hUvDbarXTQmLHxRGXRXPL3OiFjOcmC\nLhjt\r\n=/Fci\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaJVorPZhXJG/dmNZGDP2hj30mDy47n6DEdY1h+QNavQIhAKye678SRsaGUCiZ1Waxu7d1w7FUDGdQtdnPideky6yn"}]},"_npmUser":{"name":"daanvanhulst","email":"daan.van.hulst@ascentio.nl"},"directories":{},"maintainers":[{"name":"daanvanhulst","email":"daan.van.hulst@ascentio.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nx-aws-s3-code-deploy_1.0.1_1609342612882_0.9354006884631307"},"_hasShrinkwrap":false}},"time":{"created":"2020-12-30T15:03:37.568Z","1.0.0":"2020-12-30T15:03:37.865Z","modified":"2022-04-04T15:43:05.691Z","1.0.1":"2020-12-30T15:36:53.067Z"},"maintainers":[{"name":"daanvanhulst","email":"daan.van.hulst@ascentio.nl"}],"description":"Deploy your applicaton through CodeDeploy using nx deploy","keywords":["angular","schematics","cli","angular-cli","amazon","aws","deploy","codedeploy","ng deploy","nx deploy"],"author":{"name":"Daan van Hulst"},"license":"MIT","readme":"# NGX-AWS-DEPLOY\n\n☁️🚀 Deploy a node/express/nest (anything really) app to EC2 using CodeDeploy and Amazon S3 directly from the Angular CLI 🚀☁️\n\n_Note: I created this for myself, so you will most likely need to put some time/effort in it yourself. Feel free to create a feature request/bug. Or even better create a pull request_\n\nI created this because I wanted to deploy a nest application within Narwhals NX to a amazon EC2 instance. I have solved this by zipping and uploading the nest.js application including package.json and install scripts and appspec.yml to S3.\n\nCreating a deployment using CodeDeploy which will be triggered after the upload to S3 was succesful.\n\nThere might be an easier way to do this with CodeDeploy directly, but using S3 you can always have a (versioned) artifact. I really like the way the Angular cli has separate steps for test, build, deploy, etc.\n\n## Prerequisites\n\nYou need to create a EC2 instance and have CodeDeploy setup correctly. I followed this tutorial made by Paul Zhao:\nhttps://medium.com/paul-zhao-projects/continuous-deployment-pipeline-with-bitbucket-pipelines-to-aws-ec2-using-aws-code-deploy-684ddcc1717f\n\n## Quick Start\n\n1. Install the latest version of Angular cli\n   yarn global add @angular/cli\n\n2. Create a new Angular project\n   ng new hello-world --defaults\n   cd hello-world\n\n3. Add @ascentio/nx-aws-s3-code-deploy to your project\n   ng add @ascentio/nx-aws-s3-code-deploy\n\n4. create a .env file and add the following variables:\n   NX_DEPLOY_AWS_S3_ACCESS_KEY_ID=\n   NX_DEPLOY_AWS_S3_SECRET_ACCESS_KEY=\n   NX_DEPLOY_AWS_S3_BUCKET=\n   NX_DEPLOY_AWS_S3_REGION=(eu-central-1)\n   NX_DEPLOY_AWS_S3_ZIP=(application.zip)\n   NX_DEPLOY_AWS_S3_APPLICATION_NAME=directcodedeploy\n   NX_DEPLOY_AWS_S3_DEPLOYMENT_GROUP_NAME=CDDeploymentGroup\n\n5. Use nx to create a deployment\n   nx deploy hello-world\n\n## Special thanks\n\nI used this repository as a base https://github.com/Jefiozie/ngx-aws-deploy made by Jeffrey Bosch.\n\nI followed this tutorial made by Paul Zhao:\nhttps://medium.com/paul-zhao-projects/continuous-deployment-pipeline-with-bitbucket-pipelines-to-aws-ec2-using-aws-code-deploy-684ddcc1717f\n\n## License\n\n[MIT](./LICENSE)\n","readmeFilename":"README.md","homepage":"https://github.com/daanvanhulst/nx-aws-s3-code-deploy#readme","repository":{"type":"git","url":"git+https://github.com/daanvanhulst/nx-aws-s3-code-deploy.git"},"bugs":{"url":"https://github.com/daanvanhulst/nx-aws-s3-code-deploy/issues"}}