Skip to content

Commit dbd5094

Browse files
committed
chore(deps): deps updated
1 parent 29ec7df commit dbd5094

File tree

11 files changed

+2666
-2325
lines changed

11 files changed

+2666
-2325
lines changed
+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Get & Cache Dependencies
2+
description: Get dependencies via yarn and cache them
3+
inputs:
4+
caching:
5+
description: Whether to cache dependencies or not
6+
required: false
7+
default: 'true'
8+
outputs:
9+
used-cache:
10+
description: Whether the cache was used
11+
value: ${{ steps.install.outputs.cache }}
12+
runs:
13+
using: composite
14+
steps:
15+
- name: Cache dependencies
16+
if: inputs.caching == 'true'
17+
id: cache
18+
uses: actions/cache@v3
19+
with:
20+
path: node_modules
21+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
22+
restore-keys: |
23+
${{ runner.OS }}-yarn-${{ env.cache-name }}-
24+
${{ runner.OS }}-yarn-
25+
${{ runner.OS }}-
26+
27+
- name: Install
28+
if: steps.cache.outputs.cache-hit != 'true' || inputs.caching != 'true'
29+
id: install
30+
run: |
31+
yarn install --frozen-lockfile
32+
echo "cache='${{ inputs.caching }}'" >> $GITHUB_OUTPUT
33+
shell: bash
34+
35+
- name: Postinstall
36+
if: steps.cache.outputs.cache-hit == 'true' && inputs.caching == 'true'
37+
id: postinstall
38+
run: yarn postinstall
39+
shell: bash

.github/workflows/main.yml

+7-14
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
install-and-build:
10-
name: Install & Build
10+
name: 🛠️ Install & Build
1111
runs-on: ubuntu-latest
1212

1313
steps:
@@ -17,21 +17,14 @@ jobs:
1717
- name: Setup node version
1818
uses: actions/setup-node@v3
1919
with:
20-
node-version: 18.x
20+
node-version: 18
2121
registry-url: 'https://registry.npmjs.org'
2222

23-
- name: Cache node modules
24-
uses: actions/cache@v3
25-
with:
26-
path: node_modules
27-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
28-
restore-keys: |
29-
${{ runner.OS }}-yarn-${{ env.cache-name }}-
30-
${{ runner.OS }}-yarn-
31-
${{ runner.OS }}-
23+
- name: Install
24+
uses: ./.github/actions/cached-deps
3225

33-
- name: Install dependencies
34-
run: yarn
26+
- name: Lint
27+
run: yarn lint
3528

3629
- name: Sync versions # Sync versions
3730
run: yarn syncprojects
@@ -74,7 +67,7 @@ jobs:
7467
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, 'beta') == false
7568
uses: actions/setup-node@v3
7669
with:
77-
node-version: 18.x
70+
node-version: 18
7871
registry-url: https://npm.pkg.github.com/
7972
scope: '@celtian'
8073

.github/workflows/feature.yml renamed to .github/workflows/pull-request.yml

+9-20
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
name: Test feature branch
2-
3-
on:
4-
push:
5-
branches:
6-
- feat/*
1+
name: Test PR
2+
'on': pull_request
73

84
jobs:
95
install-and-test:
10-
name: Install & Test
6+
name: 🛠️ Install & Test
117
runs-on: ubuntu-latest
128

139
steps:
@@ -17,21 +13,14 @@ jobs:
1713
- name: Setup node version
1814
uses: actions/setup-node@v3
1915
with:
20-
node-version: 18.x
16+
node-version: 18
2117
registry-url: 'https://registry.npmjs.org'
2218

23-
- name: Cache node modules
24-
uses: actions/cache@v3
25-
with:
26-
path: node_modules
27-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
28-
restore-keys: |
29-
${{ runner.OS }}-yarn-${{ env.cache-name }}-
30-
${{ runner.OS }}-yarn-
31-
${{ runner.OS }}-
32-
33-
- name: Install dependencies
34-
run: yarn
19+
- name: Install
20+
uses: ./.github/actions/cached-deps
21+
22+
- name: Lint
23+
run: yarn lint
3524

3625
- name: Sync versions # Sync versions
3726
run: yarn syncprojects

.husky/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx pretty-quick --staged
4+
npx lint-staged --relative

.lintstagedrc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"**/*.{js,ts,html}": [
3+
"prettier --write",
4+
"eslint --fix"
5+
]
6+
}

