Skip to content

Commit

Permalink
build: use bundlewatch on iife min
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt committed Jan 17, 2025
1 parent 1aea11b commit ae7432c
Show file tree
Hide file tree
Showing 3 changed files with 3,110 additions and 2,262 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ jobs:
- run: pnpm check
- run: npx playwright install --with-deps
- run: pnpm test
- run: pnpm bundlewatch
env:
BUNDLEWATCH_GITHUB_TOKEN: "${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}"
CI_BRANCH_BASE: main
18 changes: 17 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
},
"scripts": {
"build": "wireit",
"bundlewatch": "wireit",
"check": "tsc --noEmit",
"format": "biome check --fix .",
"lint": "biome check .",
Expand All @@ -69,6 +70,7 @@
"@types/unist": "^3.0.3",
"browserslist": "^4.24.0",
"browserslist-to-esbuild": "^2.1.1",
"bundlewatch": "^0.4.0",
"custom-elements-manifest": "^2.1.0",
"husky": "^9.1.4",
"lint-staged": "^15.2.9",
Expand Down Expand Up @@ -140,6 +142,12 @@
"dist/storybook"
]
},
"bundlewatch": {
"command": "bundlewatch",
"dependencies": [
"build:components"
]
},
"storybook": {
"service": true,
"command": "storybook dev -p 6006",
Expand All @@ -160,5 +168,13 @@
"access": "public",
"registry": "https://wombat-dressing-room.appspot.com"
},
"packageManager": "pnpm@9.3.0"
"packageManager": "pnpm@9.3.0",
"bundlewatch" : {
"files": [
{
"path": "dist/index.iife.min.js",
"maxSize": "2.25kB"
}
]
}
}
Loading

0 comments on commit ae7432c

Please sign in to comment.