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

Commit d34eae9

Browse files
committed
ci: improve script and upgrade memory allocation
1 parent eef0d53 commit d34eae9

File tree

11 files changed

+58
-47
lines changed

11 files changed

+58
-47
lines changed

._codesandbox/ci.json

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/quality.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,34 @@ jobs:
1212
build:
1313
name: Build
1414
runs-on: ubuntu-latest
15+
env:
16+
NODE_OPTIONS: "--max-old-space-size=8192"
17+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
18+
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
19+
1520
steps:
1621
- name: Checkout branch
1722
uses: actions/checkout@v3
1823

1924
- name: Install
2025
uses: ./.github/composite-actions/install
2126

27+
- name: Check Code Formatting
28+
run: pnpm lint
29+
30+
- name: Check TypeScript Types
31+
run: pnpm checktypes
32+
33+
- name: Run Component Tests
34+
run: pnpm test:ci
35+
env:
36+
CI: true
37+
2238
- name: Build packages
2339
run: pnpm build
40+
41+
- name: Check package sizes
42+
uses: preactjs/compressed-size-action@v2
43+
with:
44+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
45+
pattern: "**/dist/**/*.esm.js"

@types/components.d.ts

Lines changed: 14 additions & 1 deletion
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-26T03:46:18.920Z
9+
* This file was generated on 2023-01-26T05:06:19.790Z
1010
*/
1111

1212
import { ChakraProps, chakra } from "@chakra-ui/vue-system"
@@ -233,6 +233,19 @@ declare module "@vue/runtime-core" {
233233
role?: string
234234
tabindex?: number | string
235235
value?: unknown
236+
id?: string
237+
viewBox?: unknown
238+
src?: unknown
239+
srcset?: unknown
240+
crossOrigin?: unknown
241+
srcSet?: unknown
242+
loading?: unknown
243+
alt?: unknown
244+
referrerPolicy?: unknown
245+
focusable?: unknown
246+
type?: unknown
247+
disabled?: unknown
248+
href?: unknown
236249
// should be removed after Vue supported component events typing
237250
// see: https://github.com/vuejs/vue-next/issues/1553
238251
// https://github.com/vuejs/vue-next/issues/3029

components.d.ts

Lines changed: 14 additions & 1 deletion
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-26T03:46:18.920Z
9+
* This file was generated on 2023-01-26T05:06:19.790Z
1010
*/
1111

1212
import { ChakraProps, chakra } from "@chakra-ui/vue-system"
@@ -233,6 +233,19 @@ declare module "@vue/runtime-core" {
233233
role?: string
234234
tabindex?: number | string
235235
value?: unknown
236+
id?: string
237+
viewBox?: unknown
238+
src?: unknown
239+
srcset?: unknown
240+
crossOrigin?: unknown
241+
srcSet?: unknown
242+
loading?: unknown
243+
alt?: unknown
244+
referrerPolicy?: unknown
245+
focusable?: unknown
246+
type?: unknown
247+
disabled?: unknown
248+
href?: unknown
236249
// should be removed after Vue supported component events typing
237250
// see: https://github.com/vuejs/vue-next/issues/1553
238251
// https://github.com/vuejs/vue-next/issues/3029

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
"build:types": "jiti scripts/generate-global-types.ts",
2424
"postbuild": "pnpm build:types && pnpm size",
2525
"start": "preconstruct watch",
26-
"csb:install": "pnpm && pnpm bootstrap",
27-
"bootstrap": "pnpm run lerna bootstrap",
2826
"scaffold": "hygen generator",
2927
"release": "pnpm changeset publish",
3028
"preplaygound:dev": "node ./scripts/dev.js",
@@ -39,6 +37,7 @@
3937
"test:ci": "pnpm dev && pnpm test:silent && pnpm cy:run",
4038
"test:unit": "cross-env NODE_ENV=test jest --config jest.config.js",
4139
"lint": "eslint '*/**/*.{js,ts,tsx}' --quiet --fix",
40+
"checktypes": "turbo run types:check --filter=!./examples/* --filter=!{./packages/test-utils}",
4241
"docs:dev:legacy": "vitepress dev docs",
4342
"docs:build:legacy": "vitepress build docs",
4443
"docs:serve:legacy": "vitepress serve docs",
@@ -73,6 +72,7 @@
7372
"@chakra-ui/theme-tools": "^2.0.17",
7473
"@chakra-ui/theme-utils": "^2.0.6",
7574
"@chakra-ui/utils": "2.0.14",
75+
"@chakra-ui/vue-auto-import": "workspace:*",
7676
"@chakra-ui/vue-next": "workspace:*",
7777
"@chakra-ui/vue-styled": "workspace:*",
7878
"@chakra-ui/vue-system": "workspace:*",

pnpm-lock.yaml

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

scripts/transform-package-meta.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ const configureBuildScripts: TransformFunction = (pkg: IPackageJson) => {
102102
} else {
103103
pkg.scripts["build:types"] = "tsup src --dts-only"
104104
}
105-
delete pkg.scripts["build:rollup"]
106105
pkg.scripts["build:fast"] = "tsup"
107106
pkg.scripts["dev"] = "tsup --watch"
108107
pkg.scripts["clean"] = "rimraf dist .turbo"

tooling/auto-import/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"build": "tsup && pnpm build:types",
2222
"build:fast": "tsup",
2323
"types:check": "tsc --noEmit",
24-
"build:types": "echo 'WIP exporting all types'",
24+
"build:types": "tsc --baseUrl . --outDir dist --rootDir . --emitDeclarationOnly --declarationMap",
2525
"dev": "tsup --watch"
2626
},
2727
"publishConfig": {

tooling/auto-import/src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** @ts-ignore */
12
import * as ChakraComponents from "@chakra-ui/vue-next"
23
import type * as Theme from "@chakra-ui/theme"
34
import type * as ThemeTools from "@chakra-ui/theme-tools"

tooling/auto-import/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"extends": "../../tsconfig.json",
3-
"include": ["src", "./index.tsx", "./index.ts", "src/index.tsx"]
3+
"include": ["src", "./index.ts", "./index.tsx"],
4+
45
}

0 commit comments

Comments
 (0)