Skip to content

Commit 41926f9

Browse files
authored
feat: support Angular 11.2.x (#12)
1 parent efcb3e6 commit 41926f9

File tree

6 files changed

+77
-13
lines changed

6 files changed

+77
-13
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ name: Node.js CI
2323

2424
on:
2525
push:
26-
branches: [master]
26+
branches: [main]
2727
pull_request:
28-
branches: [master]
28+
branches: [main]
2929

3030
jobs:
3131
build:
3232
runs-on: ubuntu-latest
3333

3434
strategy:
3535
matrix:
36-
node-version: [10.x, 12.x, 14.x]
36+
node-version: [10.x, 12.x]
3737
angular-version:
3838
[
3939
8.0.x,
@@ -45,7 +45,8 @@ jobs:
4545
10.1.x,
4646
10.2.x,
4747
11.0.x,
48-
11.1.x
48+
11.1.x,
49+
11.2.x
4950
]
5051

5152
steps:
@@ -54,12 +55,12 @@ jobs:
5455
uses: actions/setup-node@v1
5556
with:
5657
node-version: ${{ matrix.node-version }}
57-
- name: Change to the right Angular version
58+
- name: Use Angular ${{ matrix.angular-version }}
5859
uses: ngworker/angular-versions-action@v1
5960
with:
6061
angular-version: ${{ matrix.angular-version }}
6162

62-
- run: yarn
63+
- run: yarn install
6364
- run: yarn lint
6465
- run: yarn build
6566
- run: yarn test
@@ -81,6 +82,7 @@ At the moment this actions supports a limited set of Angular versions listed bel
8182
- 10.2.x
8283
- 11.0.x
8384
- 11.1.x
85+
- 11.2.x
8486

8587
## Contributing
8688

__tests__/package-json-versions/v11_1-all-override.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const packageJsonWithV11_1All = {
4646
},
4747
devDependencies: {
4848
'@angular-devkit/build-angular': '~0.1101.0',
49-
'@angular-devkit/build-ng-packagr': '~0.1002.1',
49+
'@angular-devkit/build-ng-packagr': '~0.1002.2',
5050
'@angular-devkit/schematics-cli': '~0.1101.0',
5151
'@angular/cli': '~11.1.0',
5252
'@angular/compiler-cli': '~11.1.0',

__tests__/package-json-versions/v11_1-devdep-override.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const packageJsonWithV11_1DevDependencies = {
4646
},
4747
devDependencies: {
4848
'@angular-devkit/build-angular': '~0.1101.0',
49-
'@angular-devkit/build-ng-packagr': '~0.1002.1',
49+
'@angular-devkit/build-ng-packagr': '~0.1002.2',
5050
'@angular-devkit/schematics-cli': '~0.1101.0',
5151
'@angular/cli': '~11.1.0',
5252
'@angular/compiler-cli': '~11.1.0',

dist/index.js

Lines changed: 33 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/angular-versions.ts

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ export const versions = new Map<string, PackageJsonVersion>([
279279
},
280280
devDependencies: {
281281
'@angular-devkit/build-angular': '~0.1100.0',
282-
'@angular-devkit/build-ng-packagr': '~0.1002.1',
282+
'@angular-devkit/build-ng-packagr': '~0.1002.2',
283283
'@angular-devkit/schematics-cli': '~0.1100.0',
284284
'@angular/cli': '~11.1.0',
285285
'@angular/compiler-cli': '~11.1.0',
@@ -310,7 +310,7 @@ export const versions = new Map<string, PackageJsonVersion>([
310310
},
311311
devDependencies: {
312312
'@angular-devkit/build-angular': '~0.1101.0',
313-
'@angular-devkit/build-ng-packagr': '~0.1002.1',
313+
'@angular-devkit/build-ng-packagr': '~0.1002.2',
314314
'@angular-devkit/schematics-cli': '~0.1101.0',
315315
'@angular/cli': '~11.1.0',
316316
'@angular/compiler-cli': '~11.1.0',
@@ -322,5 +322,36 @@ export const versions = new Map<string, PackageJsonVersion>([
322322
typescript: '~4.1.2'
323323
}
324324
}
325+
],
326+
[
327+
'11.2.x',
328+
{
329+
dependencies: {
330+
'@angular/animations': '~11.2.0 || >=11.2.0-rc.0',
331+
'@angular/common': '~11.2.0 || >=11.2.0-rc.0',
332+
'@angular/compiler': '~11.2.0 || >=11.2.0-rc.0',
333+
'@angular/core': '~11.2.0 || >=11.2.0-rc.0',
334+
'@angular/forms': '~11.2.0 || >=11.2.0-rc.0',
335+
'@angular/platform-browser': '~11.2.0 || >=11.2.0-rc.0',
336+
'@angular/platform-browser-dynamic': '~11.2.0 || >=11.2.0-rc.0',
337+
'@angular/router': '~11.2.0 || >=11.2.0-rc.0',
338+
rxjs: '~6.6.0',
339+
tslib: '^2.0.0',
340+
'zone.js': '~0.11.3'
341+
},
342+
devDependencies: {
343+
'@angular-devkit/build-angular': '~0.1102.0 || >=0.1102.0-rc.1',
344+
'@angular-devkit/build-ng-packagr': '~0.1002.2',
345+
'@angular-devkit/schematics-cli': '~0.1102.0 || >=0.1102.0-rc.1',
346+
'@angular/cli': '~11.2.0 || >=11.2.0-rc.1',
347+
'@angular/compiler-cli': '~11.2.0 || >=11.2.0-rc.0',
348+
'@types/node': '^12.11.1',
349+
codelyzer: '^6.0.0',
350+
'ng-packagr': '^11.1.0',
351+
'ts-node': '~8.3.0',
352+
tslint: '~6.1.0',
353+
typescript: '~4.1.2'
354+
}
355+
}
325356
]
326357
]);

0 commit comments

Comments
 (0)