Skip to content

Commit

Permalink
[#11729] Drop IE support and upgrade to Angular 13 (#11847)
Browse files Browse the repository at this point in the history
  • Loading branch information
wkurniawan07 authored Dec 26, 2022
1 parent 96ea1f3 commit d37ee04
Show file tree
Hide file tree
Showing 164 changed files with 18,749 additions and 15,560 deletions.
1 change: 0 additions & 1 deletion .browserslistrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.

This comment was marked as spam.

Copy link
@BronkHonkyTonk

BronkHonkyTonk May 15, 2023

Yotest

28 changes: 18 additions & 10 deletions .github/workflows/component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,19 @@ jobs:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}

This comment was marked as spam.

Copy link
@BronkHonkyTonk

BronkHonkyTonk May 15, 2023

.github/workflows/component.yml

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
java-version: '11'
- name: Cache Gradle packages
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
Expand All @@ -36,15 +40,15 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- name: Cache eslint
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
./.eslintcache
key: ${{ runner.os }}-eslint-${{ hashFiles('.eslintcache') }}
restore-keys: |
${{ runner.os }}-eslint-
- name: Cache stylelint
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
./.stylelintcache
Expand All @@ -64,13 +68,17 @@ jobs:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
java-version: '11'
- name: Cache Gradle packages
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dev-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
shell: bash
working-directory: docs
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
node-version: 16
- uses: actions/setup-java@v3
with:
java-version: '11'
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/e2e-cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ jobs:
- os: windows-latest
browser: edge
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
java-version: '11'
- name: Cache Gradle packages
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ jobs:
matrix:
browser: [firefox]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
java-version: '11'
- name: Cache Gradle packages
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/lnp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ jobs:
LnP-testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
java-version: '11'
- name: Cache Gradle packages
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ src/lnp/resources/results/*
src/lnp/resources/tests/*
!src/lnp/resources/jmeter/bin

# Angular
.angular/cache

# TEAMMATES
gradle.properties
build.properties
Expand Down
6 changes: 3 additions & 3 deletions docs/setting-up.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ These tools are necessary regardless of whether you are developing front-end or

If you want to develop front-end, you need to install the following:

1. Install Node.js (minimum version 12.11.1).
1. (Optional but highly recommended) Install Angular CLI version 12 globally.
1. Install Node.js (minimum version 14).
1. (Optional but highly recommended) Install Angular CLI version 13 globally.
```sh
npm install -g @angular/cli@12
npm install -g @angular/cli@13
```
**Verification:** Run `ng` and you should see a list of available Angular CLI commands.

Expand Down
1 change: 1 addition & 0 deletions jest-setup.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require('core-js/es/reflect');
require('core-js/proposals/reflect-metadata');
require('@angular/localize/init');

(window as any).IntersectionObserver = jest.fn(() => ({
observe: jest.fn(),
Expand Down
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ module.exports = {
setupFiles: [
'./jest-setup.ts',
],
globalSetup: 'jest-preset-angular/global-setup',
};
Loading

0 comments on commit d37ee04

Please sign in to comment.