Skip to content

Commit 41d1223

Browse files
committed
Merge remote-tracking branch 'origin/main' into dwells-docgen-multi-entrypoint
# Conflicts: # server/utils/docs/client.ts
2 parents f8439cf + 828fe54 commit 41d1223

File tree

356 files changed

+54651
-6741
lines changed

Some content is hidden

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

356 files changed

+54651
-6741
lines changed

.env.example

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

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/workflows/autofix.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,29 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@v6
21-
- run: corepack enable
22-
- uses: actions/setup-node@v6
20+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
21+
22+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
2323
with:
2424
node-version: lts/*
25-
cache: 'pnpm'
25+
26+
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
27+
name: Install pnpm
28+
with:
29+
cache: true
2630

2731
- name: 📦 Install dependencies
2832
run: pnpm install
2933

3034
- name: 📦 Install browsers
3135
run: pnpm playwright install
3236

37+
- name: 🌐 Compare translations
38+
run: pnpm i18n:check
39+
40+
- name: 🌍 Update lunaria data
41+
run: pnpm build:lunaria
42+
3343
- name: 🔠 Fix lint errors
3444
run: pnpm lint:fix
3545

@@ -39,7 +49,8 @@ jobs:
3949
- name: 🏃 Update component test snapshots
4050
run: pnpm test:nuxt -u
4151

42-
- name: 🖥️ Update browser test snapshots
43-
run: pnpm test:browser --update-snapshots
52+
# TODO: re-enable when we have snapshots in browser tests
53+
# - name: 🖥️ Update browser test snapshots
54+
# run: pnpm test:browser --update-snapshots
4455

4556
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27

.github/workflows/ci.yml

Lines changed: 59 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
branches:
1212
- main
1313

14+
# cancel in-progress runs on new commits to same PR (gitub.event.number)
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
17+
cancel-in-progress: true
18+
1419
permissions:
1520
contents: read
1621

@@ -19,12 +24,16 @@ jobs:
1924
runs-on: ubuntu-latest
2025

2126
steps:
22-
- uses: actions/checkout@v6
23-
- run: corepack enable
24-
- uses: actions/setup-node@v6
27+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
28+
29+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
2530
with:
2631
node-version: lts/*
27-
cache: pnpm
32+
33+
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
34+
name: Install pnpm
35+
with:
36+
cache: true
2837

2938
- name: 📦 Install dependencies
3039
run: pnpm install
@@ -36,12 +45,16 @@ jobs:
3645
runs-on: ubuntu-latest
3746

3847
steps:
39-
- uses: actions/checkout@v6
40-
- run: corepack enable
41-
- uses: actions/setup-node@v6
48+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
49+
50+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
4251
with:
4352
node-version: lts/*
44-
cache: pnpm
53+
54+
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
55+
name: Install pnpm
56+
with:
57+
cache: true
4558

4659
- name: 📦 Install dependencies
4760
run: pnpm install
@@ -61,15 +74,19 @@ jobs:
6174
browser:
6275
runs-on: ubuntu-latest
6376
container:
64-
image: mcr.microsoft.com/playwright:v1.57.0-noble
77+
image: mcr.microsoft.com/playwright:v1.58.0-noble
6578

6679
steps:
67-
- uses: actions/checkout@v6
68-
- run: corepack enable
69-
- uses: actions/setup-node@v6
80+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
81+
82+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
7083
with:
7184
node-version: lts/*
72-
cache: pnpm
85+
86+
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
87+
name: Install pnpm
88+
with:
89+
cache: true
7390

7491
- name: 📦 Install dependencies
7592
run: pnpm install
@@ -81,12 +98,16 @@ jobs:
8198
runs-on: ubuntu-latest
8299

83100
steps:
84-
- uses: actions/checkout@v6
85-
- run: corepack enable
86-
- uses: actions/setup-node@v6
101+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
102+
103+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
87104
with:
88105
node-version: lts/*
89-
cache: pnpm
106+
107+
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
108+
name: Install pnpm
109+
with:
110+
cache: true
90111

91112
- name: 📦 Install dependencies
92113
run: pnpm install
@@ -98,3 +119,24 @@ jobs:
98119
run: ./scripts/lighthouse-a11y.sh
99120
env:
100121
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
122+
123+
knip:
124+
runs-on: ubuntu-latest
125+
126+
steps:
127+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
128+
129+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
130+
with:
131+
node-version: lts/*
132+
133+
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
134+
name: Install pnpm
135+
with:
136+
cache: true
137+
138+
- name: 📦 Install dependencies
139+
run: pnpm install
140+
141+
- name: 🔍 Check for unused code
142+
run: pnpm knip

.github/workflows/lunaria.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: lunaria
2+
3+
on:
4+
# Trigger the workflow every time a pull request is opened or synchronized at the target `main` branch
5+
pull_request_target:
6+
types: [opened, synchronize]
7+
8+
# Automatically cancel in-progress actions on the same branch
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
11+
cancel-in-progress: true
12+
13+
# Allow this job to clone the repository and comment on the pull request
14+
permissions:
15+
contents: read
16+
pull-requests: write
17+
18+
jobs:
19+
lunaria-overview:
20+
name: Generate Lunaria Overview
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
26+
with:
27+
# Necessary for Lunaria to work properly
28+
# Makes the action clone the entire git history
29+
fetch-depth: 0
30+
31+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
32+
with:
33+
node-version: lts/*
34+
35+
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
36+
name: Install pnpm
37+
with:
38+
cache: true
39+
40+
- name: 📦 Install dependencies
41+
run: pnpm install
42+
43+
- name: Generate Lunaria Overview
44+
uses: lunariajs/action@v1-prerelease

.github/workflows/provenance.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ci
1+
name: provenance
22

33
on:
44
push:
@@ -16,7 +16,7 @@ jobs:
1616
check-provenance:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v6
19+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2020
with:
2121
fetch-depth: 0
2222
- name: Check provenance downgrades
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: chore
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
permissions: {}
11+
12+
jobs:
13+
semantic-pr:
14+
permissions:
15+
contents: read
16+
pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs
17+
statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR
18+
if: github.repository == 'npmx-dev/npmx.dev'
19+
runs-on: ubuntu-latest
20+
name: semantic-pr
21+
steps:
22+
- name: Validate PR title
23+
uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
24+
with:
25+
scopes: |
26+
a11y
27+
deps
28+
docs
29+
i18n
30+
ui
31+
subjectPattern: ^(?![A-Z]).+$
32+
subjectPatternError: |
33+
The subject "{subject}" found in the pull request title "{title}"
34+
didn't match the configured pattern. Please ensure that the subject
35+
doesn't start with an uppercase character.
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,6 @@ test-results/
3636

3737
# Lighthouse
3838
.lighthouseci
39+
40+
# generated files
41+
shared/types/lexicons

.oxfmtrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "./node_modules/oxfmt/configuration_schema.json",
2+
"$schema": "https://unpkg.com/oxfmt/configuration_schema.json",
33
"semi": false,
44
"singleQuote": true,
55
"arrowParens": "avoid",

.oxlintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "./node_modules/oxlint/configuration_schema.json",
2+
"$schema": "https://unpkg.com/oxlint/configuration_schema.json",
33
"plugins": ["unicorn", "typescript", "oxc", "vue", "vitest"],
44
"categories": {
55
"correctness": "error",

0 commit comments

Comments
 (0)