Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit c8b3cdf

Browse files
committed
feat(ci): introduce RelativeCI for the client
1 parent 5a53fbb commit c8b3cdf

5 files changed

Lines changed: 55 additions & 3 deletions

File tree

.github/workflows/dev.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,14 @@ jobs:
7474
run: pnpm install --frozen-lockfile
7575
- name: Update build info
7676
run: pnpm run chore:update-build-info
77-
- name: Trigger build
77+
- name: Trigger client build
78+
run: pnpm nx run client:build
79+
- name: Send client bundle stats to RelativeCI
80+
uses: relative-ci/agent-action@v3
81+
with:
82+
webpackStatsFile: ./apps/client/dist/webpack-stats.json
83+
key: ${{ secrets.RELATIVE_CI_CLIENT_KEY }}
84+
- name: Trigger server build
7885
run: pnpm nx run server:build
7986
- uses: docker/setup-buildx-action@v3
8087
- uses: docker/build-push-action@v6

apps/client/vite.config.mts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { join, resolve } from 'path';
33
import { defineConfig } from 'vite';
44
import { viteStaticCopy } from 'vite-plugin-static-copy'
55
import asset_path from './src/asset_path';
6+
import webpackStatsPlugin from 'rollup-plugin-webpack-stats';
67

78
const assets = [ "assets", "stylesheets", "libraries", "fonts", "translations" ];
89

@@ -33,7 +34,8 @@ export default defineConfig(() => ({
3334
dest: "",
3435
}
3536
]
36-
})
37+
}),
38+
webpackStatsPlugin()
3739
],
3840
resolve: {
3941
alias: [

apps/server/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,10 @@
282282
{
283283
"glob": "**/*",
284284
"input": "apps/client/dist",
285-
"output": "public"
285+
"output": "public",
286+
"ignore": [
287+
"webpack-stats.json"
288+
]
286289
},
287290
{
288291
"glob": "**/*",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"jsonc-eslint-parser": "^2.1.0",
5656
"nx": "21.1.3",
5757
"react-refresh": "^0.17.0",
58+
"rollup-plugin-webpack-stats": "2.0.7",
5859
"tslib": "^2.3.0",
5960
"tsx": "4.19.4",
6061
"typescript": "~5.8.0",

pnpm-lock.yaml

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)