machine:
  node:
    version: 5.0.0
  post:
    - npm install -g npm@3.x.x

  environment:
    CONTINUOUS_INTEGRATION: true

test:
  post:
    - npm run build

deployment:
  staging:
    branch: master
    codedeploy:
      staging-aurity:
        application_root: /
        revision_location:
          revision_type: S3
          s3_location:
            bucket: aurity-staging
            key_pattern: client/{SHORT_COMMIT}-{BUILD_NUM}
        region: us-west-2
        deployment_group: staging

machine:
  node:
    version: 5.0.0
  post:
    - npm install -g npm@3.x.x

  environment:
    CONTINUOUS_INTEGRATION: true

test:
  post:
    - npm run build

deployment:
  staging:
    branch: master
    codedeploy:
      staging-aurity:
        application_root: /build
        revision_location:
          revision_type: S3
          s3_location:
            bucket: aurity-staging
            key_pattern: client/{SHORT_COMMIT}-{BUILD_NUM}
        region: us-west-2
        deployment_group: staging

Package up only build folder
Package up only build folder
