Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 04402fb

Browse files
committed
ci: print package sizes after build
1 parent af79e12 commit 04402fb

File tree

14 files changed

+329
-72
lines changed

14 files changed

+329
-72
lines changed

.github/workflows/quality.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,16 @@ jobs:
3737

3838
- name: Build packages
3939
run: pnpm build
40-
41-
- name: Check package sizes
42-
uses: preactjs/compressed-size-action@v2
40+
size:
41+
runs-on: ubuntu-latest
42+
env:
43+
CI_JOB_NUMBER: 1
44+
steps:
45+
- uses: actions/checkout@v3
46+
- name: Install pnpm
47+
uses: pnpm/action-setup@v2
48+
- uses: antfu/export-size-action@main
4349
with:
44-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
45-
pattern: "**/dist/**/*.esm.js"
50+
github_token: ${{ secrets.GITHUB_TOKEN }}
51+
comment_token: ${{ secrets.COMMENT_TOKEN }}
52+
paths: packages/core,packages/shared,packages/integrations,packages/firebase,packages/rxjs

@types/components.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* This is a generated file. Do not edit it's contents.
88
*
9-
* This file was generated on 2023-01-26T05:42:28.348Z
9+
* This file was generated on 2023-01-26T11:03:05.352Z
1010
*/
1111

1212
import { ChakraProps, chakra } from "@chakra-ui/vue-system"
@@ -145,9 +145,9 @@ declare module "@vue/runtime-core" {
145145
CModalFooter: typeof import("@chakra-ui/vue-next")["CModalFooter"]
146146
CModalHeader: typeof import("@chakra-ui/vue-next")["CModalHeader"]
147147
CModalOverlay: typeof import("@chakra-ui/vue-next")["CModalOverlay"]
148-
CMotion: typeof import("@chakra-ui/vue-next")["CMotion"]
149148
CAnimatePresence: typeof import("@chakra-ui/vue-next")["CAnimatePresence"]
150149
CCollapse: typeof import("@chakra-ui/vue-next")["CCollapse"]
150+
CMotion: typeof import("@chakra-ui/vue-next")["CMotion"]
151151
CPinInput: typeof import("@chakra-ui/vue-next")["CPinInput"]
152152
CPinInputClearButton: typeof import("@chakra-ui/vue-next")["CPinInputClearButton"]
153153
CPinInputField: typeof import("@chakra-ui/vue-next")["CPinInputField"]

components.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* This is a generated file. Do not edit it's contents.
88
*
9-
* This file was generated on 2023-01-26T05:42:28.348Z
9+
* This file was generated on 2023-01-26T11:03:05.352Z
1010
*/
1111

1212
import { ChakraProps, chakra } from "@chakra-ui/vue-system"
@@ -145,9 +145,9 @@ declare module "@vue/runtime-core" {
145145
CModalFooter: typeof import("@chakra-ui/vue-next")["CModalFooter"]
146146
CModalHeader: typeof import("@chakra-ui/vue-next")["CModalHeader"]
147147
CModalOverlay: typeof import("@chakra-ui/vue-next")["CModalOverlay"]
148-
CMotion: typeof import("@chakra-ui/vue-next")["CMotion"]
149148
CAnimatePresence: typeof import("@chakra-ui/vue-next")["CAnimatePresence"]
150149
CCollapse: typeof import("@chakra-ui/vue-next")["CCollapse"]
150+
CMotion: typeof import("@chakra-ui/vue-next")["CMotion"]
151151
CPinInput: typeof import("@chakra-ui/vue-next")["CPinInput"]
152152
CPinInputClearButton: typeof import("@chakra-ui/vue-next")["CPinInputClearButton"]
153153
CPinInputField: typeof import("@chakra-ui/vue-next")["CPinInputField"]

package.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"build": "turbo run build --filter=!./examples/* --filter=!{./packages/test-utils}",
2222
"build:dev": "turbo run build:fast --filter=!./examples/* --filter=!{./packages/test-utils}",
2323
"build:types": "jiti scripts/generate-global-types.ts",
24-
"postbuild": "pnpm build:types && pnpm size",
24+
"postbuild": "pnpm pkgs:size",
2525
"start": "preconstruct watch",
2626
"scaffold": "hygen generator",
2727
"release": "pnpm changeset publish",
@@ -55,7 +55,9 @@
5555
"size": "echo TODO: Analyze build sizes",
5656
"analyze": "size-limit --why",
5757
"vitest": "vitest --globals --environment=jsdom",
58-
"coverage": "vitest run --coverage"
58+
"coverage": "vitest run --coverage",
59+
"process:packages": "pnpm jiti ./scripts/process-packages.ts process-packages",
60+
"pkgs:size": "pnpm jiti ./scripts/plugins/size-packages.ts"
5961
},
6062
"license": "MIT",
6163
"private": true,
@@ -100,6 +102,7 @@
100102
"@testing-library/vue": "^6.6.1",
101103
"@types/body-scroll-lock": "^2.6.1",
102104
"@types/eslint": "^7.2.13",
105+
"@types/fs-extra": "^11.0.1",
103106
"@types/jest": "^26.0.20",
104107
"@types/jest-axe": "^3.5.1",
105108
"@types/lodash.camelcase": "^4.3.6",
@@ -137,6 +140,8 @@
137140
"axe-core": "^4.1.2",
138141
"babel-jest": "^26.6.3",
139142
"body-scroll-lock": "^3.1.5",
143+
"brotli": "^1.3.3",
144+
"chalk": "^5.2.0",
140145
"change-case": "^4.1.1",
141146
"chokidar": "^3.5.1",
142147
"concurrently": "^5.3.0",
@@ -159,9 +164,10 @@
159164
"eslint-plugin-promise": "^4.2.1",
160165
"eslint-plugin-standard": "^4.0.1",
161166
"eslint-plugin-vue": "^7.0.0",
167+
"execa": "^6.1.0",
162168
"feather-icons-paths": "^1.1.1",
163169
"focus-trap": "^6.3.0",
164-
"fs-extra": "^9.0.1",
170+
"fs-extra": "^9.1.0",
165171
"glob": "^8.1.0",
166172
"glob-promise": "^6.0.2",
167173
"happy-dom": "^6.0.3",
@@ -206,7 +212,8 @@
206212
"vue-jest": "^5.0.0-alpha.7",
207213
"vue-prism-editor": "^2.0.0-alpha.2",
208214
"vue-router": "^4.0.12",
209-
"vue3-perfect-scrollbar": "^1.5.5"
215+
"vue3-perfect-scrollbar": "^1.5.5",
216+
"yargs": "^17.6.2"
210217
},
211218
"preconstruct": {
212219
"packages": [

pnpm-lock.yaml

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

scripts/plugins/list-packages.ts

Whitespace-only changes.

0 commit comments

Comments
 (0)