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

Commit 7f78cf1

Browse files
Merge pull request #255 from chakra-ui/feat/nuxt-module
feat/nuxt module
2 parents e5e0f36 + bb9d613 commit 7f78cf1

File tree

94 files changed

+3996
-841
lines changed

Some content is hidden

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

94 files changed

+3996
-841
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_size = 2
6+
indent_style = space
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ dist
55
# documentation for adding ESLint for Vue 3 projects running on Vite.
66
# For this reason, we ignore the playground directory.
77
playground
8-
snapshots.js
8+
snapshots.js
9+
10+
# Nuxt plugin template
11+
chakra.universal.t.js

.github/composite-actions/install/action.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,21 @@ runs:
1717
run: |
1818
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
1919
20+
- name: Get cypress cache directory path
21+
id: cypress-cache-dir
22+
shell: bash
23+
run: |
24+
echo "CYPRESS_BIN_PATH=$(npx cypress cache path)" >> $GITHUB_OUTPUT
25+
2026
- uses: actions/cache@v3
21-
name: Setup pnpm cache
27+
id: restore-pnpm-cache
2228
with:
23-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
24-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
29+
path: |
30+
${{ steps.pnpm-cache-dir.outputs.STORE_PATH }}
31+
${{ steps.cypress-cache-dir.outputs.CYPRESS_BIN_PATH }}
32+
key: ${{ runner.os }}-pnpm-cypress-${{ hashFiles('**/pnpm-lock.yaml') }}
2533
restore-keys: |
34+
${{ runner.os }}-pnpm-cypress-
2635
${{ runner.os }}-pnpm-store-
2736
2837
- name: Setup Node.js
@@ -39,4 +48,7 @@ runs:
3948
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
4049
- name: Install dependencies
4150
shell: bash
42-
run: pnpm install
51+
run: |
52+
pnpm install --frozen-lockfile
53+
npx cypress verify
54+
npx cypress info

.github/workflows/pr.yml

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

.github/workflows/quality.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ on:
1111
jobs:
1212
build:
1313
name: Build
14+
timeout-minutes: 20
1415
runs-on: ubuntu-latest
15-
env:
16-
NODE_OPTIONS: "--max-old-space-size=16384"
17-
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
18-
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
16+
# env:
17+
# NODE_OPTIONS: "--max-old-space-size=16384"
18+
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
19+
# TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
1920

2021
steps:
2122
- name: Checkout branch
@@ -33,4 +34,4 @@ jobs:
3334
CI: true
3435

3536
- name: Build packages
36-
run: pnpm build:fast
37+
run: pnpm build:ci

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
name: Release
1616
runs-on: ubuntu-latest
1717
env:
18-
NODE_OPTIONS: "--max-old-space-size=16384"
18+
# NODE_OPTIONS: "--max-old-space-size=16384"
1919
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
2020
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
2121

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,4 @@ cypress/screenshots
114114

115115
# Turborepo
116116
.turbo
117+
.output

examples/nuxt-app/.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules
2+
*.log*
3+
.nuxt
4+
.nitro
5+
.cache
6+
.output
7+
.env
8+
dist

examples/nuxt-app/.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
shamefully-hoist=true
2+
strict-peer-dependencies=false

examples/nuxt-app/.nuxtrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
imports.autoImport=false
2+
typescript.includeWorkspace=true

0 commit comments

Comments
 (0)