Skip to content

Commit 930a4d3

Browse files
authored
Merge pull request #827 from Lemoncode/dev
Merge with main
2 parents 5bb0d20 + 24fda3b commit 930a4d3

1,189 files changed

Lines changed: 11257 additions & 6313 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.

.changeset/config.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "dev",
9+
"updateInternalDependencies": "patch",
10+
"ignore": [],
11+
"privatePackages": {
12+
"version": false,
13+
"tag": false
14+
}
15+
}

.env.test

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.cjs

Lines changed: 0 additions & 22 deletions
This file was deleted.

.gitattributes

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

.github/dependabot.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'npm'
4+
directory: '/'
5+
schedule:
6+
interval: 'weekly'
7+
open-pull-requests-limit: 10
8+
ignore:
9+
- dependency-name: '@types/node'
10+
update-types:
11+
- 'version-update:semver-major'
12+
groups:
13+
minor-and-patch:
14+
update-types:
15+
- 'minor'
16+
- 'patch'
17+
18+
- package-ecosystem: 'github-actions'
19+
directory: '/'
20+
schedule:
21+
interval: 'weekly'
22+
groups:
23+
github-actions:
24+
patterns:
25+
- '*'

.github/workflows/cd.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,28 @@ jobs:
1414
name: Deploy Quickmock
1515
steps:
1616
- name: Checkout repository
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
18+
19+
- name: Use Node.js
20+
uses: actions/setup-node@v6
21+
with:
22+
node-version-file: '.nvmrc'
23+
cache: 'npm'
1824

1925
- name: Install
2026
run: npm ci
2127

2228
- name: Build
23-
run: npm run build
29+
run: node --run build
2430

2531
- name: Deploy
2632
uses: Azure/static-web-apps-deploy@v1
2733
with:
2834
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ASHY_FIELD_0DCD26F03 }}
2935
repo_token: ${{ secrets.GITHUB_TOKEN }}
30-
action: "upload"
31-
app_location: "/dist"
36+
action: 'upload'
37+
app_location: 'apps/web/dist'
3238
skip_app_build: true
3339
skip_api_build: true
3440
env:
35-
NODE_VERSION: 20.17.0
41+
NODE_VERSION: 24.14.1

.github/workflows/ci.yml

Lines changed: 50 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,46 +7,79 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout repository
10-
uses: actions/checkout@v4
10+
uses: actions/checkout@v6
1111

12-
- name: Use Node.js 20.17.0
13-
uses: actions/setup-node@v4
12+
- name: Use Node.js
13+
uses: actions/setup-node@v6
1414
with:
15-
node-version: '20.17.0'
15+
node-version-file: '.nvmrc'
1616
cache: 'npm'
1717

1818
- name: Install dependencies
1919
run: npm ci
2020

21-
- name: Build
22-
run: npm run build
21+
- name: Install test browsers
22+
run: node --run install:test-browsers
23+
24+
- name: Lint
25+
run: node --run lint
2326

2427
- name: Check TypeScript types
25-
run: npm run tsc-check
28+
run: node --run check-types
29+
30+
- name: Build
31+
run: node --run build
2632

2733
- name: Run tests
28-
run: npm test
34+
run: node --run test
2935

3036
e2e-tests:
3137
runs-on: ubuntu-latest
3238
steps:
3339
- name: Checkout repository
34-
uses: actions/checkout@v4
40+
uses: actions/checkout@v6
3541

36-
- name: Use Node.js 20.17.0
37-
uses: actions/setup-node@v4
42+
- name: Use Node.js
43+
uses: actions/setup-node@v6
3844
with:
39-
node-version: '20.17.0'
45+
node-version-file: '.nvmrc'
4046
cache: 'npm'
4147

4248
- name: Install dependencies
4349
run: npm ci
4450

45-
- name: Build
46-
run: npm run build
51+
- name: Install test browsers
52+
run: node --run install:test-browsers
4753

