Skip to content

Commit 9236acd

Browse files
authored
release 1.2.0 (#204)
2 parents 5c4ea2a + 12b4e97 commit 9236acd

167 files changed

Lines changed: 7502 additions & 5752 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
To set up the project GitHub-Stats-Extended locally, run the following commands:
66

77
```bash
8-
./vercel-preparation.sh
98
pnpm install
10-
pnpm --filter frontend run build
9+
pnpm run build:packages
10+
pnpm run dev:frontend
1111
```
1212

1313
The easiest way to run and test the project is to deploy it to Vercel as described in the [deployment guide](../docs/deploy.md).

.github/actions/install-dependencies/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ runs:
1414

1515
steps:
1616
- name: Install pnpm
17-
uses: pnpm/action-setup@v4
17+
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
1818

1919
- name: Setup Node.js (via input)
2020
if: ${{ inputs.node-version }}
21-
uses: actions/setup-node@v6
21+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
2222
with:
2323
node-version: ${{ inputs.node-version }}
2424
cache: "pnpm"
2525
registry-url: "https://registry.npmjs.org"
2626

2727
- name: Setup Node.js (via .nvmrc)
2828
if: ${{ !inputs.node-version }}
29-
uses: actions/setup-node@v6
29+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
3030
with:
3131
node-version-file: ".nvmrc"
3232
cache: "pnpm"

.github/dependabot.yml

Lines changed: 49 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ updates:
44
- package-ecosystem: npm
55
directory: "/"
66
schedule:
7-
interval: cron
8-
cronjob: every day at 5am
9-
open-pull-requests-limit: 10
7+
interval: daily
8+
open-pull-requests-limit: 20
109
commit-message:
1110
prefix: "build(deps)"
1211
prefix-development: "build(deps-dev)"
@@ -15,14 +14,56 @@ updates:
1514
ignore:
1615
- dependency-name: "@types/node"
1716
update-types: ["version-update:semver-major"]
17+
groups:
18+
react:
19+
patterns:
20+
- "react"
21+
- "react-dom"
22+
- "react-*"
23+
- "@types/react"
24+
- "@types/react-dom"
25+
redux:
26+
patterns:
27+
- "redux"
28+
- "@reduxjs/*"
29+
- "react-redux"
30+
vite:
31+
patterns:
32+
- "vite"
33+
- "@vitejs/*"
34+
tailwind:
35+
patterns:
36+
- "tailwindcss"
37+
- "@tailwindcss/*"
38+
- "daisyui"
39+
vitest:
40+
patterns:
41+
- "vitest"
42+
- "@vitest/*"
43+
eslint:
44+
patterns:
45+
- "eslint"
46+
- "@eslint/*"
47+
- "eslint-*"
48+
- "typescript-eslint"
49+
typescript:
50+
patterns:
51+
- "typescript"
52+
- "@types/*"
53+
playwright:
54+
patterns:
55+
- "@playwright/*"
56+
axios:
57+
patterns:
58+
- "axios"
59+
- "axios-*"
1860

1961
# Maintain dependencies for GitHub Actions
2062
- package-ecosystem: github-actions
2163
directory: "/"
2264
schedule:
23-
interval: cron
24-
cronjob: every day at 5am
25-
open-pull-requests-limit: 10
65+
interval: daily
66+
open-pull-requests-limit: 20
2667
commit-message:
2768
prefix: "ci(deps)"
2869
prefix-development: "ci(deps-dev)"
@@ -33,9 +74,8 @@ updates:
3374
- package-ecosystem: devcontainers
3475
directory: "/"
3576
schedule:
36-
interval: cron
37-
cronjob: every day at 5am
38-
open-pull-requests-limit: 10
77+
interval: daily
78+
open-pull-requests-limit: 20
3979
commit-message:
4080
prefix: "build(deps)"
4181
prefix-development: "build(deps-dev)"

.github/workflows/ci.yml

Lines changed: 35 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,21 @@ jobs:
3131

3232
steps:
3333
- name: Checkout code
34-
uses: actions/checkout@v6
35-
36-
- name: Run vercel-preparation.sh
37-
run: |
38-
chmod +x ./vercel-preparation.sh
39-
./vercel-preparation.sh
34+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4035

4136
- name: Install Dependencies
4237
uses: ./.github/actions/install-dependencies
4338
with:
4439
node-version: ${{ matrix.node }}
4540

46-
- name: Build frontend
47-
run: pnpm --filter frontend run build
41+
- name: Build packages
42+
run: pnpm run build:packages
4843

49-
- name: Run frontend tests
50-
run: pnpm --filter frontend run test
44+
- name: Build frontend
45+
run: pnpm run build:frontend
5146

52-
- name: Run backend tests
53-
run: pnpm --filter github-readme-stats run test
47+
- name: Run tests
48+
run: pnpm run test
5449

5550
frontend-test-e2e:
5651
name: Frontend E2E test
@@ -64,21 +59,42 @@ jobs:
6459

6560
steps:
6661
- name: Checkout code
67-
uses: actions/checkout@v6
62+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6863

6964
- name: Install Dependencies
7065
uses: ./.github/actions/install-dependencies
7166

72-
- name: Run vercel-preparation.sh
73-
run: |
74-
chmod +x ./vercel-preparation.sh
75-
./vercel-preparation.sh
67+
- name: Build packages
68+
run: pnpm run build:packages
7669

7770
- name: Install Playwright Browsers
7871
run: pnpm exec playwright install --with-deps
7972

8073
- name: Run Playwright tests
81-
run: pnpm --filter frontend run test:e2e
74+
run: pnpm --filter ./apps/frontend/ run test:e2e
75+
76+
backend-test-e2e:
77+
name: Backend E2E test
78+
79+
runs-on: ubuntu-latest
80+
81+
permissions:
82+
contents: read
83+
84+
continue-on-error: true
85+
86+
steps:
87+
- name: Checkout code
88+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
89+
90+
- name: Install Dependencies
91+
uses: ./.github/actions/install-dependencies
92+
93+
- name: Build packages
94+
run: pnpm run build:packages
95+
96+
- name: Run backend end-to-end tests
97+
run: pnpm --filter ./apps/backend/ run test:e2e
8298

8399
code-checks:
84100
name: Code checks
@@ -90,17 +106,7 @@ jobs:
90106

91107
steps:
92108
- name: Checkout code
93-
uses: actions/checkout@v6
94-
95-
# Heads up!
96-
#
97-
# 1. Execution of this script is needed to resolve `.vercel` folder from `apps/frontend/src/components/Card/SVG.js`
98-
# 2. This scripts removes `apps/backend/node_modules` breaking ESLint’s module resolution.
99-
# Dependency installation must occur after running ./vercel-preparation.sh.
100-
- name: Run vercel-preparation.sh
101-
run: |
102-
chmod +x ./vercel-preparation.sh
103-
./vercel-preparation.sh
109+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
104110

105111
- name: Install Dependencies
106112
uses: ./.github/actions/install-dependencies

.github/workflows/generate-theme-doc.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
branches:
55
- master
66
paths:
7-
- "apps/backend/themes/index.js"
7+
- "packages/core/src/themes/index.js"
88
workflow_dispatch:
99

1010
permissions: {}
@@ -30,17 +30,17 @@ jobs:
3030

3131
steps:
3232
- name: Checkout code
33-
uses: actions/checkout@v6
33+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3434

3535
- name: Install Dependencies
3636
uses: ./.github/actions/install-dependencies
3737

3838
- name: Generate readme
3939
run: |
40-
pnpm --filter github-readme-stats run theme-readme-gen
40+
pnpm --filter ./packages/core/ run theme-readme-gen
4141
4242
- name: Create Pull Request if themes README has changed
43-
uses: peter-evans/create-pull-request@v8
43+
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8
4444
with:
4545
commit-message: "feat(backend): update themes README"
4646
branch: "update_themes_readme/patch"

.github/workflows/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Update version tags
2+
on:
3+
push:
4+
branches-ignore:
5+
- "**"
6+
tags:
7+
- "v*.*.*"
8+
9+
permissions: {}
10+
11+
jobs:
12+
update-semver:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
steps:
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18+
- uses: haya14busa/action-update-semver@7d2c558640ea49e798d46539536190aff8c18715 # v1.5.1

.github/workflows/repeat-recent-requests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- name: Make Request
2222
id: myRequest
23-
uses: fjogeleit/http-request-action@v2
23+
uses: fjogeleit/http-request-action@551353b829c3646756b2ec2b3694f819d7957495 # v2
2424
with:
2525
url: "https://github-stats-extended.vercel.app/api/repeat-recent"
2626
method: "POST"

.github/workflows/update-langs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ jobs:
3838

3939
steps:
4040
- name: Checkout code
41-
uses: actions/checkout@v6
41+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4242

4343
- name: Install Dependencies
4444
uses: ./.github/actions/install-dependencies
4545

4646
- name: Run update-languages-json.js script
47-
run: pnpm --filter github-readme-stats run generate-langs-json
47+
run: pnpm --filter ./packages/core/ run generate-langs-json
4848

4949
- name: Create Pull Request if upstream language file is changed
50-
uses: peter-evans/create-pull-request@v8
50+
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8
5151
with:
5252
commit-message: "feat(backend): update languages JSON"
5353
branch: "update_langs/patch"

.gitignore

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
11
node_modules
22

3-
.env.local
4-
.env.development.local
5-
.env.test.local
6-
.env.production.local
7-
83
# OS
94
.DS_Store
105

11-
# Logs
12-
npm-debug.log*
13-
yarn-debug.log*
14-
yarn-error.log*
15-
166
# Project
177
coverage
188

@@ -26,11 +16,12 @@ apps/backend/vercel_token
2616
apps/backend-copy
2717

2818
apps/frontend/.env
29-
apps/frontend/src/backend
30-
apps/frontend/build
3119

20+
21+
.turbo
22+
build
3223
build-ts
33-
tsconfig.tsbuildinfo
24+
*.tsbuildinfo
3425

3526
# IDE
3627
.idea/

.husky/pre-commit

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
pnpm lint-staged
22
pnpm run lint
3-
# TODO enable
4-
# npm test
3+
pnpm test

0 commit comments

Comments
 (0)