-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathamplify.yml
30 lines (29 loc) · 869 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
version: 1
applications:
- appRoot: apps/city-tasks-app
backend:
phases:
preBuild:
commands:
- echo '{"version":1,"projects":{"city-tasks-app":{"root":"apps/city-tasks-app","projectType":"application","architect":{}}}}' > angular.json
build:
commands:
- amplifyPush --simple
postBuild:
commands:
- rm angular.json
frontend:
buildPath: /
phases:
preBuild:
commands:
- npm install -g pnpm
- pnpm install
- echo '{"aws_project_region":"us-east-1"}' > apps/city-tasks-app/src/amplifyconfiguration.json
build:
commands:
- npx nx run city-tasks-app:build:$USER_BRANCH --verbose
artifacts:
baseDirectory: dist/city-tasks-app
files:
- '**/*'