Skip to content

Commit ae7432c

Browse files
committed
build: use bundlewatch on iife min
1 parent 1aea11b commit ae7432c

File tree

3 files changed

+3110
-2262
lines changed

3 files changed

+3110
-2262
lines changed

.github/workflows/test.yml

+4
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,7 @@ jobs:
2828
- run: pnpm check
2929
- run: npx playwright install --with-deps
3030
- run: pnpm test
31+
- run: pnpm bundlewatch
32+
env:
33+
BUNDLEWATCH_GITHUB_TOKEN: "${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}"
34+
CI_BRANCH_BASE: main

package.json

+17-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
},
4444
"scripts": {
4545
"build": "wireit",
46+
"bundlewatch": "wireit",
4647
"check": "tsc --noEmit",
4748
"format": "biome check --fix .",
4849
"lint": "biome check .",
@@ -69,6 +70,7 @@
6970
"@types/unist": "^3.0.3",
7071
"browserslist": "^4.24.0",
7172
"browserslist-to-esbuild": "^2.1.1",
73+
"bundlewatch": "^0.4.0",
7274
"custom-elements-manifest": "^2.1.0",
7375
"husky": "^9.1.4",
7476
"lint-staged": "^15.2.9",
@@ -140,6 +142,12 @@
140142
"dist/storybook"
141143
]
142144
},
145+
"bundlewatch": {
146+
"command": "bundlewatch",
147+
"dependencies": [
148+
"build:components"
149+
]
150+
},
143151
"storybook": {
144152
"service": true,
145153
"command": "storybook dev -p 6006",
@@ -160,5 +168,13 @@
160168
"access": "public",
161169
"registry": "https://wombat-dressing-room.appspot.com"
162170
},
163-
"packageManager": "[email protected]"
171+
"packageManager": "[email protected]",
172+
"bundlewatch" : {
173+
"files": [
174+
{
175+
"path": "dist/index.iife.min.js",
176+
"maxSize": "2.25kB"
177+
}
178+
]
179+
}
164180
}

0 commit comments

Comments
 (0)