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

Commit e5e0f36

Browse files
Merge pull request #253 from chakra-ui/build/use-pnpm
build/use pnpm
2 parents 4420e35 + 5364013 commit e5e0f36

File tree

269 files changed

+24646
-20829
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

269 files changed

+24646
-20829
lines changed

._codesandbox/ci.json

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

.changeset/eleven-tomatoes-return.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
"@chakra-ui/c-visually-hidden": minor
3+
"@chakra-ui/c-theme-provider": minor
4+
"@chakra-ui/vue-composables": minor
5+
"@chakra-ui/c-close-button": minor
6+
"@chakra-ui/c-form-control": minor
7+
"@chakra-ui/c-media-query": minor
8+
"@chakra-ui/c-scroll-lock": minor
9+
"@chakra-ui/c-breadcrumb": minor
10+
"@chakra-ui/c-color-mode": minor
11+
"@chakra-ui/c-focus-lock": minor
12+
"@chakra-ui/c-accordion": minor
13+
"@chakra-ui/c-pin-input": minor
14+
"@chakra-ui/c-checkbox": minor
15+
"@chakra-ui/c-skip-nav": minor
16+
"@chakra-ui/vue-test-utils": minor
17+
"@chakra-ui/vue-auto-import": minor
18+
"@chakra-ui/c-spinner": minor
19+
"@chakra-ui/c-avatar": minor
20+
"@chakra-ui/c-button": minor
21+
"@chakra-ui/c-motion": minor
22+
"@chakra-ui/c-popper": minor
23+
"@chakra-ui/c-portal": minor
24+
"@chakra-ui/vue-accessibilty": minor
25+
"@chakra-ui/c-alert": minor
26+
"@chakra-ui/c-image": minor
27+
"@chakra-ui/c-input": minor
28+
"@chakra-ui/c-modal": minor
29+
"@chakra-ui/c-reset": minor
30+
"@chakra-ui/c-code": minor
31+
"@chakra-ui/c-icon": minor
32+
"@chakra-ui/vue-layout": minor
33+
"@chakra-ui/vue-styled": minor
34+
"@chakra-ui/vue-system": minor
35+
"@chakra-ui/c-tag": minor
36+
"@chakra-ui/vue-utils": minor
37+
"@chakra-ui/vue-next": minor
38+
"@chakra-ui/nuxt-next": minor
39+
---
40+
41+
Migrate to pnpm

.changeset/great-brooms-add.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@
2121
"@chakra-ui/c-motion": minor
2222
"@chakra-ui/c-popper": minor
2323
"@chakra-ui/c-portal": minor
24-
"@chakra-ui/vue-a11y": minor
24+
"@chakra-ui/vue-accessibilty": minor
2525
"@chakra-ui/c-alert": minor
2626
"@chakra-ui/c-image": minor
2727
"@chakra-ui/c-input": minor
2828
"@chakra-ui/c-modal": minor
2929
"@chakra-ui/c-reset": minor
3030
"@chakra-ui/c-code": minor
31-
"@chakra-ui/c-flex": minor
3231
"@chakra-ui/c-icon": minor
3332
"@chakra-ui/vue-layout": minor
3433
"@chakra-ui/vue-styled": minor

.changeset/pre.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"@chakra-ui/c-close-button": "1.0.0",
1313
"@chakra-ui/c-code": "1.0.0",
1414
"@chakra-ui/c-color-mode": "1.0.0",
15-
"@chakra-ui/c-flex": "1.0.0",
15+
1616
"@chakra-ui/c-focus-lock": "1.0.0",
1717
"@chakra-ui/c-form-control": "0.0.0",
1818
"@chakra-ui/c-icon": "1.0.0",
@@ -40,7 +40,7 @@
4040
"@chakra-ui/vue-theme": "1.0.0",
4141
"@chakra-ui/vue-theme-tools": "1.0.0",
4242
"@chakra-ui/vue-utils": "1.0.0",
43-
"@chakra-ui/vue-a11y": "1.0.0",
43+
"@chakra-ui/vue-accessibilty": "1.0.0",
4444
"@chakra-ui/vue-composables": "1.0.0",
4545
"@chakra-ui/vue-auto-import": "1.0.0",
4646
"@chakra-ui/vue-docs-next": "1.0.0"

.changeset/purple-singers-exist.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"@chakra-ui/c-close-button": major
99
"@chakra-ui/c-code": major
1010
"@chakra-ui/c-color-mode": major
11-
"@chakra-ui/c-flex": major
1211
"@chakra-ui/c-focus-lock": major
1312
"@chakra-ui/c-form-control": major
1413
"@chakra-ui/c-icon": major
@@ -34,7 +33,7 @@
3433
"@chakra-ui/vue-system": major
3534
"@chakra-ui/vue-test-utils": major
3635
"@chakra-ui/vue-utils": major
37-
"@chakra-ui/vue-a11y": major
36+
"@chakra-ui/vue-accessibilty": major
3837
"@chakra-ui/vue-composables": major
3938
"@chakra-ui/vue-auto-import": major
4039
---

