Skip to content

Commit 71f5cca

Browse files
Kai-rosmezotvlukewarlowvictoriamdogusa4grr
authored
feat: blog posts (wip)
Co-authored-by: Dominik K. <dominik@rivo.gg> Co-authored-by: Luke Warlow <luke@warlow.dev> Co-authored-by: Victoria <vicmdo@gmail.com> Co-authored-by: Yevhen Husak <yev.husak@gmail.com> Co-authored-by: Yevhen Husak <gusa4grr@users.noreply.github.com> Co-authored-by: Daniel Roe <daniel@roe.dev> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Jialong Lu <48578099+kalu5@users.noreply.github.com> Co-authored-by: Alexander Schmid <120512287+alexschmd@users.noreply.github.com> Co-authored-by: James Garbutt <43081j@users.noreply.github.com> Co-authored-by: Vincent Taverna <vinnymac@gmail.com> Co-authored-by: Philippe Serhal <philippe.serhal@gmail.com> Co-authored-by: Garth de Wet <garthofhearts@gmail.com> Co-authored-by: Alex Savelyev <91429106+alexdln@users.noreply.github.com> Co-authored-by: Marcus Blättermann <marcus@essenmitsosse.de> Co-authored-by: Wojciech Maj <kontakt@wojtekmaj.pl> Co-authored-by: Chase Naples <cnaples79@gmail.com> Co-authored-by: Felix Schneider <99918022+trueberryless@users.noreply.github.com> Co-authored-by: btea <2356281422@qq.com> Co-authored-by: Santosh Yadav <santosh.yadav198613@gmail.com> Co-authored-by: Vida Xie <vida_2020@163.com> Co-authored-by: Okinea Dev <hi@okinea.dev> Co-authored-by: Maher <50132270+abaza738@users.noreply.github.com> Co-authored-by: Nandkishor Jadoun <183695114+NandkishorJadoun@users.noreply.github.com> Co-authored-by: abeer0 <47961062+iiio2@users.noreply.github.com> Co-authored-by: Alec Lloyd Probert <55991794+graphieros@users.noreply.github.com> Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Co-authored-by: Matteo Gabriele <m.gabriele.dev@gmail.com> Co-authored-by: Mihkel Eidast <mihkel@eida.st> Co-authored-by: Craig Hart <i@craigary.net> Co-authored-by: Houssam Elbadissi <skaldebane@gmail.com> Co-authored-by: Cassidy Williams <1454517+cassidoo@users.noreply.github.com> Co-authored-by: Cassidy Williams <cassidoo@users.noreply.github.com> Co-authored-by: Salma Alam-Naylor <52798353+whitep4nth3r@users.noreply.github.com> Co-authored-by: Bailey Townsend <baileytownsend2323@gmail.com> Co-authored-by: Denys <40246260+DDeenis@users.noreply.github.com> Co-authored-by: SHAMIL <64640025+shamilkotta@users.noreply.github.com> Co-authored-by: Jiří Michel <admin@venty.cz> Co-authored-by: Lars Kappert <oss@webpro.nl> Co-authored-by: Jonathan Yeong <hey@jonathanyeong.com> Co-authored-by: penjj <32674989+penjj@users.noreply.github.com> Co-authored-by: Nicolas DUBIEN <github@dubien.org> Co-authored-by: Chris <hizyyv@gmail.com> Co-authored-by: Josh King <59017897+kn0wn@users.noreply.github.com> Co-authored-by: Jens Rømer Hesselbjerg <jh.roemer@gmail.com> Co-authored-by: Nathan Knowler <nathan@knowler.dev> Co-authored-by: Stanyslas Bres <15731884+sybers@users.noreply.github.com> Co-authored-by: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Bobbie Goede <bobbiegoede@gmail.com> Co-authored-by: Joaquín Sánchez <userquin@gmail.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: TAKAHASHI Shuuji <id@shuuji3.xyz> Co-authored-by: Tierney Cyren <accounts@bnb.im> Co-authored-by: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Co-authored-by: Abderrahmen Mhemed <33667872+MhemedAbderrahmen@users.noreply.github.com> Co-authored-by: abderrahmen.mhemed <abderrahmen.mhemed@wevioo.com> Co-authored-by: Julien Déramond <juderamond@gmail.com> Co-authored-by: Roman <dev@rman.dev> Co-authored-by: shamilkotta <shamilkotta99@gmail.com> Co-authored-by: rygrit <62373365+RYGRIT@users.noreply.github.com> Co-authored-by: Vrajpal Jhala <43914725+vrajpal-jhala@users.noreply.github.com> Co-authored-by: Lars Kappert <lars@webpro.nl> Co-authored-by: Jaydip Sanghani <91427591+jellydeck@users.noreply.github.com> Co-authored-by: wr <58406705+onebyte8bits@users.noreply.github.com> Co-authored-by: wr <wr@wrtekiMacBook-Pro.local> Co-authored-by: Emanuele Orfanelli <emanueleorfanelli@gmail.com> Co-authored-by: Robin <robin.kehl@singular-it.de> Co-authored-by: rzzf <cszhjh@gmail.com> Co-authored-by: Florian Heuberger <10813063+Flo0806@users.noreply.github.com> Co-authored-by: Mikołaj Misztal <46728995+mikouaji@users.noreply.github.com> Co-authored-by: Nico <98180436+nitodeco@users.noreply.github.com> Co-authored-by: Benjamín Vicente <62021328+benjavicente@users.noreply.github.com> Co-authored-by: Nico Kempe <50241630+nicokempe@users.noreply.github.com> Co-authored-by: SerKo <serko.dev@gmail.com> Co-authored-by: Scott Wu <sw@scottwu.ca> Co-authored-by: Pascal Küsgen <pascalkuesgen@gmail.com> Co-authored-by: Luke Warlow <lwarlow@igalia.com> Co-authored-by: Idris Gadi <85882535+IdrisGit@users.noreply.github.com>
1 parent 669063c commit 71f5cca

