Skip to content

Commit 2f5fea8

Browse files
committed
chore: Update shadcn example vs registry deployment
1 parent 1291372 commit 2f5fea8

File tree

6 files changed

+16
-18
lines changed

6 files changed

+16
-18
lines changed

examples/shadcn/components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
},
2121
"registries": {
2222
"@dev": "http://localhost:5177/r/{name}.json",
23-
"@firebase-ui": "https://ui.firebase.com/r/{name}.json"
23+
"@firebase": "https://fir-ui-shadcn-registry.web.app/r/{name}.json"
2424
}
2525
}

examples/shadcn/firebase.json

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

examples/shadcn/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"build": "vite build",
99
"lint": "eslint .",
1010
"preview": "vite preview",
11-
"deploy": "pnpm run build && firebase deploy --only hosting:fir-ui-2025-shadcn",
1211
"shadcn:add-all": "tsx add-all.ts"
1312
},
1413
"dependencies": {

firebase.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,19 @@
1010
},
1111
"hosting": [
1212
{
13-
"site": "fir-ui-shadcn",
13+
"site": "fir-ui-shadcn-registry",
1414
"public": "packages/shadcn/public"
15+
},
16+
{
17+
"site": "fir-ui-shadcn",
18+
"public": "examples/shadcn/dist",
19+
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
20+
"rewrites": [
21+
{
22+
"source": "**",
23+
"destination": "/index.html"
24+
}
25+
]
1526
}
1627
]
1728
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"deploy:react": "pnpm --filter react run deploy",
1717
"deploy:nextjs": "pnpm --filter nextjs run deploy",
1818
"deploy:angular": "pnpm --filter angular-example run deploy",
19-
"shadcn:deploy": "pnpm run build:shadcn && firebase deploy --only hosting:fir-ui-shadcn",
19+
"shadcn-example:deploy": "cd examples/shadcn && pnpm run build && firebase deploy --only hosting:fir-ui-shadcn",
20+
"shadcn:deploy": "pnpm run build:shadcn && firebase deploy --only hosting:fir-ui-shadcn-registry",
2021
"lint:check": "eslint",
2122
"lint:fix": "eslint --fix",
2223
"format:check": "prettier --check **/{src,tests}/**/*.{ts,tsx}",

packages/shadcn/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
8-
"build": "tsx build.ts --domain https://fir-ui-shadcn.web.app",
8+
"build": "tsx build.ts --domain https://fir-ui-shadcn-registry.web.app",
99
"preview": "vite preview",
1010
"test": "vitest run"
1111
},

0 commit comments

Comments
 (0)