Give up on size-limit
Some checks are pending
Pull Request to `main` from `production` / auto-pull-request (push) Waiting to run

Also, ridiculous amount of dependencies for such simple checker tho'
This commit is contained in:
Lim Chee Aun 2024-09-10 12:45:41 +08:00
parent 805c9c82aa
commit 0453cde6ac
3 changed files with 1 additions and 1129 deletions

View file

@ -1,21 +0,0 @@
name: Size limit
on:
pull_request:
branches:
- production
permissions:
pull-requests: write
jobs:
size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: andresz1/size-limit-action@v1.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

1092
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -13,8 +13,7 @@
"messages:extract:clean": "lingui extract --locale en --clean", "messages:extract:clean": "lingui extract --locale en --clean",
"messages:compile": "lingui compile", "messages:compile": "lingui compile",
"fetch-i18n-volunteers": "env $(cat .env.local | grep -v \"#\" | xargs) node scripts/fetch-i18n-volunteers.js", "fetch-i18n-volunteers": "env $(cat .env.local | grep -v \"#\" | xargs) node scripts/fetch-i18n-volunteers.js",
"readme:i18n-volunteers": "node scripts/update-i18n-volunteers-readme.js", "readme:i18n-volunteers": "node scripts/update-i18n-volunteers-readme.js"
"size": "npm run build && size-limit"
}, },
"dependencies": { "dependencies": {
"@formatjs/intl-localematcher": "~0.5.4", "@formatjs/intl-localematcher": "~0.5.4",
@ -62,12 +61,10 @@
"@lingui/cli": "~4.11.4", "@lingui/cli": "~4.11.4",
"@lingui/vite-plugin": "~4.11.4", "@lingui/vite-plugin": "~4.11.4",
"@preact/preset-vite": "~2.9.0", "@preact/preset-vite": "~2.9.0",
"@size-limit/preset-app": "~11.1.5",
"babel-plugin-macros": "~3.1.0", "babel-plugin-macros": "~3.1.0",
"postcss": "~8.4.45", "postcss": "~8.4.45",
"postcss-dark-theme-class": "~1.3.0", "postcss-dark-theme-class": "~1.3.0",
"postcss-preset-env": "~10.0.2", "postcss-preset-env": "~10.0.2",
"size-limit": "~11.1.5",
"twitter-text": "~3.1.0", "twitter-text": "~3.1.0",
"vite": "~5.4.3", "vite": "~5.4.3",
"vite-plugin-generate-file": "~0.2.0", "vite-plugin-generate-file": "~0.2.0",
@ -98,17 +95,5 @@
"browserslist": [ "browserslist": [
"defaults", "defaults",
"android >= 4" "android >= 4"
],
"size-limit": [
{
"path": [
"dist/assets/*.js",
"dist/assets/icons/*.js"
],
"limit": "500 kB",
"running": false,
"gzip": false,
"brotli": true
}
] ]
} }