Skip to content

Commit 4f6dedb

Browse files
authored
Merge pull request #813 from Lemoncode/feature/#811-Create-base-structure
Feature/#811 create base structure
2 parents b9b3a62 + d6de03e commit 4f6dedb

1,188 files changed

Lines changed: 10506 additions & 6142 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+
}

.changeset/spicy-friends-lick.md

Lines changed: 6 additions & 0 deletions

.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+
production-dependencies:
14+
dependency-type: 'production'
15+
development-dependencies:
16+
dependency-type: 'development'
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: 49 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,46 +7,78 @@ 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+
runs-on: ubuntu-latest
62+
steps:
63+
- name: Checkout repository
64+
uses: actions/checkout@v6
65+
with:
66+
fetch-depth: 0
67+
68+
- name: Check for changeset
69+
run: |
70+
BASE=${{ github.event.pull_request.base.sha }}
71+
HEAD=${{ github.event.pull_request.head.sha }}
72+
73+
PACKAGES_CHANGED=$(git diff --name-only "$BASE" "$HEAD" -- packages/ | head -1)
74+
75+
if [ -n "$PACKAGES_CHANGED" ]; then
76+
CHANGESET_ADDED=$(git diff --name-only "$BASE" "$HEAD" -- '.changeset/*.md' | head -1)
77+
if [ -z "$CHANGESET_ADDED" ]; then
78+
echo "::error::This PR modifies packages/ but has no changeset. Run 'node --run changeset' to add one."
79+
exit 1
80+
fi
81+
echo "Changeset found for package changes."
82+
else
83+
echo "No package changes detected, skipping changeset check."
84+
fi

.github/workflows/pkg-publish.yml

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

0 commit comments

Comments
 (0)