Skip to content

Instantly share code, notes, and snippets.

@bensewell
Created November 10, 2021 17:21
Show Gist options
  • Save bensewell/60b9aafa23c156e98735b66b702aaf53 to your computer and use it in GitHub Desktop.
Save bensewell/60b9aafa23c156e98735b66b702aaf53 to your computer and use it in GitHub Desktop.
version: 1
backend:
phases:
build:
commands:
- |-
export X=`npm root -g`
cd $X/@aws-amplify/cli/node_modules/amplify-provider-awscloudformation && npm install ajv@^6.12.3
- amplifyPush --simple
frontend:
phases:
preBuild:
commands:
- nvm install 14
- npm ci
- npm install --silent --global expo-cli
- |-
if [ -f yarn.lock ]; then
yarn
elif [ -f package-lock.json ] || [ -f npm-shrinkwrap.json ]; then
npm ci
else
npm install
fi
build:
commands:
- "expo build:web"
artifacts:
baseDirectory: web-build
files:
- "**/*"
cache:
paths:
- node_modules/**/*
- $(npm root --global)/**/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment