Skip to content

Commit e0e75cb

Browse files
authored
Merge pull request #408 from invertase/shadcn-registry
feat: add support for shadcn registry copying
2 parents 907a84a + 2986523 commit e0e75cb

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

frontend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"lint:fix": "eslint . --fix",
1616
"typecheck": "nuxt typecheck .",
1717
"deploy": "npm run generate && npx -y firebase-tools --project=default deploy",
18-
"deploy:hosting": "npx -y firebase-tools --project=default deploy --only hosting"
18+
"deploy:hosting": "npx -y firebase-tools --project=default deploy --only hosting",
19+
"shadcn:copy": "npx @firebase-oss/ui-shadcn@beta copy --outDir=public/r"
1920
},
2021
"devDependencies": {
2122
"@docsearch/js": "^3.9.0",

functions/src/cron.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ const buildConfig = {
1919
entrypoint: "npm",
2020
args: ["--prefix=frontend", "run", "generate"]
2121
},
22+
{
23+
name: "node:22",
24+
entrypoint: "npm",
25+
args: ["--prefix=frontend", "run", "shadcn:copy"]
26+
},
2227
{
2328
name: "node:22",
2429
entrypoint: "npm",

static/cloudbuild.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ steps:
99
- name: 'node:22'
1010
entrypoint: 'npm'
1111
args: ['--prefix=frontend', 'run', 'build']
12+
- name: 'node:22'
13+
entrypoint: 'npm'
14+
args: ['--prefix=frontend', 'run', 'shadcn:copy']
1215
- name: 'node:22'
1316
entrypoint: 'npm'
1417
args: ['--prefix=frontend', 'run', 'deploy:hosting']

0 commit comments

Comments
 (0)