buildspec.yml 478 B

12345678910111213141516171819
  1. version: 0.1
  2. phases:
  3. install:
  4. commands:
  5. - npm install -g @angular/cli
  6. build:
  7. commands:
  8. - npm install
  9. - npm run build:production
  10. post_build:
  11. commands:
  12. # - aws s3 cp dist s3://${S3_BUCKET} --recursive
  13. # - aws configure set preview.cloudfront true
  14. # - aws cloudfront create-invalidation --distribution-id ${CLOUDFRONT_DISTRIBUTION_ID} --paths '/*'
  15. artifacts:
  16. files:
  17. - '**/*'
  18. base-directory: 'dist*'
  19. discard-paths: yes