-
Notifications
You must be signed in to change notification settings - Fork 0
/
amplify.yml
37 lines (36 loc) · 880 Bytes
/
amplify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: 1.0
backend:
phases:
preBuild:
commands:
- nvm use 20
- npm ci
- ./node_modules/.bin/patch-package
- FORCE_COLOR=false npx nx test-coverage backend --no-colors
build:
commands:
- cd libs/backend
- amplifyPush --simple
- cd ../../
frontend:
phases:
preBuild:
commands:
- nvm use 20
- npm install --quiet --global expo-cli
- npm install --quiet --global eas-cli
- npm ci
- ./node_modules/.bin/patch-package
- FORCE_COLOR=false npx nx run-many -t test-coverage --no-colors
build:
commands:
- npx nx export-web my-app
- npx nx update-preview-ci my-app
artifacts:
baseDirectory: dist/apps/my-app
files:
- '**/*'
cache:
paths:
- node_modules/**/*
- $(npm root --global)/**/*