Skip to content

Commit d6df0a3

Browse files
initial test
1 parent 6ad5d28 commit d6df0a3

73 files changed

Lines changed: 12908 additions & 7482 deletions

Some content is hidden

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

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,23 @@ jobs:
1515
- name: Checkout Repo
1616
uses: actions/checkout@v4
1717

18-
- name: Setup Node.js 20.x
18+
- name: Setup Node.js 24.x
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: 20
21+
node-version: 24
22+
cache: pnpm
2223

2324
- name: Install Dependencies
24-
run: yarn
25+
run: |
26+
corepack enable
27+
pnpm install --frozen-lockfile
2528
2629
- name: Create Release Pull Request or Publish to npm
2730
id: changesets
2831
uses: changesets/action@v1
2932
with:
3033
# This expects you to have a script called release which does a build for your packages and calls changeset publish
31-
publish: yarn release
34+
publish: pnpm release
3235
env:
3336
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3437
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
auto-install-peers = true
22
public-hoist-pattern[]=*storybook*
3+
engine-strict = true

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v24

.vscode/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
{
44
"mode": "auto"
55
}
6-
]
6+
],
7+
"typescript.tsdk": "node_modules/typescript/lib",
8+
"css.lint.unknownAtRules": "ignore",
9+
"scss.lint.unknownAtRules": "ignore",
10+
"less.lint.unknownAtRules": "ignore"
711
}

apps/docs/package.json

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,21 @@
1111
"lint": "eslint ./stories/*.stories.tsx --max-warnings 0"
1212
},
1313
"dependencies": {
14-
"@acme/ui": "workspace:*",
15-
"react": "^18.2.0",
16-
"react-dom": "^18.2.0"
14+
"@olli/ui": "workspace:*",
15+
"react": "^19.2.1",
16+
"react-dom": "^19.2.1"
1717
},
1818
"devDependencies": {
1919
"@repo/eslint-config": "workspace:*",
20-
"@storybook/addon-actions": "^8.2.6",
21-
"@storybook/addon-essentials": "^8.2.6",
22-
"@storybook/addon-links": "^8.2.6",
23-
"@storybook/react": "^8.2.6",
24-
"@storybook/react-vite": "^8.2.6",
25-
"@vitejs/plugin-react": "^4.2.1",
26-
"eslint": "^8.57.0",
27-
"serve": "^14.2.1",
28-
"storybook": "^8.2.6",
20+
"@storybook/addon-links": "^10.2.0",
21+
"@storybook/react": "^10.2.0",
22+
"@storybook/react-vite": "^10.2.0",
23+
"@vitejs/plugin-react": "^5.1.2",
24+
"eslint": "^8.57.1",
25+
"serve": "^14.2.5",
26+
"storybook": "^10.2.0",
2927
"@repo/typescript-config": "workspace:*",
30-
"typescript": "5.5.4",
31-
"vite": "^5.1.4"
28+
"typescript": "5.9.3",
29+
"vite": "^7.3.1"
3230
}
3331
}

apps/docs/stories/button.stories.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Meta, StoryObj } from "@storybook/react";
2-
import { Button } from "@acme/ui/button";
2+
import { Button } from "@olli/ui";
33

44
const meta: Meta<typeof Button> = {
55
component: Button,
@@ -35,12 +35,6 @@ export const Primary: Story = {
3535
name: "Button",
3636
args: {
3737
children: "Hello",
38-
type: "button",
39-
style: {
40-
color: "blue",
41-
border: "1px solid gray",
42-
padding: 10,
43-
borderRadius: 10,
44-
},
38+
type: "primary",
4539
},
4640
};

package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"private": true,
33
"scripts": {
4+
"preinstall": "node -e \"const ua=process.env.npm_config_user_agent||''; if(!ua.includes('pnpm')){console.error('This repo uses pnpm. Install with: corepack enable && pnpm install'); process.exit(1)}\"",
5+
"shadcn:add": "pnpm --filter @repo/shadcn ui:add",
46
"build": "turbo run build",
57
"dev": "turbo run dev",
68
"lint": "turbo run lint",
@@ -11,11 +13,15 @@
1113
"release": "turbo run build --filter=docs^... && changeset publish",
1214
"preview-storybook": "turbo run preview-storybook"
1315
},
16+
"engines": {
17+
"node": ">=24 <25"
18+
},
1419
"devDependencies": {
15-
"@changesets/cli": "^2.27.1",
16-
"prettier": "^3.2.5",
17-
"turbo": "^2.7.5"
20+
"@changesets/cli": "^2.29.8",
21+
"prettier": "^3.8.1",
22+
"turbo": "^2.7.5",
23+
"typescript": "5.9.3"
1824
},
19-
"packageManager": "pnpm@8.15.6",
25+
"packageManager": "pnpm@10.28.1",
2026
"name": "design-system"
2127
}

packages/olli/.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"plugins": ["prettier-plugin-tailwindcss", "prettier-plugin-organize-imports"]
3+
}

packages/olli/package.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"name": "@olli/ui",
3+
"version": "0.0.0",
4+
"sideEffects": [
5+
"**/*.css"
6+
],
7+
"license": "MIT",
8+
"main": "./dist/index.js",
9+
"module": "./dist/index.mjs",
10+
"types": "./dist/index.d.ts",
11+
"exports": {
12+
".": {
13+
"types": "./src/index.ts",
14+
"import": "./dist/index.mjs",
15+
"require": "./dist/index.js"
16+
},
17+
"./styles": {
18+
"default": "./src/styles/root.css"
19+
},
20+
"./styles/*": {
21+
"default": "./src/styles/*"
22+
},
23+
"./styles/*/*": {
24+
"default": "./src/styles/*/*"
25+
}
26+
},
27+
"scripts": {
28+
"build": "tsup",
29+
"dev": "tsup --watch",
30+
"lint": "eslint . --max-warnings 0",
31+
"clean": "rm -rf .turbo node_modules dist"
32+
},
33+
"devDependencies": {
34+
"@repo/eslint-config": "workspace:*",
35+
"@repo/shadcn": "workspace:*",
36+
"@repo/tailwind-config": "workspace:*",
37+
"@repo/typescript-config": "workspace:*",
38+
"@types/react": "^19.2.3",
39+
"@types/react-dom": "^19.2.3",
40+
"eslint": "^8.57.0",
41+
"prettier": "^3.8.1",
42+
"prettier-plugin-organize-imports": "^4.3.0",
43+
"prettier-plugin-tailwindcss": "^0.7.2",
44+
"tsup": "^8.5.1",
45+
"typescript": "5.9.3"
46+
},
47+
"dependencies": {
48+
"class-variance-authority": "^0.7.1",
49+
"lucide-react": "^0.556.0",
50+
"react": "^19.2.3"
51+
},
52+
"publishConfig": {
53+
"access": "public"
54+
}
55+
}

0 commit comments

Comments
 (0)