.vscode/extensions.json

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"dbaeumer.vscode-eslint",
88
"formulahendry.auto-rename-tag",
99
"waderyan.gitblame",
10-
"ms-vscode.vscode-typescript-tslint-plugin",
1110
"tyriar.sort-lines",
1211
"simonsiefke.svg-preview",
1312
"shd101wyy.markdown-preview-enhanced",

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
[![npm version](https://badge.fury.io/js/ngx-translate-version.svg)](https://badge.fury.io/js/ngx-translate-version)
77
[![Package License](https://img.shields.io/npm/l/ngx-translate-version.svg)](https://www.npmjs.com/ngx-translate-version)
88
[![NPM Downloads](https://img.shields.io/npm/dm/ngx-translate-version.svg)](https://www.npmjs.com/ngx-translate-version)
9-
[![Build & Publish](https://github.com/celtian/ngx-translate-version/workflows/Build%20&%20Publish/badge.svg)](https://github.com/celtian/ngx-translate-version/actions)
9+
[![Snyk](https://snyk.io/advisor/npm-package/ngx-translate-version/badge.svg)](https://snyk.io/advisor/npm-package/ngx-translate-version)
1010
[![stars](https://badgen.net/github/stars/celtian/ngx-translate-version)](https://github.com/celtian/ngx-translate-version/)
1111
[![forks](https://badgen.net/github/forks/celtian/ngx-translate-version)](https://github.com/celtian/ngx-translate-version/)
1212
[![HitCount](http://hits.dwyl.com/celtian/ngx-translate-version.svg)](http://hits.dwyl.com/celtian/ngx-translate-version)
1313

1414
> Angular module that provides version to your language files
1515
16-
> _Angular 15, Ivy and SSR compatible_
16+
> _Angular 16, Ivy and SSR compatible_
1717
1818
Here's the [demo](http://celtian.github.io/ngx-translate-version/)
1919

package.json

+35-34
Original file line numberDiff line numberDiff line change
@@ -32,58 +32,59 @@
3232
"release:beta": "npm version prerelease -m \"chore(update): prelease %s β\"",
3333
"release:patch": "git checkout master && npm version patch -m \"chore(update): patch release %s 🐛 \"",
3434
"release:minor": "git checkout master && npm version minor -m \"chore(update): release %s 🚀\"",
35-
"release:major": "git checkout master && npm version major -m \"chore(update): major release %s 💥 \""
35+
"release:major": "git checkout master && npm version major -m \"chore(update): major release %s 💥 \"",
36+
"fix-vulnerabilities": "npx yarn-audit-fix && npx browserslist --update-db"
3637
},
3738
"dependencies": {
38-
"@angular/animations": "^16.0.3",
39-
"@angular/common": "^16.0.3",
40-
"@angular/compiler": "^16.0.3",
41-
"@angular/core": "^16.0.3",
42-
"@angular/forms": "^16.0.3",
43-
"@angular/platform-browser": "^16.0.3",
44-
"@angular/platform-browser-dynamic": "^16.0.3",
45-
"@angular/router": "^16.0.3",
39+
"@angular/animations": "^16.2.0",
40+
"@angular/common": "^16.2.0",
41+
"@angular/compiler": "^16.2.0",
42+
"@angular/core": "^16.2.0",
43+
"@angular/forms": "^16.2.0",
44+
"@angular/platform-browser": "^16.2.0",
45+
"@angular/platform-browser-dynamic": "^16.2.0",
46+
"@angular/router": "^16.2.0",
4647
"@gilsdav/ngx-translate-router": "^6.1.0",
4748
"@gilsdav/ngx-translate-router-http-loader": "^2.0.0",
4849
"@ngx-translate/core": "^15.0.0",
4950
"@ngx-translate/http-loader": "^8.0.0",
5051
"rxjs": "^7.8.1",
51-
"tslib": "^2.5.2",
52-
"zone.js": "^0.13.0"
52+
"tslib": "^2.6.1",
53+
"zone.js": "^0.13.1"
5354
},
5455
"devDependencies": {
55-
"@angular-devkit/build-angular": "^16.0.3",
56-
"@angular-eslint/builder": "16.0.2",
57-
"@angular-eslint/eslint-plugin": "16.0.2",
58-
"@angular-eslint/eslint-plugin-template": "16.0.2",
59-
"@angular-eslint/schematics": "16.0.2",
60-
"@angular-eslint/template-parser": "16.0.2",
61-
"@angular/cli": "^16.0.3",
62-
"@angular/compiler-cli": "^16.0.3",
63-
"@angular/language-service": "^16.0.3",
64-
"@commitlint/cli": "^17.6.3",
65-
"@commitlint/config-conventional": "^17.6.3",
66-
"@types/jasmine": "^4.3.2",
56+
"@angular-devkit/build-angular": "^16.2.0",
57+
"@angular-eslint/builder": "16.1.0",
58+
"@angular-eslint/eslint-plugin": "16.1.0",
59+
"@angular-eslint/eslint-plugin-template": "16.1.0",
60+
"@angular-eslint/schematics": "16.1.0",
61+
"@angular-eslint/template-parser": "16.1.0",
62+
"@angular/cli": "^16.2.0",
63+
"@angular/compiler-cli": "^16.2.0",
64+
"@angular/language-service": "^16.2.0",
65+
"@commitlint/cli": "^17.7.1",
66+
"@commitlint/config-conventional": "^17.7.0",
67+
"@types/jasmine": "^4.3.5",
6768
"@types/jasminewd2": "^2.0.10",
68-
"@types/node": "^18.16.16",
69-
"@typescript-eslint/eslint-plugin": "^5.59.7",
70-
"@typescript-eslint/parser": "^5.59.7",
69+
"@types/node": "^18.17.5",
70+
"@typescript-eslint/eslint-plugin": "^6.3.0",
71+
"@typescript-eslint/parser": "^6.3.0",
7172
"auto-changelog": "^2.4.0",
72-
"eslint": "^8.41.0",
73+
"eslint": "^8.47.0",
7374
"husky": "^8.0.3",
74-
"jasmine-core": "^5.0.0",
75+
"jasmine-core": "^5.1.0",
7576
"jasmine-spec-reporter": "^7.0.0",
7677
"karma": "^6.4.2",
7778
"karma-chrome-launcher": "^3.2.0",
78-
"karma-coverage": "^2.2.0",
79+
"karma-coverage": "^2.2.1",
7980
"karma-jasmine": "^5.1.0",
80-
"karma-jasmine-html-reporter": "^2.0.0",
81-
"ng-packagr": "^16.0.1",
82-
"prettier": "^2.8.8",
83-
"pretty-quick": "^3.1.3",
81+
"karma-jasmine-html-reporter": "^2.1.0",
82+
"lint-staged": "^14.0.0",
83+
"ng-packagr": "^16.2.0",
84+
"prettier": "^3.0.1",
8485
"protractor": "~7.0.0",
8586
"ts-node": "^10.9.1",
86-
"typescript": "^5.0.4"
87+
"typescript": "^5.1.6"
8788
},
8889
"peerDependencies": {},
8990
"homepage": "https://github.com/Celtian/ngx-translate-version",

projects/demo/.eslintrc.json

-8
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@
44
"overrides": [
55
{
66
"files": ["*.ts"],
7-
"parserOptions": {
8-
"project": [
9-
"projects/demo/tsconfig.app.json",
10-
"projects/demo/tsconfig.spec.json",
11-
"projects/demo/e2e/tsconfig.json"
12-
],
13-
"createDefaultProgram": true
14-
},
157
"rules": {
168
"@angular-eslint/directive-selector": [
179
"error",

projects/ngx-translate-version/.eslintrc.json

-7
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@
44
"overrides": [
55
{
66
"files": ["*.ts"],
7-
"parserOptions": {
8-
"project": [
9-
"projects/ngx-translate-version/tsconfig.lib.json",
10-
"projects/ngx-translate-version/tsconfig.spec.json"
11-
],
12-
"createDefaultProgram": true
13-
},
147
"rules": {
158
"@angular-eslint/directive-selector": [
169
"error",

0 commit comments

Comments
 (0)