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

Commit e752ff0

Browse files
committed
ci: setup 16384 memory
1 parent 0b407cd commit e752ff0

File tree

8 files changed

+24
-14
lines changed

8 files changed

+24
-14
lines changed

.github/workflows/pr.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,13 @@ jobs:
5555
- name: Lint types and code
5656
run: pnpm lint
5757

58+
- name: Allocate Node.js Memory
59+
run:
60+
export NODE_OPTIONS=--max_old_space_size=16384 && echo Allocated Node
61+
Memory :\:\ $NODE_OPTIONS
62+
5863
- name: Build packages
5964
run: pnpm build
60-
env:
61-
NODE_OPTIONS: "--max-old-space-size=8192"
6265

6366
- name: Run tests
6467
run: pnpm test:ci

@types/components.d.ts

Lines changed: 2 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-26T01:35:24.938Z
9+
* This file was generated on 2023-01-26T03:46:18.920Z
1010
*/
1111

1212
import { ChakraProps, chakra } from "@chakra-ui/vue-system"
@@ -102,6 +102,7 @@ declare module "@vue/runtime-core" {
102102
CCircle: typeof import("@chakra-ui/vue-next")["CCircle"]
103103
CContainer: typeof import("@chakra-ui/vue-next")["CContainer"]
104104
CDivider: typeof import("@chakra-ui/vue-next")["CDivider"]
105+
CFlex: typeof import("@chakra-ui/vue-next")["CFlex"]
105106
CGrid: typeof import("@chakra-ui/vue-next")["CGrid"]
106107
CGridItem: typeof import("@chakra-ui/vue-next")["CGridItem"]
107108
CHStack: typeof import("@chakra-ui/vue-next")["CHStack"]

_templates/generator/component/README.md.ejs.t

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22
to: packages/<%=h.changeCase.paramCase(name)%>/README.md
33
---
44

5-
# @chakra-ui/<%=h.changeCase.paramCase(name)%>
5+
# `@chakra-ui/<%=h.changeCase.paramCase(name)%>`
66

77
<%=h.changeCase.sentence(description)%>
88

99
## Installation
1010

1111
```sh
12-
yarn add @chakra-ui/<%=h.changeCase.paramCase(name)%>
13-
# or
12+
# with pnpm
13+
pnpm add @chakra-ui/<%=h.changeCase.paramCase(name)%>
14+
# or with Yarn
15+
yarn i @chakra-ui/<%=h.changeCase.paramCase(name)%>
16+
# or with npm
1417
npm i @chakra-ui/<%=h.changeCase.paramCase(name)%>
1518
```

_templates/generator/component/component.tsx.ejs.t

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,15 @@ to: packages/<%=h.changeCase.paramCase(name)%>/src/<%=h.changeCase.paramCase(nam
1111
* @see WAI-ARIA https://www.w3.org/TR/wai-aria-practices-1.2
1212
*/
1313

14-
import { defineComponent, h, PropType } from "vue"
14+
import { defineComponent, h, Fragment, PropType } from "vue"
1515
import {
1616
chakra,
17-
ComponentWithProps,
18-
DeepPartial,
1917
DOMElements,
2018
} from "@chakra-ui/vue-system"
2119

2220
export interface <%= h.changeCase.pascalCase(name) %>Props {}
2321

24-
export const <%= h.changeCase.pascalCase(name) %>: ComponentWithProps<DeepPartial<<%= h.changeCase.pascalCase(name) %>Props>> =
25-
defineComponent({
22+
export const <%= h.changeCase.pascalCase(name) %> = defineComponent({
2623
props: {
2724
as: {
2825
type: [Object, String] as PropType<DOMElements>,

_templates/generator/component/package.json.ejs.t

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ to: packages/<%=h.changeCase.paramCase(name)%>/package.json
2929
},
3030
"sideEffects": false,
3131
"scripts": {
32-
"clean": "rimraf dist"
32+
"clean": "rimraf dist .turbo",
33+
"build": "tsup && pnpm build:types",
34+
"build:fast": "tsup",
35+
"build:types": "tsup src --dts-only",
36+
"types:check": "tsc --noEmit",
37+
"dev": "tsup --watch"
3338
},
3439
"dependencies": {
3540
"@chakra-ui/vue-system": "0.1.0-next.10"

_templates/generator/component/tsconfig.json.ejs.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ to: packages/<%=h.changeCase.paramCase(name)%>/tsconfig.json
44

55
{
66
"extends": "../../tsconfig.json",
7-
"include": ["src", "./index.tsx", "./index.ts"]
7+
"include": ["src", "./index.tsx"]
88
}

components.d.ts

Lines changed: 2 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-26T01:35:24.938Z
9+
* This file was generated on 2023-01-26T03:46:18.920Z
1010
*/
1111

1212
import { ChakraProps, chakra } from "@chakra-ui/vue-system"
@@ -102,6 +102,7 @@ declare module "@vue/runtime-core" {
102102
CCircle: typeof import("@chakra-ui/vue-next")["CCircle"]
103103
CContainer: typeof import("@chakra-ui/vue-next")["CContainer"]
104104
CDivider: typeof import("@chakra-ui/vue-next")["CDivider"]
105+
CFlex: typeof import("@chakra-ui/vue-next")["CFlex"]
105106
CGrid: typeof import("@chakra-ui/vue-next")["CGrid"]
106107
CGridItem: typeof import("@chakra-ui/vue-next")["CGridItem"]
107108
CHStack: typeof import("@chakra-ui/vue-next")["CHStack"]

0 commit comments

Comments
 (0)