File tree

406 files changed

+67359
-6818
lines changed

Some content is hidden

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

406 files changed

+67359
-6818
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#secure password, can use openssl rand --hex 32
1+
#secure password, can use openssl rand -hex 32
22
NUXT_SESSION_PASSWORD=""

.github/workflows/autofix.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ permissions:
1414

1515
jobs:
1616
code:
17-
runs-on: ubuntu-latest
17+
name: 🤖 Autofix code
18+
runs-on: ubuntu-24.04-arm
1819

1920
steps:
2021
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -23,17 +24,14 @@ jobs:
2324
with:
2425
node-version: lts/*
2526

26-
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
27-
name: Install pnpm
27+
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
28+
name: 🟧 Install pnpm
2829
with:
2930
cache: true
3031

3132
- name: 📦 Install dependencies
3233
run: pnpm install
3334

34-
- name: 📦 Install browsers
35-
run: pnpm playwright install
36-
3735
- name: 🌐 Compare translations
3836
run: pnpm i18n:check
3937

@@ -43,14 +41,4 @@ jobs:
4341
- name: 🔠 Fix lint errors
4442
run: pnpm lint:fix
4543

46-
- name: 🧪 Update unit test snapshots
47-
run: pnpm test:unit -u
48-
49-
- name: 🏃 Update component test snapshots
50-
run: pnpm test:nuxt -u
51-
52-
# TODO: re-enable when we have snapshots in browser tests
53-
# - name: 🖥️ Update browser test snapshots
54-
# run: pnpm test:browser --update-snapshots
55-
56-
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
44+
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27 # 635ffb0c9798bd160680f18fd73371e355b85f27

.github/workflows/ci.yml

Lines changed: 98 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ permissions:
2121

2222
jobs:
2323
lint:
24-
runs-on: ubuntu-latest
24+
name: 🔠 Lint project
25+
runs-on: ubuntu-24.04-arm
2526

2627
steps:
2728
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -30,19 +31,70 @@ jobs:
3031
with:
3132
node-version: lts/*
3233

33-
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
34-
name: Install pnpm
34+
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
35+
name: 🟧 Install pnpm
3536
with:
3637
cache: true
3738

38-
- name: 📦 Install dependencies
39-
run: pnpm install
39+
- name: 📦 Install dependencies (root only, no scripts)
40+
run: pnpm install --filter . --ignore-scripts
4041

4142
- name: 🔠 Lint project
4243
run: pnpm lint
4344

45+
types:
46+
name: 💪 Type check
47+
runs-on: ubuntu-24.04-arm
48+
49+
steps:
50+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
51+
52+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
53+
with:
54+
node-version: lts/*
55+
56+
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
57+
name: 🟧 Install pnpm
58+
with:
59+
cache: true
60+
61+
- name: 📦 Install dependencies
62+
run: pnpm install
63+
64+
- name: 💪 Type check
65+
run: pnpm test:types
66+
67+
unit:
68+
name: 🧪 Unit tests
69+
runs-on: ubuntu-24.04-arm
70+
71+
steps:
72+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
73+
74+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
75+
with:
76+
node-version: lts/*
77+
78+
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
79+
name: 🟧 Install pnpm
80+
with:
81+
cache: true
82+
83+
- name: 📦 Install dependencies
84+
run: pnpm install
85+
86+
- name: 🧪 Unit tests
87+
run: pnpm test:unit run --coverage --reporter=junit --outputFile=test-report.junit.xml
88+
89+
- name: ⬆︎ Upload test results to Codecov
90+
if: ${{ !cancelled() }}
91+
uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1
92+
with:
93+
token: ${{ secrets.CODECOV_TOKEN }}
94+
4495
test:
45-
runs-on: ubuntu-latest
96+
name: 🧪 Component tests
97+
runs-on: ubuntu-24.04-arm
4698

4799
steps:
48100
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -51,28 +103,34 @@ jobs:
51103
with:
52104
node-version: lts/*
53105

54-
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
55-
name: Install pnpm
106+
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
107+
name: 🟧 Install pnpm
56108
with:
57109
cache: true
58110

59111
- name: 📦 Install dependencies
60112
run: pnpm install
61113

62114
- name: 🌐 Install browser
63-
run: pnpm playwright install
115+
run: pnpm playwright install chromium-headless-shell
64116

65-
- name: 💪 Type check
66-
run: pnpm test:types
117+
- name: 🧪 Component tests
118+
run: pnpm test:nuxt run --coverage --reporter=junit --outputFile=test-report.junit.xml
67119

68-
- name: 🧪 Unit test
69-
run: pnpm test:unit
120+
- name: ⬆︎ Upload test results to Codecov
121+
if: ${{ !cancelled() }}
122+
uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1
123+
with:
124+
token: ${{ secrets.CODECOV_TOKEN }}
70125

71-
- name: 🏃 Component tests
72-
run: pnpm test:nuxt
126+
- name: ⬆︎ Upload coverage reports to Codecov
127+
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
128+
env:
129+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
73130

74131
browser:
75-
runs-on: ubuntu-latest
132+
name: 🖥️ Browser tests
133+
runs-on: ubuntu-24.04-arm
76134
container:
77135
image: mcr.microsoft.com/playwright:v1.58.0-noble
78136

@@ -83,19 +141,26 @@ jobs:
83141
with:
84142
node-version: lts/*
85143

86-
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
87-
name: Install pnpm
144+
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
145+
name: 🟧 Install pnpm
88146
with:
89147
cache: true
90148

91149
- name: 📦 Install dependencies
92150
run: pnpm install
93151

152+
- name: 🏗️ Build project
153+
run: pnpm build:playwright
154+
94155
- name: 🖥️ Test project (browser)
95-
run: pnpm test:browser
156+
run: pnpm test:browser:prebuilt
96157

97158
a11y:
98-
runs-on: ubuntu-latest
159+
name: ♿ Accessibility audit
160+
runs-on: ubuntu-latest # See https://github.com/GoogleChrome/lighthouse/discussions/16834
161+
strategy:
162+
matrix:
163+
mode: [dark, light]
99164

100165
steps:
101166
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -104,24 +169,26 @@ jobs:
104169
with:
105170
node-version: lts/*
106171

107-
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
108-
name: Install pnpm
172+
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
173+
name: 🟧 Install pnpm
109174
with:
110175
cache: true
111176

112177
- name: 📦 Install dependencies
113178
run: pnpm install
114179

115180
- name: 🏗️ Build project
116-
run: pnpm build
181+
run: NODE_ENV=test pnpm build
117182

118-
- name: ♿ Accessibility audit (Lighthouse - dark & light mode)
183+
- name: ♿ Accessibility audit (Lighthouse - ${{ matrix.mode }} mode)
119184
run: ./scripts/lighthouse-a11y.sh
120185
env:
121186
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
187+
LIGHTHOUSE_COLOR_MODE: ${{ matrix.mode }}
122188

123189
knip:
124-
runs-on: ubuntu-latest
190+
name: 🧹 Unused code check
191+
runs-on: ubuntu-24.04-arm
125192

126193
steps:
127194
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -130,13 +197,16 @@ jobs:
130197
with:
131198
node-version: lts/*
132199

133-
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
134-
name: Install pnpm
200+
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
201+
name: 🟧 Install pnpm
135202
with:
136203
cache: true
137204

138205
- name: 📦 Install dependencies
139206
run: pnpm install
140207

141-
- name: 🔍 Check for unused code
208+
- name: 🧹 Check for unused code
142209
run: pnpm knip
210+
211+
- name: 🧹 Check for unused production code
212+
run: pnpm knip --production

.github/workflows/lunaria.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ permissions:
1717

1818
jobs:
1919
lunaria-overview:
20-
name: Generate Lunaria Overview
21-
runs-on: ubuntu-latest
20+
name: 🌝 Generate Lunaria Overview
21+
runs-on: ubuntu-24.04-arm
2222

2323
steps:
2424
- name: Checkout
@@ -32,13 +32,13 @@ jobs:
3232
with:
3333
node-version: lts/*
3434

35-
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
36-
name: Install pnpm
35+
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
36+
name: 🟧 Install pnpm
3737
with:
3838
cache: true
3939

4040
- name: 📦 Install dependencies
4141
run: pnpm install
4242

4343
- name: Generate Lunaria Overview
44-
uses: lunariajs/action@v1-prerelease
44+
uses: lunariajs/action@4911ad0736d1e3b20af4cb70f5079aea2327ed8e # v1-prerelease

.github/workflows/provenance.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,29 @@ on:
44
push:
55
branches:
66
- main
7+
paths:
8+
- pnpm-lock.yaml
79
pull_request:
810
branches:
911
- main
12+
paths:
13+
- pnpm-lock.yaml
1014
merge_group:
1115
branches:
1216
- main
17+
1318
permissions:
1419
contents: read
20+
1521
jobs:
1622
check-provenance:
17-
runs-on: ubuntu-latest
23+
name: 🔒 Check provenance downgrades
24+
runs-on: ubuntu-slim
1825
steps:
1926
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2027
with:
2128
fetch-depth: 0
29+
2230
- name: Check provenance downgrades
2331
uses: danielroe/provenance-action@41bcc969e579d9e29af08ba44fcbfdf95cee6e6c # v0.1.1
2432
with:

.github/workflows/semantic-pull-requests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs
1717
statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR
1818
if: github.repository == 'npmx-dev/npmx.dev'
19-
runs-on: ubuntu-latest
20-
name: semantic-pr
19+
runs-on: ubuntu-slim
20+
name: 🏷️ Validate PR title
2121
steps:
2222
- name: Validate PR title
2323
uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
@@ -26,6 +26,7 @@ jobs:
2626
a11y
2727
deps
2828
docs
29+
cli
2930
i18n
3031
ui
3132
subjectPattern: ^(?![A-Z]).+$

.lighthouserc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = {
2929
url: [
3030
'http://localhost:3000/',
3131
'http://localhost:3000/search?q=nuxt',
32-
'http://localhost:3000/nuxt',
32+
'http://localhost:3000/package/nuxt',
3333
],
3434
numberOfRuns: 1,
3535
chromePath: findChrome(),

.oxlintrc.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"$schema": "https://unpkg.com/oxlint/configuration_schema.json",
33
"plugins": ["unicorn", "typescript", "oxc", "vue", "vitest"],
4+
"jsPlugins": ["@e18e/eslint-plugin"],
45
"categories": {
56
"correctness": "error",
67
"suspicious": "warn",
@@ -11,8 +12,27 @@
1112
"no-await-in-loop": "off",
1213
"unicorn/no-array-sort": "off",
1314
"no-restricted-globals": "error",
14-
"typescript/consistent-type-imports": "error"
15+
"typescript/consistent-type-imports": "error",
16+
"e18e/prefer-array-from-map": "error",
17+
"e18e/prefer-timer-args": "error",
18+
"e18e/prefer-date-now": "error",
19+
"e18e/prefer-regex-test": "error",
20+
"e18e/prefer-array-some": "error"
1521
},
22+
"overrides": [
23+
{
24+
"files": [
25+
"server/**/*",
26+
"cli/**/*",
27+
"scripts/**/*",
28+
"modules/**/*",
29+
"app/components/OgImage/*"
30+
],
31+
"rules": {
32+
"no-console": "off"
33+
}
34+
}
35+
],
1636
"ignorePatterns": [
1737
".output/**",
1838
".data/**",

0 commit comments

Comments
 (0)