forked from gothinkster/angular-realworld-example-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
30 lines (28 loc) · 934 Bytes
/
buildspec.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: 0.1
phases:
install:
commands:
- echo installing nodejs....working.......on.....it
- curl -sL https://deb.nodesource.com/setup_12.x | bash -
- apt-get install -y nodejs
- echo installing yarn...again...do...it.....we..
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
- apt install --no-install-recommends yarn
pre_build:
commands:
- echo installing dependencies......
- npm i -g @angular/cli
- npm install
- sed -i 's|api_url:.*|api_url:\ \'"'http://$Name'"'|g' src/environments/environment.prod.ts
- cat src/environments/environment.prod.ts
build:
commands:
# - echo testing..
# - echo building...
- ng build --prod
artifacts:
files:
- "**/*"
discard-paths: no
base-directory: dist