-
Notifications
You must be signed in to change notification settings - Fork 29
/
amplify.yml
42 lines (42 loc) · 1.83 KB
/
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
38
39
40
41
42
# Rewrites and redirect configuration
# Source address </^[^.]+$|\.(?!(css|html|gif|ico|jpg|js|png|txt|svg|woff|ttf|map|json)$)([^.]+$)/>
# Target address /index.html
# Type 200 (Rewrite)
version: 2.0
frontend:
phases:
preBuild:
commands:
- echo "Build env:" $BUILD_ENV
- npm i
build:
commands:
# Kommunicate Test
- if [ "${BUILD_ENV}" = "test" ]; then npm run build-test; fi
# Kommunicate Release
- if [ "${BUILD_ENV}" = "release" ]; then npm run build-release; fi
# Kommunicate Staging
- if [ "${BUILD_ENV}" = "staging" ]; then npm run build-staging; fi
# Kommunicate Prod
- if [ "${BUILD_ENV}" = "prod" ]; then npm run build-prod; fi
# Kommunicate Enterprise
- if [ "${BUILD_ENV}" = "prod-enterprise" ]; then npm run build-prod-enterprise; fi
# Kommunicate Prod Mumbai
- if [ "${BUILD_ENV}" = "prod-in" ]; then npm run build-prod-in; fi
# Kommunicate Prod Europe
- if [ "${BUILD_ENV}" = "prod-eu" ]; then npm run build-prod-eu; fi
# Kommunicate Prod Canada
- if [ "${BUILD_ENV}" = "prod-cn" ]; then npm run build-prod-cn; fi
# Kommunicate beta
- if [ "${BUILD_ENV}" = "prod_beta" ]; then npm run build-beta; fi
# If no environment variable is provided then build kommunicate test bundle.
- if [ "${BUILD_ENV}" = "" ]; then npm run build-test; fi
artifacts:
# build output directory
baseDirectory: webplugin/build
files:
- "**/*"
cache:
paths:
- node_modules/**/*
# - package-lock.json