machine:
  environment:
    PATH_TO_BUILD: ./public
    SURGE_DOMAIN_DEV: ecomchicago-dev.surge.sh
    SURGE_DOMAIN_PROD: www.ecomchicago.com
  node:
    version: 6.9.1

dependencies:
  override:
    - yarn install
test:
  override:
    - echo "Just ship it! 📦"
  post:
    - yarn run build

deployment:
  development:
    branch: develop
    commands:
      - ./node_modules/.bin/surge --project $PATH_TO_BUILD --domain $SURGE_DOMAIN_DEV
  production:
    branch: master
    commands:
      - ./node_modules/.bin/surge --project $PATH_TO_BUILD --domain $SURGE_DOMAIN_PROD

machine:
  environment:
    PATH_TO_BUILD: ./public
    SURGE_DOMAIN_DEV: ecomchicago-dev.surge.sh
    SURGE_DOMAIN_PROD: www.ecomchicago.com
  node:
    version: 6.9.1

dependencies:
  override:
    - yarn install
test:
  override:
    - echo "Just ship it! 📦"
  post:
    - rm -rf .cache
    - yarn run build

deployment:
  development:
    branch: develop
    commands:
      - ./node_modules/.bin/surge --project $PATH_TO_BUILD --domain $SURGE_DOMAIN_DEV
  production:
    branch: master
    commands:
      - ./node_modules/.bin/surge --project $PATH_TO_BUILD --domain $SURGE_DOMAIN_PROD

Clean cache prior to build
Clean cache prior to build
