Skip to content

Commit 4121327

Browse files
authored
chore: bump angular from 12.x to 13 (#15)
1 parent 6c48eff commit 4121327

File tree

7 files changed

+56
-51
lines changed

7 files changed

+56
-51
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,27 @@ jobs:
99
- name: checkout
1010
uses: actions/checkout@master
1111

12-
- name: install
13-
run: npm install
12+
- uses: borales/actions-yarn@v2.3.0
13+
with:
14+
cmd: install
1415

1516
- name: run
1617
run: |
17-
npm run build
18+
yarn run build
1819
1920
test:
2021
runs-on: ubuntu-latest
2122
steps:
2223
- name: checkout
2324
uses: actions/checkout@master
2425

25-
- name: install
26-
run: npm install
26+
- uses: borales/actions-yarn@v2.3.0
27+
with:
28+
cmd: install
2729

2830
- name: run
2931
run: |
30-
npm run test
32+
yarn run test
3133
cat ./coverage/lcov.info | ./node_modules/.bin/codecov
3234
env:
3335
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
@@ -38,21 +40,23 @@ jobs:
3840
- name: checkout
3941
uses: actions/checkout@master
4042

41-
- name: install
42-
run: npm install
43+
- uses: borales/actions-yarn@v2.3.0
44+
with:
45+
cmd: install
4346

4447
- name: run
4548
run: |
46-
npm run lint
49+
yarn run lint
4750
4851
site:
4952
runs-on: ubuntu-latest
5053
steps:
5154
- name: checkout
5255
uses: actions/checkout@master
5356

54-
- name: install
55-
run: npm install
57+
- uses: borales/actions-yarn@v2.3.0
58+
with:
59+
cmd: install
5660

5761
- name: build
5862
run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
/out-tsc
77
/publish
88
/yarn.lock
9+
/.angular/cache
910

1011
# dependencies
1112
/node_modules

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.16.1
1+
14.16.1

lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-highlight-js",
3-
"version": "12.0.0",
3+
"version": "13.0.0",
44
"description": "Angular for syntax highlighting with highlight.js",
55
"keywords": [
66
"highlight",

package.json

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-highlight-js",
3-
"version": "12.0.0",
3+
"version": "13.0.0",
44
"description": "Angular for syntax highlighting with highlight.js",
55
"keywords": [
66
"highlight",
@@ -28,40 +28,40 @@
2828
"release": "npm run build && cd publish && npm publish --access public"
2929
},
3030
"dependencies": {
31-
"@angular/animations": "~12.0.2",
32-
"@angular/common": "~12.0.2",
33-
"@angular/compiler": "~12.0.2",
34-
"@angular/core": "~12.0.2",
35-
"@angular/forms": "~12.0.2",
36-
"@angular/platform-browser": "~12.0.2",
37-
"@angular/platform-browser-dynamic": "~12.0.2",
38-
"@angular/router": "~12.0.2",
39-
"rxjs": "~6.6.0",
40-
"tslib": "^2.1.0",
31+
"@angular/animations": "~13.1.1",
32+
"@angular/common": "~13.1.1",
33+
"@angular/compiler": "~13.1.1",
34+
"@angular/core": "~13.1.1",
35+
"@angular/forms": "~13.1.1",
36+
"@angular/platform-browser": "~13.1.1",
37+
"@angular/platform-browser-dynamic": "~13.1.1",
38+
"@angular/router": "~13.1.1",
39+
"rxjs": "~7.4.0",
40+
"tslib": "^2.3.1",
4141
"zone.js": "~0.11.4"
4242
},
4343
"devDependencies": {
44-
"@angular-devkit/build-angular": "~12.0.2",
45-
"@angular/cli": "~12.0.2",
46-
"@angular/compiler-cli": "~12.0.2",
47-
"@types/jasmine": "~3.6.0",
44+
"@angular-devkit/build-angular": "~13.1.2",
45+
"@angular/cli": "~13.1.2",
46+
"@angular/compiler-cli": "~13.1.0",
47+
"@types/jasmine": "~3.10.0",
4848
"@types/node": "^12.11.1",
49-
"jasmine-core": "~3.7.0",
49+
"jasmine-core": "~3.10.0",
5050
"karma": "~6.3.0",
5151
"karma-chrome-launcher": "~3.1.0",
52-
"karma-coverage": "~2.0.3",
52+
"karma-coverage": "~2.1.0",
5353
"karma-jasmine": "~4.0.0",
54-
"karma-jasmine-html-reporter": "^1.5.0",
55-
"typescript": "~4.2.3",
56-
"@angular-eslint/builder": "12.0.0",
57-
"@angular-eslint/eslint-plugin": "12.0.0",
58-
"@angular-eslint/eslint-plugin-template": "12.0.0",
59-
"@angular-eslint/schematics": "12.0.0",
60-
"@angular-eslint/template-parser": "12.0.0",
61-
"@typescript-eslint/eslint-plugin": "4.23.0",
62-
"@typescript-eslint/parser": "4.23.0",
63-
"codecov": "^3.8.1",
64-
"eslint": "^7.26.0",
65-
"ng-packagr": "^12.0.2"
54+
"karma-jasmine-html-reporter": "~1.7.0",
55+
"typescript": "~4.5.2",
56+
"@angular-eslint/builder": "^13.0.1",
57+
"@angular-eslint/eslint-plugin": "^13.0.1",
58+
"@angular-eslint/eslint-plugin-template": "^13.0.1",
59+
"@angular-eslint/schematics": "^13.0.1",
60+
"@angular-eslint/template-parser": "^13.0.1",
61+
"@typescript-eslint/eslint-plugin": "^5.8.1",
62+
"@typescript-eslint/parser": "^5.8.1",
63+
"codecov": "^3.8.3",
64+
"eslint": "^8.5.0",
65+
"ng-packagr": "^13.1.2"
6666
}
6767
}

src/index.html

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,9 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<base href="./" />
88
<link rel="icon" href="data:;base64,iVBORw0KGgo=" />
9-
<link
10-
rel="stylesheet"
11-
href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css"
12-
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2"
13-
crossorigin="anonymous"
14-
/>
15-
<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.4.0/build/styles/atom-one-dark.min.css" />
16-
<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.4.0/build/highlight.min.js"></script>
9+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/bootstrap/dist/css/bootstrap.min.css" crossorigin="anonymous" />
10+
<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release/build/styles/atom-one-dark.min.css" />
11+
<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release/build/highlight.min.js"></script>
1712
</head>
1813

1914
<body>

tsconfig.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
"outDir": "./dist/out-tsc",
77
"forceConsistentCasingInFileNames": true,
88
"strict": true,
9+
"noImplicitOverride": true,
10+
"noPropertyAccessFromIndexSignature": true,
911
"noImplicitReturns": true,
1012
"noFallthroughCasesInSwitch": true,
1113
"sourceMap": true,
@@ -16,7 +18,10 @@
1618
"importHelpers": true,
1719
"target": "es2017",
1820
"module": "es2020",
19-
"lib": ["es2018", "dom"],
21+
"lib": [
22+
"es2020",
23+
"dom"
24+
],
2025
"paths": {
2126
"ngx-highlight-js": ["lib/index"]
2227
}

0 commit comments

Comments
 (0)