48-
- name: Check TypeScript types
49-
run: npm run tsc-check
54+
- name: Build
55+
run: node --run build
5056

5157
- name: Run E2E tests
52-
run: npm run ci:e2e
58+
run: node --run ci:e2e
59+
60+
changeset-check:
61+
if: github.event.pull_request.base.ref != 'main'
62+
runs-on: ubuntu-latest
63+
steps:
64+
- name: Checkout repository
65+
uses: actions/checkout@v6
66+
with:
67+
fetch-depth: 0
68+
69+
- name: Check for changeset
70+
run: |
71+
BASE=${{ github.event.pull_request.base.sha }}
72+
HEAD=${{ github.event.pull_request.head.sha }}
73+
74+
PACKAGES_CHANGED=$(git diff --name-only "$BASE" "$HEAD" -- packages/ | head -1)
75+
76+
if [ -n "$PACKAGES_CHANGED" ]; then
77+
CHANGESET_ADDED=$(git diff --name-only "$BASE" "$HEAD" -- '.changeset/*.md' | head -1)
78+
if [ -z "$CHANGESET_ADDED" ]; then
79+
echo "::error::This PR modifies packages/ but has no changeset. Run 'node --run changeset' to add one."
80+
exit 1
81+
fi
82+
echo "Changeset found for package changes."
83+
else
84+
echo "No package changes detected, skipping changeset check."
85+
fi

.github/workflows/pkg-publish.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Package Publish
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main]
7+
paths:
8+
- 'packages/**'
9+
- '.changeset/**'
10+
11+
concurrency: ${{ github.workflow }}-${{ github.ref }}
12+
13+
permissions:
14+
contents: write
15+
id-token: write
16+
17+
jobs:
18+
publish:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v6
22+
23+
- uses: actions/setup-node@v6
24+
with:
25+
node-version-file: '.nvmrc'
26+
registry-url: 'https://registry.npmjs.org'
27+
28+
- run: npm ci
29+
30+
- run: node --run build
31+
32+
- name: Publish to npm
33+
uses: changesets/action@v1
34+
with:
35+
publish: node --run publish-packages
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
39+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
40+
NPM_CONFIG_PROVENANCE: 'true'
41+
VSCE_PAT: ${{ secrets.VSCE_TOKEN }}

.github/workflows/pkg-version.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Package Versioning
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [dev]
7+
paths:
8+
- 'packages/**'
9+
- '.changeset/**'
10+
11+
concurrency: ${{ github.workflow }}-${{ github.ref }}
12+
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
17+
jobs:
18+
version:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v6
22+
23+
- uses: actions/setup-node@v6
24+
with:
25+
node-version-file: '.nvmrc'
26+
27+
- run: npm ci
28+
29+
- name: Create Version PR
30+
uses: changesets/action@v1
31+
with:
32+
title: 'chore: version packages'
33+
commit: 'chore: version packages'
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
1-
# Playwright
1+
# Dependencies
2+
node_modules
3+
4+
# Build outputs
5+
dist
6+
dist-ssr
7+
8+
# Turbo
9+
.turbo
10+
11+
# Test outputs
12+
coverage
213
playwright-report/
314
test-results/
15+
blob-report/
16+
playwright/.cache/
417

518
# Logs
619
logs
@@ -11,14 +24,13 @@ yarn-error.log*
1124
pnpm-debug.log*
1225
lerna-debug.log*
1326

14-
node_modules
15-
dist
16-
dist-ssr
27+
# Local env files
1728
*.local
1829

1930
# Editor directories and files
2031
.vscode/*
21-
!.vscode/extensions.json
32+
!.vscode/settings.json
33+
!.vscode/launch.json
2234
.idea
2335
.DS_Store
2436
*.suo
@@ -27,8 +39,5 @@ dist-ssr
2739
*.sln
2840
*.sw?
2941

42+
# Vite
3043
.vite
31-
/test-results/
32-
/playwright-report/
33-
/blob-report/
34-
/playwright/.cache/

0 commit comments

Comments
 (0)