From 7e0c38cdca847c0e6582a31b6bee03f585a7b72e Mon Sep 17 00:00:00 2001 From: Elliot Hesp Date: Thu, 13 Nov 2025 16:07:10 +0000 Subject: [PATCH 1/2] feat: add support for shadcn registry copying --- frontend/package.json | 3 ++- functions/src/cron.ts | 5 +++++ static/cloudbuild.yaml | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index 3fc9036..424e4d2 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -15,7 +15,8 @@ "lint:fix": "eslint . --fix", "typecheck": "nuxt typecheck .", "deploy": "npm run generate && npx -y firebase-tools --project=default deploy", - "deploy:hosting": "npx -y firebase-tools --project=default deploy --only hosting" + "deploy:hosting": "npx -y firebase-tools --project=default deploy --only hosting", + "shadcn:copy": "npx @invertase/firebaseui-shadcn copy --outDir=public/r" }, "devDependencies": { "@docsearch/js": "^3.9.0", diff --git a/functions/src/cron.ts b/functions/src/cron.ts index 8c88197..3a86152 100644 --- a/functions/src/cron.ts +++ b/functions/src/cron.ts @@ -19,6 +19,11 @@ const buildConfig = { entrypoint: "npm", args: ["--prefix=frontend", "run", "generate"] }, + { + name: "node:22", + entrypoint: "npm", + args: ["--prefix=frontend", "run", "shadcn:copy"] + }, { name: "node:22", entrypoint: "npm", diff --git a/static/cloudbuild.yaml b/static/cloudbuild.yaml index 26329c6..bf22ecb 100644 --- a/static/cloudbuild.yaml +++ b/static/cloudbuild.yaml @@ -9,6 +9,9 @@ steps: - name: 'node:22' entrypoint: 'npm' args: ['--prefix=frontend', 'run', 'build'] +- name: 'node:22' + entrypoint: 'npm' + args: ['--prefix=frontend', 'run', 'shadcn:copy'] - name: 'node:22' entrypoint: 'npm' args: ['--prefix=frontend', 'run', 'deploy:hosting'] From 29865235bf0cbc0ebce0606994e9e92cc387a69f Mon Sep 17 00:00:00 2001 From: Darren Ackers Date: Mon, 24 Nov 2025 16:29:27 +0000 Subject: [PATCH 2/2] chore(shadcn): renamed script to firebase-oss package Co-authored-by: Jeff <3759507+jhuleatt@users.noreply.github.com> --- frontend/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index 424e4d2..bc1d4b5 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -16,7 +16,7 @@ "typecheck": "nuxt typecheck .", "deploy": "npm run generate && npx -y firebase-tools --project=default deploy", "deploy:hosting": "npx -y firebase-tools --project=default deploy --only hosting", - "shadcn:copy": "npx @invertase/firebaseui-shadcn copy --outDir=public/r" + "shadcn:copy": "npx @firebase-oss/ui-shadcn@beta copy --outDir=public/r" }, "devDependencies": { "@docsearch/js": "^3.9.0",