You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current shadcn/ui CLI, even with monorepo support, requires Tailwind CSS configuration in all workspaces. My apps/server only needs the API route files (e.g., route.ts) from a block, but there's no way to use the CLI without installing Tailwind and its configuration in the server package, which is undesirable.
Desired Feature:
I propose an enhancement to the shadcn/ui CLI's monorepo support to allow for "backend-only" workspaces. These workspaces would:
Skip Tailwind CSS Installation: The CLI should recognize that a workspace doesn't need Tailwind and avoid installing related dependencies or configurations. Perhaps a flag in components.json (e.g., "uiWorkspace": false) could indicate this.
Selective File Installation: The CLI should be able to install only the specified files needed for the backend. For example, only files with type: "registry:page" and a target pointing to the backend's directory structure should be installed in the backend workspace.
No Tailwind configuration: The components.json should not require tailwind configuration.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Feature Request: Shadcn/ui CLI Monorepo Support for Backend-Only Workspaces (without Tailwind CSS)
Context:
For a monorepo application with the following structure:
apps/web
(Next.js): Frontend application, using shadcn/ui components.apps/server
(Express/HonoJS): Backend API server. This server does not use any UI components and therefore should not require Tailwind CSS.I mantain a shadcn registry that has "blocks" examples that also install api route files simple-ai.dev app-01 block example
Problem:
The current shadcn/ui CLI, even with monorepo support, requires Tailwind CSS configuration in all workspaces. My apps/server only needs the API route files (e.g., route.ts) from a block, but there's no way to use the CLI without installing Tailwind and its configuration in the server package, which is undesirable.
Desired Feature:
I propose an enhancement to the shadcn/ui CLI's monorepo support to allow for "backend-only" workspaces. These workspaces would:
components.json
(e.g.,"uiWorkspace": false
) could indicate this.type: "registry:page"
and atarget
pointing to the backend's directory structure should be installed in the backend workspace.components.json
should not require tailwind configuration.Example (
app-01
block):With the proposed feature, the CLI would:
page.tsx
and other component files intoapps/web
.route.ts
intoapps/server
.apps/server
.Beta Was this translation helpful? Give feedback.
All reactions