Skip to content

Commit 87ece1d

Browse files
chore: upgrade to angular 12 (#1073)
1 parent 322ee99 commit 87ece1d

File tree

17 files changed

+6843
-12039
lines changed

17 files changed

+6843
-12039
lines changed

.github/workflows/build-and-test.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/cache@v2
2222
with:
2323
path: node_modules
24-
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
24+
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
2525

2626
- name: NPM Install
2727
if: steps.cache.outputs.cache-hit != 'true'
@@ -37,7 +37,7 @@ jobs:
3737
uses: actions/cache@v2
3838
with:
3939
path: node_modules
40-
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
40+
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
4141

4242
- name: Build
4343
run: npm run build:ci
@@ -58,7 +58,7 @@ jobs:
5858
uses: actions/cache@v2
5959
with:
6060
path: node_modules
61-
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
61+
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
6262

6363
- name: Lint
6464
run: npm run lint
@@ -81,7 +81,7 @@ jobs:
8181
uses: actions/cache@v2
8282
with:
8383
path: node_modules
84-
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
84+
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
8585

8686
- id: set-test-chunks
8787
name: Set Chunks
@@ -111,7 +111,7 @@ jobs:
111111
uses: actions/cache@v2
112112
with:
113113
path: node_modules
114-
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
114+
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
115115

116116
- name: Test
117117
run: npm run test:ci -- $(echo $CHUNKS | jq -r '.[${{ matrix.chunk }}] | .[] | "--testPathPattern "+.')

angular.json

+9-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"build": {
1818
"builder": "@angular-devkit/build-angular:browser",
1919
"options": {
20-
"aot": true,
2120
"outputPath": "dist/hypertrace-ui",
2221
"index": "src/index.html",
2322
"main": "src/main.ts",
@@ -46,7 +45,13 @@
4645
"includePaths": ["./projects/assets-library/assets/styles", "./node_modules"]
4746
},
4847
"scripts": [],
49-
"allowedCommonJsDependencies": ["graphql-tag", "zen-observable"]
48+
"allowedCommonJsDependencies": ["graphql-tag", "zen-observable"],
49+
"vendorChunk": true,
50+
"extractLicenses": false,
51+
"buildOptimizer": false,
52+
"sourceMap": true,
53+
"optimization": false,
54+
"namedChunks": true
5055
},
5156
"configurations": {
5257
"production": {
@@ -59,9 +64,7 @@
5964
"optimization": true,
6065
"outputHashing": "all",
6166
"sourceMap": false,
62-
"extractCss": true,
6367
"namedChunks": false,
64-
"aot": true,
6568
"extractLicenses": true,
6669
"vendorChunk": false,
6770
"buildOptimizer": true,
@@ -77,7 +80,8 @@
7780
}
7881
]
7982
}
80-
}
83+
},
84+
"defaultConfiguration": ""
8185
},
8286
"serve": {
8387
"builder": "@angular-devkit/build-angular:dev-server",

0 commit comments

Comments
 (0)