Skip to content

Commit a81b424

Browse files
fix(perf): Update to angular 9 (#509)
* Update Angular to 8.2.3 before updating to 9 * Fresh npm install Also temporary installed packages for upgrade (see:angular/angular#35221 (comment)) * Update to Angular 9! * Update Angular Material to 9 * Migrate Localization to * Update Dependencies and remove previously packages needed for upgrade * Migrate ngxs state classes * Migrating localization * Update build * update node version * update node version * update node version * trans(localize): move configuration remove superflous test lang in xliff config * update translation generation * update Angular.json config to newest format - clean up the redundancy - fix build - fix tests * update build * Update multi lang tool chain and fix bugs * fix build * update docker build * fix translation file * update puppeteer to fix build * readd protractor.conf.js * update docs * Update TODO * update deps * fix organigram auto link navigation
1 parent 80fb7f1 commit a81b424

File tree

71 files changed

+13676
-15269
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+13676
-15269
lines changed

.azure/pipelines/Phonebook.preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
- task: UseNode@1
1919
inputs:
20-
version: '11.x'
20+
version: '12.x'
2121

2222
- script: node version.js $(image_tag) $(Build.SourceVersion) $(Build.SourceVersion)
2323
displayName: 'Write Version Number'

.azure/pipelines/pr/Phonebook.Frontend.pr.yml

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- task: UseNode@1
1717
inputs:
18-
version: '11.x'
18+
version: '12.x'
1919

2020
- task: Npm@1
2121
inputs:
@@ -37,7 +37,7 @@ jobs:
3737
steps:
3838
- task: UseNode@1
3939
inputs:
40-
version: '11.x'
40+
version: '12.x'
4141

4242
- task: Npm@1
4343
inputs:
@@ -52,14 +52,14 @@ jobs:
5252
workingDir: 'Phonebook.Frontend/'
5353
customCommand: 'run test'
5454

55-
- job: build_de
56-
displayName: Build (de)
55+
- job: build
56+
displayName: Build
5757
pool:
5858
vmImage: 'Ubuntu-16.04'
5959
steps:
6060
- task: UseNode@1
6161
inputs:
62-
version: '11.x'
62+
version: '12.x'
6363

6464
- task: Npm@1
6565
inputs:
@@ -72,26 +72,4 @@ jobs:
7272
inputs:
7373
command: 'custom'
7474
workingDir: 'Phonebook.Frontend/'
75-
customCommand: 'run build:de'
76-
77-
- job: build_en
78-
displayName: Build (en)
79-
pool:
80-
vmImage: 'Ubuntu-16.04'
81-
steps:
82-
- task: UseNode@1
83-
inputs:
84-
version: '11.x'
85-
86-
- task: Npm@1
87-
inputs:
88-
command: 'custom'
89-
customCommand: 'ci'
90-
workingDir: 'Phonebook.Frontend/'
91-
92-
- task: Npm@1
93-
displayName: 'build app'
94-
inputs:
95-
command: 'custom'
96-
workingDir: 'Phonebook.Frontend/'
97-
customCommand: 'run build:en'
75+
customCommand: 'run build:prod'

Phonebook.Frontend/.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
!protractor.conf.js
99
!proxy.conf.json
1010
!tsconfig.json
11+
!tsconfig.app.json
12+
!tsconfig.spec.json
1113
!tslint.json
1214
!nginx
1315
!substitute_variables.sh

Phonebook.Frontend/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ key.pem
3939
cert.pem
4040

4141
# e2e
42-
/e2e/*.js
43-
/e2e/*.map
42+
/e2e/src/*.js
43+
/e2e/src/*.map
4444

4545
# System Files
4646
.DS_Store

Phonebook.Frontend/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# base image
2-
FROM node:11.15.0 as builder
2+
FROM node:12.16 as builder
33

44
# set working directory
55
RUN mkdir /usr/local/app
@@ -12,9 +12,8 @@ RUN npm ci
1212
# Because: https://stackoverflow.com/questions/37715224/copy-multiple-directories-with-one-command
1313
COPY ./src/ ./src/
1414

15-
COPY ["angular.json", "tsconfig.json", "tslint.json", "./"]
16-
RUN npm run build:de
17-
RUN npm run build:en
15+
COPY ["angular.json", "tsconfig.json", "tsconfig.app.json", "tsconfig.spec.json", "tslint.json", "./"]
16+
RUN npm run build
1817

1918

2019

@@ -43,4 +42,4 @@ COPY --from=builder /usr/local/app/dist /usr/share/nginx/html
4342
COPY ./opensearch.xml /usr/share/nginx/html/opensearch.xml
4443

4544
ENTRYPOINT ["./substitute_variables.sh", "/usr/share/nginx/html", "./substitute_variables.sh", "/etc/nginx"]
46-
CMD ["nginx"]
45+
CMD ["nginx"]

0 commit comments

Comments
 (0)