.changeset/seven-avocados-act.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"@chakra-ui/c-close-button": major
1010
"@chakra-ui/c-code": major
1111
"@chakra-ui/c-color-mode": major
12-
"@chakra-ui/c-flex": major
1312
"@chakra-ui/c-focus-lock": major
1413
"@chakra-ui/c-form-control": major
1514
"@chakra-ui/c-icon": major
@@ -37,7 +36,7 @@
3736
"@chakra-ui/vue-theme": major
3837
"@chakra-ui/vue-theme-tools": major
3938
"@chakra-ui/vue-utils": major
40-
"@chakra-ui/vue-a11y": major
39+
"@chakra-ui/vue-accessibilty": major
4140
"@chakra-ui/vue-composables": major
4241
"@chakra-ui/vue-auto-import": major
4342
"@chakra-ui/vue-docs-next": major

.changeset/slow-tables-compare.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"@chakra-ui/c-close-button": minor
99
"@chakra-ui/c-code": minor
1010
"@chakra-ui/c-color-mode": minor
11-
"@chakra-ui/c-flex": minor
1211
"@chakra-ui/c-focus-lock": minor
1312
"@chakra-ui/c-form-control": minor
1413
"@chakra-ui/c-icon": minor
@@ -34,7 +33,7 @@
3433
"@chakra-ui/vue-system": minor
3534
"@chakra-ui/vue-test-utils": minor
3635
"@chakra-ui/vue-utils": minor
37-
"@chakra-ui/vue-a11y": minor
36+
"@chakra-ui/vue-accessibilty": minor
3837
"@chakra-ui/vue-composables": minor
3938
"@chakra-ui/vue-auto-import": minor
4039
---

.eslintrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ parserOptions:
1515
sourceType: module
1616
plugins:
1717
- "@typescript-eslint"
18+
- prettier
1819
rules:
1920
"@typescript-eslint/member-delimiter-style":
2021
- error
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: "Install"
2+
description: "Sets up Node.js and runs install"
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- uses: pnpm/action-setup@v2
8+
name: Install pnpm
9+
id: pnpm-install
10+
with:
11+
version: 7
12+
run_install: false
13+
14+
- name: Get pnpm store directory
15+
id: pnpm-cache
16+
shell: bash
17+
run: |
18+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
19+
20+
- uses: actions/cache@v3
21+
name: Setup pnpm cache
22+
with:
23+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
24+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
25+
restore-keys: |
26+
${{ runner.os }}-pnpm-store-
27+
28+
- name: Setup Node.js
29+
uses: actions/setup-node@v3
30+
with:
31+
node-version-file: ".nvmrc"
32+
registry-url: "https://registry.npmjs.org"
33+
cache: "pnpm"
34+
35+
- name: Setup Git User
36+
shell: bash
37+
run: |
38+
git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)"
39+
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
40+
- name: Install dependencies
41+
shell: bash
42+
run: pnpm install

.github/workflows/pr.yml

Lines changed: 29 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
pull_request:
88
branches:
99
- main
10-
- develop
10+
# - develop
1111
push:
1212
branches:
1313
- main
@@ -19,10 +19,6 @@ jobs:
1919
matrix:
2020
node-version: [18]
2121
steps:
22-
- name: Get Yarn cache path
23-
id: yarn-cache
24-
run: echo "::set-output name=dir::$(yarn cache dir)"
25-
2622
- name: Checkout
2723
uses: actions/checkout@v2
2824

@@ -31,52 +27,43 @@ jobs:
3127
with:
3228
node-version: ${{ matrix.node-version }}
3329

34-
- name: Load Yarn cache
35-
uses: actions/cache@v2
30+
- uses: pnpm/action-setup@v2
31+
name: Install pnpm
32+
id: pnpm-install
33+
with:
34+
version: 7
35+
run_install: false
36+
37+
- name: Get pnpm store directory
38+
id: pnpm-cache
39+
shell: bash
40+
run: |
41+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
42+
43+
- uses: actions/cache@v3
44+
name: Setup pnpm cache
3645
with:
37-
path: ${{ steps.yarn-cache.outputs.dir }}
38-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
46+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
47+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
3948
restore-keys: |
40-
${{ runner.os }}-yarn-
49+
${{ runner.os }}-pnpm-store-
4150
4251
- name: Install dependencies
43-
run: yarn install --frozen-lockfile
52+
if: steps.cache.outputs.cache-hit != 'true'
53+
run: pnpm install
4454

4555
- name: Lint types and code
46-
run: yarn lint
56+
run: pnpm lint
57+
58+
- name: Allocate Node.js Memory
59+
run:
60+
export NODE_OPTIONS=--max_old_space_size=16384 && echo Allocated Node
61+
Memory :\:\ $NODE_OPTIONS
4762

4863
- name: Build packages
49-
run: yarn build
64+
run: pnpm build
5065

5166
- name: Run tests
52-
run: yarn test:ci
67+
run: pnpm test:ci
5368
env:
5469
CI: true
55-
56-
bundlesize:
57-
runs-on: ubuntu-latest
58-
steps:
59-
- name: Get Yarn cache path
60-
id: yarn-cache
61-
run: echo "::set-output name=dir::$(yarn cache dir)"
62-
63-
- name: Checkout
64-
uses: actions/checkout@master
65-
66-
- name: Setup Node.js 16.x
67-
uses: actions/setup-node@master
68-
with:
69-
node-version: 16.x
70-
71-
- name: Load Yarn cache
72-
uses: actions/cache@v2
73-
with:
74-
path: ${{ steps.yarn-cache.outputs.dir }}
75-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
76-
restore-keys: |
77-
${{ runner.os }}-yarn-
78-
- name: compressed-size-action
79-
uses: preactjs/compressed-size-action@v2
80-
with:
81-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
82-
pattern: "**/dist/**/*.prod.js"

0 commit comments

Comments
 (0)