Skip to content

Commit eeb1754

Browse files
authored
feat: new CLI, Styles and more (#637)
1 parent 3d717f9 commit eeb1754

658 files changed

Lines changed: 23300 additions & 4640 deletions

File tree

Some content is hidden

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

.changeset/slimy-cooks-glow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"shadcn-ui": minor
3+
---
4+
5+
everything is new

.eslintrc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@
1010
"plugins": ["tailwindcss"],
1111
"rules": {
1212
"@next/next/no-html-link-for-pages": "off",
13-
"react/jsx-key": "off",
1413
"tailwindcss/no-custom-classname": "off",
1514
"tailwindcss/classnames-order": "error"
1615
},
1716
"settings": {
1817
"tailwindcss": {
19-
"callees": ["cn"],
18+
"callees": ["cn", "cva"],
2019
"config": "tailwind.config.cjs"
2120
},
2221
"next": {

.github/workflows/code-check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
name: Install pnpm
2323
id: pnpm-install
2424
with:
25+
version: 8.6.1
2526
run_install: false
2627

2728
- name: Get pnpm store directory
@@ -57,6 +58,7 @@ jobs:
5758
name: Install pnpm
5859
id: pnpm-install
5960
with:
61+
version: 8.6.1
6062
run_install: false
6163

6264
- name: Get pnpm store directory
@@ -94,6 +96,7 @@ jobs:
9496
name: Install pnpm
9597
id: pnpm-install
9698
with:
99+
version: 8.6.1
97100
run_install: false
98101

99102
- name: Get pnpm store directory

.github/workflows/prerelease.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424

2525
- name: Use PNPM
2626
uses: pnpm/action-setup@v2.2.4
27+
with:
28+
version: 8.6.1
2729

2830
- name: Use Node.js 18
2931
uses: actions/setup-node@v3

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ jobs:
2020

2121
- name: Use PNPM
2222
uses: pnpm/action-setup@v2.2.4
23+
with:
24+
version: 8.6.1
2325

2426
- name: Use Node.js 18
2527
uses: actions/setup-node@v3
2628
with:
29+
version: 8.6.1
2730
node-version: 18
2831
cache: "pnpm"
2932

.github/workflows/test.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
branches: ["*"]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
name: Test
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Install Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 16
20+
21+
- uses: pnpm/action-setup@v2.2.4
22+
name: Install pnpm
23+
id: pnpm-install
24+
with:
25+
version: 8.6.1
26+
run_install: false
27+
28+
- name: Get pnpm store directory
29+
id: pnpm-cache
30+
run: |
31+
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
32+
- uses: actions/cache@v3
33+
name: Setup pnpm cache
34+
with:
35+
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
36+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
37+
restore-keys: |
38+
${{ runner.os }}-pnpm-store-
39+
- name: Install dependencies
40+
run: pnpm install
41+
42+
- run: pnpm test

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ node_modules
33
.next
44
build
55
.contentlayer
6-
apps/www/pages/api/components.json
6+
apps/www/pages/api/registry.json

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,9 @@
22
"eslint.workingDirectories": [
33
{ "pattern": "apps/*/" },
44
{ "pattern": "packages/*/" }
5+
],
6+
"tailwindCSS.experimental.classRegex": [
7+
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"],
8+
["cn\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]
59
]
610
}

apps/www/.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ dist
22
node_modules
33
.next
44
build
5-
.contentlayer
5+
.contentlayer
6+
__registry__/index.tsx
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// The content of this directory is autogenerated by the registry server.

0 commit comments

Comments
 (0)